[PATCH] arm: vexpress64: juno: Allow boot from VirtIO

From: Robert Catherall robert.catherall@arm.com
The AEM and Juno FVPs (Fixed Virtual Platforms) support a VirtIO disc interface. Adding VIRTIO to the list of boot devices allows these FastModel platforms to boot from 'disc' in the same way the hardware counterpart can boot from SATA or USB.
This is a NOP if CONFIG_CMD_VIRTIO is not enabled, so no impact on Juno hardware (which is built with vexpress_aemv8a_juno_defconfig)
Signed-off-by: Robert Catherall robert.catherall@arm.com --- include/configs/vexpress_aemv8.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/vexpress_aemv8.h b/include/configs/vexpress_aemv8.h index 24d8ca0866..8020689e39 100644 --- a/include/configs/vexpress_aemv8.h +++ b/include/configs/vexpress_aemv8.h @@ -187,6 +187,7 @@ func(USB, usb, 0) \ func(SATA, sata, 0) \ func(SATA, sata, 1) \ + FUNC_VIRTIO(func) \ func(PXE, pxe, na) \ func(DHCP, dhcp, na) \ func(AFS, afs, na)

On Thu, 23 Nov 2023 18:22:58 +0000 robert.catherall@foss.arm.com wrote:
Hi Robert,
From: Robert Catherall robert.catherall@arm.com
The AEM and Juno FVPs (Fixed Virtual Platforms) support a VirtIO
I find it odd that the Juno FVP *adds* something on top of the Juno hardware devices, as this kind of defeats the purpose of having an as-close-as-possible software model, but well... Are there more differences than this one?
disc interface. Adding VIRTIO to the list of boot devices allows these FastModel platforms to boot from 'disc' in the same way the hardware counterpart can boot from SATA or USB.
This is a NOP if CONFIG_CMD_VIRTIO is not enabled, so no impact on Juno hardware (which is built with vexpress_aemv8a_juno_defconfig)
So indeed I can confirm that with the vexpress_aemv8a_juno_defconfig there is no difference in the environment, so if that patch helps you:
Signed-off-by: Robert Catherall robert.catherall@arm.com
Reviewed-by: Andre Przywara andre.przywara@arm.com
Cheers, Andre
include/configs/vexpress_aemv8.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/vexpress_aemv8.h b/include/configs/vexpress_aemv8.h index 24d8ca0866..8020689e39 100644 --- a/include/configs/vexpress_aemv8.h +++ b/include/configs/vexpress_aemv8.h @@ -187,6 +187,7 @@ func(USB, usb, 0) \ func(SATA, sata, 0) \ func(SATA, sata, 1) \
- FUNC_VIRTIO(func) \ func(PXE, pxe, na) \ func(DHCP, dhcp, na) \ func(AFS, afs, na)

On Thu, Nov 23, 2023 at 06:22:58PM +0000, robert.catherall@foss.arm.com wrote:
From: Robert Catherall robert.catherall@arm.com
The AEM and Juno FVPs (Fixed Virtual Platforms) support a VirtIO disc interface. Adding VIRTIO to the list of boot devices allows these FastModel platforms to boot from 'disc' in the same way the hardware counterpart can boot from SATA or USB.
This is a NOP if CONFIG_CMD_VIRTIO is not enabled, so no impact on Juno hardware (which is built with vexpress_aemv8a_juno_defconfig)
Signed-off-by: Robert Catherall robert.catherall@arm.com Reviewed-by: Andre Przywara andre.przywara@arm.com
Applied to u-boot/next, thanks!
participants (3)
-
Andre Przywara
-
robert.catherall@foss.arm.com
-
Tom Rini