Skip to contentSkip to conversation

arm: vexpress64: juno: Allow boot from VirtIO

PATCH In review [email protected] 3 participants 3 messages Nov 23, 2023 – Dec 19, 2023 Arm/versatile express platform

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: vexpress64: juno: Allow boot from VirtIO

From: Robert Catherall <[email protected]>

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)

---
 include/configs/vexpress_aemv8.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/vexpress_aemv8.h +1 -0
index 24d8ca0866..8020689e39 100644
@@ -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)
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

On Thu, 23 Nov 2023 18:22:58 +0000
[email protected] wrote:

Hi Robert,

Quoted 3 lines

From: Robert Catherall <[email protected]>

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?

Quoted 6 lines

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:

Quoted 1 line

Cheers,
Andre

Quoted 16 lines
---
 include/configs/vexpress_aemv8.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/vexpress_aemv8.h +1 -0
index 24d8ca0866..8020689e39 100644
@@ -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)
#2 lore raw
In reply to [email protected]
Quoted 7 lines · On Thu, Nov 23, 2023 at 06:22:58PM +0000, [email protected] wrote:

From: Robert Catherall <[email protected]>

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.

Quoted 5 lines

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)

Applied to u-boot/next, thanks!

Signature · 1 line
Tom