[U-Boot] [PATCH 1/1] doc: slimbootloader: Update Linux booting steps on QEMU
Park, Aiden
aiden.park at intel.com
Mon Aug 26 03:19:39 UTC 2019
Hi Bin,
> -----Original Message-----
> From: Bin Meng [mailto:bmeng.cn at gmail.com]
> Sent: Sunday, August 25, 2019 7:36 PM
> To: Park, Aiden <aiden.park at intel.com>
> Cc: Andy Shevchenko <andy.shevchenko at gmail.com>; u-boot at lists.denx.de
> Subject: Re: [PATCH 1/1] doc: slimbootloader: Update Linux booting steps on
> QEMU
>
> Hi Aiden,
>
> On Fri, Aug 23, 2019 at 5:31 AM Park, Aiden <aiden.park at intel.com> wrote:
> >
> > Add steps to test Linux booting on QEMU with Yocto image.
> >
> > Signed-off-by: Aiden Park <aiden.park at intel.com>
> > ---
> > doc/board/intel/slimbootloader.rst | 22 ++++++++++++++++++++++
> > 1 file changed, 22 insertions(+)
> >
> > diff --git a/doc/board/intel/slimbootloader.rst
> > b/doc/board/intel/slimbootloader.rst
> > index 07c9b126f7..375e676804 100644
> > --- a/doc/board/intel/slimbootloader.rst
> > +++ b/doc/board/intel/slimbootloader.rst
> > @@ -86,6 +86,28 @@ The PayloadId can be any 4 Bytes value.
> >
> > $ qemu-system-x86_64 -machine q35 -nographic -serial mon:stdio
> > -pflash Outputs/qemu/SlimBootloader.bin
> >
> > +Test Linux booting on QEMU target
> > +---------------------------------
> > +
> > +Let's use LeafHill (APL) Yocto image for testing.
> > +Download it from http://downloads.yoctoproject.org/releases/yocto/yocto-
> 2.0/machines/leafhill/.
> > +
> > +1. Prepare Yocto hard disk image::
> > +
> > + $ wget http://downloads.yoctoproject.org/releases/yocto/yocto-
> 2.0/machines/leafhill/leafhill-4.0-jethro-2.0.tar.bz2
> > + $ tar -xvf leafhill-4.0-jethro-2.0.tar.bz2
> > + $ ls -l
> > + leafhill-4.0-jethro-2.0/binary/core-image-sato-intel-corei7-64.hddim
> > + g
>
> nits: this line is not necessary
>
This is just to show unzipped file path and make sure the file exists properly.
> > +
> > +2. Launch Slim Bootloader on QEMU with disk image::
> > +
> > + $ qemu-system-x86_64 -machine q35 -nographic -serial mon:stdio
> > + -pflash Outputs/qemu/SlimBootloader.bin -drive
> > + id=mydrive,if=none,file=/path/to/core-image-sato-intel-corei7-64.hdd
> > + img,format=raw -device ide-hd,drive=mydrive
> > +
> > +3. Update boot environment values on shell::
> > +
> > + => setenv bootfile vmlinuz
> > + => setenv bootdev scsi
> > + => boot
>
> I followed all the instructions here, and I see the same problem as I reported
> before: Invalid Boot Flag.
>
> => setenv bootfile vmlinuz
> => setenv bootdev scsi
> => boot
> scanning bus for devices...
> SATA link 0 timeout.
> SATA link 1 timeout.
> SATA link 2 timeout.
> SATA link 3 timeout.
> SATA link 4 timeout.
> Target spinup took 0 ms.
> AHCI 0001.0000 32 slots 6 ports 1.5 Gbps 0x3f impl SATA mode
> flags: ncq only
> Error: Invalid Boot Flag (found 0x0000, expected 0xaa55)
>
This has a dependency on a patch - https://patchwork.ozlabs.org/patch/1150306/
which is still waiting to be applied.
> Regards,
> Bin
Best Regards,
Aiden
More information about the U-Boot
mailing list