mbox series

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

Message ID 20190703125045.28116-1-david.abdurachmanov@sifive.com
Headers show
Series Enable booting from VirtIO PCI connected storage | expand

Message

David Abdurachmanov July 3, 2019, 12:50 p.m. UTC
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@gmail.com>
Cc: Andrea Bolognani <abologna@redhat.com>
Cc: Richard W.M. Jones <rjones@redhat.com>
Cc: Palmer Dabbelt <palmer@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(-)