qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: mikestramba@gmail.com, qemu-devel@nongnu.org
Cc: qemu-s390x <qemu-s390x@nongnu.org>
Subject: Re: How to write a zIPL section in IPL2 record on a raw disk
Date: Wed, 12 Apr 2023 09:04:42 +0200	[thread overview]
Message-ID: <533d2093-68f7-4d5d-f1cf-3ff88d0173f1@redhat.com> (raw)
In-Reply-To: <CAA5vqSbgTTeF-tiUtK7pCYkyQXJEV3WuZuXEK=4GjigPLf=X7A@mail.gmail.com>

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



      reply	other threads:[~2023-04-12  7:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=533d2093-68f7-4d5d-f1cf-3ff88d0173f1@redhat.com \
    --to=thuth@redhat.com \
    --cc=mikestramba@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).