Hi Anup, On Thu, Oct 22, 2020 at 1:34 PM Anup Patel <anup.pa...@wdc.com> wrote: > > Extend sifive_u machine to allow passing custom DTB using "-dtb" > command-line parameter. This will help users pass modified DTB > or Linux SiFive DTB to sifive_u machine. > > Signed-off-by: Anup Patel <anup.pa...@wdc.com> > --- > hw/riscv/sifive_u.c | 28 ++++++++++++++++++++-------- > 1 file changed, 20 insertions(+), 8 deletions(-) >
I am using the following command to boot a Linux v5.11 kernel, but it hangs at: $ qemu-system-riscv64 -M sifive_u -smp 5 -m 8G -display none -serial stdio -kernel arch/riscv/boot/Image -dtb arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb -append "earlycon=sbi console=ttySIF0" [ 0.000000] smp: Bringing up secondary CPUs ... Removing -dtb makes the kernel continue booting. I am not sure what's missing ofusing "-dtb"? Regards, Bin