Jason,
With the latest qemu 9.1 version, elf format booting is supported. Qemu
9.0 does not support it still, here is example command line.
./qemu-system-loongarch64 -m 4G -smp 2 --cpu la464 --machine virt
-serial stdio -monitor telnet:localhost:4495,server,nowait -kernel
/root/linux_larch/vmlinux -initrd ramdisk -append "root=/dev/ram
rdinit=/sbin/init console=ttyS0,115200" --nographic
Regards
Bibo Mao
On 2024/9/5 上午11:12, Jason A. Donenfeld wrote:
On Tue, Oct 10, 2023 at 09:12:46AM +0800, maobibo wrote:
Thomas,
Thanks for reporting this issue.
It is the problem of QEMU for LoongArch system, QEMU does not support
booting vmlinux with elf format without UEFI bios now. We will add
support to boot vmlinux directly on QEMU LoongArch side.
I ran into this same issue when trying to boot my test kernel for
Ruoyao's recent vDSO getrandom work. Is this something that was ever
addressed on the QEMU side?
Jason