* How to write a zIPL section in IPL2 record on a raw disk
@ 2023-04-12 2:22 Mike Stramba
2023-04-12 7:04 ` Thomas Huth
0 siblings, 1 reply; 2+ messages in thread
From: Mike Stramba @ 2023-04-12 2:22 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 812 bytes --]
I have a CKD file, created with the Hercules dasdinit program.
It's a (hercules) 3350 uncompressed file.
I've put a small "hello world" IPL program on it, and it works fine with
Hercules
When I try to run it with qemu-system-s390x I get :
LOADPARM=[ ]
Using virtio-blk.
Using guessed DASD geometry.
Using ECKD scheme (block size 4096), CDL
No zIPL section in IPL2 record. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
zIPL load failed.
Could not find a suitable boot device (none specified)
Failed to load OS from hard disk
The qemu script is :
qemu-system-s390x -m 16 -drive format=raw,file=test-ipl.3350.un,if=virtio
-nographic
I found this link re: the zipl command.
https://www.ibm.com/docs/en/linux-on-systems?topic=u-modes-syntax-overview
Where is that command and / or its source ?
Mike
[-- Attachment #2: Type: text/html, Size: 1336 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to write a zIPL section in IPL2 record on a raw disk
2023-04-12 2:22 How to write a zIPL section in IPL2 record on a raw disk Mike Stramba
@ 2023-04-12 7:04 ` Thomas Huth
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Huth @ 2023-04-12 7:04 UTC (permalink / raw)
To: mikestramba, qemu-devel; +Cc: qemu-s390x
On 12/04/2023 04.22, Mike Stramba wrote:
> I have a CKD file, created with the Hercules dasdinit program.
> It's a (hercules) 3350 uncompressed file.
> I've put a small "hello world" IPL program on it, and it works fine with
> Hercules
>
> When I try to run it with qemu-system-s390x I get :
>
> LOADPARM=[ ]
> Using virtio-blk.
> Using guessed DASD geometry.
> Using ECKD scheme (block size 4096), CDL
> No zIPL section in IPL2 record. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> zIPL load failed.
> Could not find a suitable boot device (none specified)
> Failed to load OS from hard disk
>
> The qemu script is :
> qemu-system-s390x -m 16 -drive format=raw,file=test-ipl.3350.un,if=virtio
> -nographic
Hi Mike!
I guess you're the first person who's trying to do this ;-) ...
QEMU's s390x emulation has been developed with only Linux guests in mind, so
the boot "firmware" also only supports disks that have been prepared by the
bootloader that is used for loading Linux on s390x - i.e. zipl.
FWIW, you can find the sources of the "firmware" in the pc-bios/s390-ccw/
folder of the QEMU source tree if you want to have a look.
But if you just want to load a small kernel into QEMU, you're maybe better
off by using the "-kernel" option to load an ELF file.
> I found this link re: the zipl command.
> https://www.ibm.com/docs/en/linux-on-systems?topic=u-modes-syntax-overview
>
> Where is that command and / or its source ?
zipl is part of the s390-tools that are available here:
https://github.com/ibm-s390-linux/s390-tools
(there should also be a package for this in each decent s390x Linux distro).
HTH,
Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-12 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12 2:22 How to write a zIPL section in IPL2 record on a raw disk Mike Stramba
2023-04-12 7:04 ` Thomas Huth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).