[U-Boot] [PATCH 0/2] Enable booting from VirtIO PCI connected storage

David Abdurachmanov david.abdurachmanov at gmail.com
Wed Jul 3 12:50:43 UTC 2019


Fedora/RISCV uses OpenSBI + U-Boot setup which loads extlinux
configuration file from boot media and then continues booting Linux
kernel.

pcie-root-port was finally enabled for RISC-V in QEMU 4.0.0. PCI
is now default instead of MMIO starting libvirt v5.3.0 with QEMU 4.0.0
or newer. Simply put this means that devices are connected over VirtIO
PCI (incl. storage, i.e. boot media).

Andrea Bolognani (Red Hat, Virtualization) noticed that Fedora/RISCV
doesn't boot using libvirt. This is due to U-Boot not detecting boot
media.

These two small patches address the issue (tested by me and Andrea).

Cc: Bin Meng <bmeng.cn at gmail.com>
Cc: Andrea Bolognani <abologna at redhat.com>
Cc: Richard W.M. Jones <rjones at redhat.com>
Cc: Palmer Dabbelt <palmer at sifive.com>

David Abdurachmanov (2):
  qemu-riscv: enable VIRTIO_PCI
  distro_bootcmd: refactor virtio to support PCI block devices

 board/emulation/qemu-riscv/Kconfig |  1 +
 include/config_distro_bootcmd.h    | 27 +++++++++++++++++++++------
 2 files changed, 22 insertions(+), 6 deletions(-)

-- 
2.21.0



More information about the U-Boot mailing list