Skip to contentSkip to conversation

arm-bsp/corstone1000-fvp: Various FVP fixes and updates

PATCH New [email protected] 1 participant 6 messages Nov 23, 2023

lore
Share & tools
lore
#0 lore raw

cover arm-bsp/corstone1000-fvp: Various FVP fixes and updates

From: Emekcan Aras <[email protected]>

This patchset enables various fixes for the new corstone1000-fvp, and enables virtio-net in corstone1000-fvp which is a new feature in the new FVP.

Emekcan Aras (5):
arm/fvp-corstone1000: upgrade to 11.23_25 arm-bsp/corstone1000-fvp: Add virtio-net configuration arm-bsp/corstone1000-fvp: add unpadded image support for MMC card
config
arm-bsp/corstone1000-fvp: Disable Time Annotation arm-bsp/u-boot: corstone1000: enable virtio-net support for FVP

 .../conf/machine/corstone1000-fvp.conf        | 14 ++-
 .../u-boot/u-boot-corstone1000.inc            |  1 +
 ...rstone1000-enable-virtio-net-support.patch | 97 +++++++++++++++++++
 .../recipes-devtools/fvp/fvp-corstone1000.bb  |  6 +-
 4 files changed, 114 insertions(+), 4 deletions(-)
 create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0042-corstone1000-enable-virtio-net-support.patch
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/5 arm/fvp-corstone1000: upgrade to 11.23_25

From: Emekcan Aras <[email protected]>

Upgrade to the 11.23_25 release of the FVP.

---
 meta-arm/recipes-devtools/fvp/fvp-corstone1000.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-arm/recipes-devtools/fvp/fvp-corstone1000.bb +3 -3
index 2373d9f2..4ac9a6ca 100644
@@ -2,11 +2,11 @@ require fvp-ecosystem.inc
 
 MODEL = "Corstone-1000"
 MODEL_CODE = "FVP_Corstone_1000"
-PV = "11.22_35"
+PV = "11.23_25"
 
 SRC_URI = "https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloads/OSS/FVP/${MODEL}/${MODEL_CODE}_${PV}_${FVP_ARCH}.tgz;subdir=${BP};name=fvp-${HOST_ARCH}"
-SRC_URI[fvp-aarch64.sha256sum] = "40c76551ca73328d34513dbc5de2bd094c28da7e91b73fe0361ec8faef644b68"
-SRC_URI[fvp-x86_64.sha256sum] = "30eb648d26827212faeb74b8c10070cbf8bf212d106ee609579f781a32aac6d9"
+SRC_URI[fvp-aarch64.sha256sum] = "e299e81d5fa8b3d2afee0850fd03be31c1a1c3fad07f79849c63e46ee5e36acc"
+SRC_URI[fvp-x86_64.sha256sum] = "ec34c9564ccb5b1eb62fc2757673343a353db1d116a7cb1b5f82f9d985d99cdf"
 
 LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \
                     file://license_terms/third_party_licenses/third_party_licenses.txt;md5=0c32ac6f58ebff83065105042ab98211"
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/5 arm-bsp/corstone1000-fvp: Add virtio-net configuration

In reply to [email protected]

From: Emekcan Aras <[email protected]>

Adds virtio-net configuration to use virtio-net in corstone1000-fvp.

---
 meta-arm-bsp/conf/machine/corstone1000-fvp.conf | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
meta-arm-bsp/conf/machine/corstone1000-fvp.conf +8 -1
index 5b3e1502..bde3ba25 100644
@@ -55,4 +55,11 @@ FVP_CONFIG[board.msd_mmc_2.card_type] ?= "SDHC"
 FVP_CONFIG[board.msd_mmc_2.p_fast_access] ?= "0"
 FVP_CONFIG[board.msd_mmc_2.diagnostics] ?= "2"
 FVP_CONFIG[board.msd_mmc_2.p_max_block_count] ?= "0xFFFF"
-FVP_CONFIG[board.msd_config_2.pl180_fifo_depth] ?= "16"
\ No newline at end of file
+FVP_CONFIG[board.msd_config_2.pl180_fifo_depth] ?= "16"
+
+# Virtio-Net configuration
+FVP_CONFIG[board.virtio_net.enabled] ?= "1"
+FVP_CONFIG[board.virtio_net.hostbridge.interfaceName] ?= "eth1"
+FVP_CONFIG[board.virtio_net.hostbridge.userNetworking] ?= "true"
+FVP_CONFIG[board.virtio_net.hostbridge.userNetPorts] ?= "5555=5555,8080=80,2222=22"
+FVP_CONFIG[board.virtio_net.transport] ?= "legacy"
Signature · 1 line
2.25.1
#3 lore raw

