Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu-system-riscv64: -append only allowed with -kernel option #361

Open
swordsman-yuan opened this issue Jul 4, 2024 · 1 comment
Open

Comments

@swordsman-yuan
Copy link

I was trying to pass the Linux Kernel as a payload to OpenSBI to launch Qemu-Virt, and I found that the instructions in opensbi/docs/platform/qemu_virt.md might be problematic:
qemu-system-riscv64 -M virt -m 256M -nographic \ -bios build/platform/generic/firmware/fw_payload.elf \ -drive file=<path_to_linux_rootfs>,format=raw,id=hd0 \ -device virtio-blk-device,drive=hd0 \ -append "root=/dev/vda rw console=ttyS0"
However, in the Qemu version I use (Qemu-7.2.0), it will prompt: qemu-system-riscv64: -append only allowed with -kernel option, so the above method of passing bootargs to the kernel may not be feasible.

@alistair23
Copy link
Collaborator

You should be able to pass -bios none -kernel build/platform/generic/firmware/fw_payload.elf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants