[PATCH 1/1] riscv: allow building w/o DHCP, SCSI, VIRTIO
Bin Meng
bmeng.cn at gmail.com
Mon Jul 4 11:55:05 CEST 2022
Hi Heinrich,
On Sun, Jul 3, 2022 at 8:09 PM Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
>
>
> On 7/3/22 13:28, Heinrich Schuchardt wrote:
> > Consider which boot devices are enabled in the definition of the
> > BOOT_TARGET_DEVICES() macro.
> >
> > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
>
> Hello Bin,
>
> With the patch I can run U-Boot
>
> qemu-riscv_smode_defconfig
> CONFIG_MTD_NOR_FLASH=n
> CONFIG_CMD_NET=n
>
> with QEMU 7.0 using KVM using command
>
> qemu-system-riscv64
> -M virt -accel kvm -m 2G -smp 2
> -nographic
> -kernel u-boot
> -device virtio-net-device,netdev=eth0
> -netdev user,id=eth0,hostfwd=tcp::8022-:22
> -drive file=riscv64.img,format=raw,if=none,id=NVME1
> -device nvme,drive=NVME1,serial=nvme-1
>
> and boot Linux from it.
I see you specifically wanted to run U-Boot with KVM, and it did not
work. If without KVM it boots then it's a problem of KVM/QEMU.
>
> But whenever virtio is accessed by U-Boot QEMU crashes without output.
>
> E.g. after 'virtio scan' even CTRL+A,C is ignored.
>
> Did you have more success? Any clue how to debug this?
>
Which QEMU/KVM (Linux kernel version) did you use for the testing?
Regards,
Bin
More information about the U-Boot
mailing list