PATCH 3/5 arm-bsp/corstone1000-fvp: add unpadded image support for MMC card config

In reply to [email protected]

From: Emekcan Aras <[email protected]>

Enables unpadded image support for MMC cards.

---
 meta-arm-bsp/conf/machine/corstone1000-fvp.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-arm-bsp/conf/machine/corstone1000-fvp.conf +2 -0
index bde3ba25..b2ed0fdf 100644
@@ -49,6 +49,7 @@ FVP_CONFIG[board.msd_mmc.p_fast_access] ?= "0"
 FVP_CONFIG[board.msd_mmc.diagnostics] ?= "2"
 FVP_CONFIG[board.msd_mmc.p_max_block_count] ?= "0xFFFF"
 FVP_CONFIG[board.msd_config.pl180_fifo_depth] ?= "16"
+FVP_CONFIG[board.msd_mmc.support_unpadded_images] ?= "true"
 
 # MMC2 card configuration
 FVP_CONFIG[board.msd_mmc_2.card_type] ?= "SDHC"
@@ -56,6 +57,7 @@ FVP_CONFIG[board.msd_mmc_2.p_fast_access] ?= "0"
 FVP_CONFIG[board.msd_mmc_2.diagnostics] ?= "2"
 FVP_CONFIG[board.msd_mmc_2.p_max_block_count] ?= "0xFFFF"
 FVP_CONFIG[board.msd_config_2.pl180_fifo_depth] ?= "16"
+FVP_CONFIG[board.msd_mmc_2.support_unpadded_images] ?= "true"
 
 # Virtio-Net configuration
 FVP_CONFIG[board.virtio_net.enabled] ?= "1"
Signature · 1 line
2.25.1
#4 lore raw

PATCH 4/5 arm-bsp/corstone1000-fvp: Disable Time Annotation

In reply to [email protected]

From: Emekcan Aras <[email protected]>

Timing Annotation is a feature of the model that enables high-level performance estimations to be made [1]. This currently doesn't work properly with the new models and it's recommended to unset FASTSIM_DISABLE_TA.

[1] https://developer.arm.com/documentation/100965/1119/Timing-Annotation

---
 meta-arm-bsp/conf/machine/corstone1000-fvp.conf | 3 +++
 1 file changed, 3 insertions(+)
meta-arm-bsp/conf/machine/corstone1000-fvp.conf +3 -0
index b2ed0fdf..9c070b3d 100644
@@ -16,6 +16,9 @@ FVP_PROVIDER ?= "fvp-corstone1000-native"
 FVP_EXE ?= "FVP_Corstone-1000"
 FVP_CONSOLE ?= "host_terminal_0"
 
+#Disable Time Annotation
+FASTSIM_DISABLE_TA = "0"
+
 # FVP Parameters
 FVP_CONFIG[se.trustedBootROMloader.fname] ?= "bl1.bin"
 FVP_CONFIG[board.xnvm_size] ?= "64"
Signature · 1 line
2.25.1
#5 lore raw

PATCH 5/5 arm-bsp/u-boot: corstone1000: enable virtio-net support for FVP

In reply to [email protected]

From: Emekcan Aras <[email protected]>

Use Ethernet over VirtIO on FVP due to lan91c111 Ethernet driver support dropped from U-Boot. This patch enables virtio-net device in u-boot to pass ACS tests related to NIC and PXE. The current ethernet device still works in linux kernel and corstone1000-mps3 Ethernet device is supported by u-boot, so no change is required regarding existing Ethernet device.

---
 .../u-boot/u-boot-corstone1000.inc            |  1 +
 ...rstone1000-enable-virtio-net-support.patch | 97 +++++++++++++++++++
 2 files changed, 98 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0042-corstone1000-enable-virtio-net-support.patch
meta-arm-bsp/recipes-bsp/u-boot/u-boot-corstone1000.inc +1 -0
index 01a8683c..b6b7a04f 100644
@@ -49,6 +49,7 @@ SRC_URI:append = " \
     file://0039-enables-ondisk-capsule-update-feature.patch		  \
     file://0040-fix-runtime-capsule-update-flags-checks.patch		  \
     file://0041-scatter-gather-flag-workaround.patch			  \
+    file://0042-corstone1000-enable-virtio-net-support.patch		  \
     "
 
 do_configure:append(){
meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0042-corstone1000-enable-virtio-net-support.patch new file +97 -0

97 lines not on this page · raw message

Signature · 1 line
2.25.1