grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 0/7] Add LoadFile2 and riscv Linux loader


From: Heinrich Schuchardt
Subject: Re: [PATCH v2 0/7] Add LoadFile2 and riscv Linux loader
Date: Fri, 8 Oct 2021 19:34:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2



On 6/29/21 15:44, Heinrich Schuchardt wrote:
On 6/28/21 12:07 AM, Andreas Schwab wrote:
On Jun 27 2021, Heinrich Schuchardt wrote:

On 6/26/21 8:07 PM, Andreas Schwab wrote:
On Jun 03 2021, Nikita Ermakov wrote:

This series contains patches to add support for LoadFile2 protocol
to load
initrd on EFI systems. Also it contains patches to load Linux
kernel with EFI
stub on riscv platforms and unites arm and riscv codes together
into common
loader code for EFI systems.

That doesn't work with a CD image.  When I try to run
http://download.opensuse.org/ports/riscv/tumbleweed/iso/openSUSE-Tumbleweed-NET-riscv64-Media.iso

with qemu, the initrd fails to load.

Please, indicate how you built u-boot.bin.

With qemu-riscv64_smode_defconfig.

$ qemu-system-riscv64 -M virt -nographic -serial mon:stdio -smp 4 -m
8g -kernel u-boot.bin -drive
format=raw,if=virtio,media=cdrom,file=openSUSE-Tumbleweed-NET-riscv64-Media.iso


This command results in an error

qemu-system-riscv64: warning:
No -bios option specified. Not loading a firmware.

Looks like you use an old qemu.  Nowadays it automatically loads opensbi
as firmware.

Please, provide a repo with the GRUB code you have been compiling.

https://build.opensuse.org/package/show/openSUSE:Factory:RISCV/grub2

Andreas.


See
[PATCH 1/1] RISC-V: load initrd wherever it fits into memory
https://lore.kernel.org/linux-riscv/20210629134018.62859-1-xypron.glpk@gmx.de/


With
http://download.opensuse.org/ports/riscv/tumbleweed/iso/openSUSE-Tumbleweed-DVD-riscv64-Build809.3-Media.iso
the error does not occur anymore. It uses Linux version 5.14.6 which
contains the aforementioned patch. So we can mark this issue as closed.

Best regards

Heinrich



reply via email to

[Prev in Thread] Current Thread [Next in Thread]