Kernel Not booting on RISC-V QEMU

Michael Opdenacker michael.opdenacker at bootlin.com
Tue Mar 23 14:29:07 GMT 2021


Hi Pratik,

On 3/23/21 3:21 PM, Pratik farkase wrote:
> Hi Michael, i was referring your session on "Embedded Linux from
> scratch in 45 minutes (on RISC-V)" pdf and session recording. I have
> followed all your steps to build kernel and opensbi. Through opensbi i
> was able to generate "fw_payload.elf" for generic platform. But when i
> try to run qemu using the given parameters in pdf i am stuck at the
> boot as seen in the attached screenshot. The opensbi boots up
> correctly and remains stuck there but kernel does not boot. My QEMU
> parameters are "qemu-system-riscv64 -nographic -machine virt -m 128M
> kernel ../opensbi/build/platform/generic/firmware/fw_payload.elf 
> -append "console=ttyS0". It is stuck at this and kernel would not boot
> at all :


Thanks for testing my instructions.

I believe you forgot the "-" character before the "kernel" option. Could
you try again?

Cheers,

Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com




More information about the linux-riscv mailing list