Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # Configuration for Armv8-A Base Platform FVP |
| 2 | |
| 3 | #@TYPE: Machine |
| 4 | #@NAME: Armv8-A Base Platform FVP machine |
| 5 | #@DESCRIPTION: Machine configuration for Armv8-A Base Platform FVP model |
| 6 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 7 | require conf/machine/include/arm/arch-armv8-4a.inc |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 8 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 9 | ARM_SYSTEMREADY_FIRMWARE = "trusted-firmware-a:do_deploy" |
| 10 | ARM_SYSTEMREADY_ACS_CONSOLE = "default" |
| 11 | EXTRA_IMAGEDEPENDS = "${ARM_SYSTEMREADY_FIRMWARE}" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 12 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 13 | MACHINE_FEATURES = "efi" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 14 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 15 | IMAGE_NAME_SUFFIX = "" |
| 16 | IMAGE_FSTYPES += "wic" |
| 17 | WKS_FILE ?= "efi-disk.wks.in" |
| 18 | |
| 19 | SERIAL_CONSOLES = "115200;ttyAMA0" |
| 20 | |
| 21 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" |
| 22 | KERNEL_DEVICETREE = "arm/fvp-base-revc.dtb" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 23 | KERNEL_IMAGETYPE = "Image" |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 24 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 25 | EXTRA_IMAGEDEPENDS += "trusted-firmware-a" |
| 26 | |
| 27 | # FVP u-boot configuration |
| 28 | UBOOT_MACHINE = "vexpress_fvp_defconfig" |
| 29 | |
| 30 | EFI_PROVIDER ?= "grub-efi" |
| 31 | |
| 32 | # As this is a virtual target that will not be used in the real world there is |
| 33 | # no need for real SSH keys. |
| 34 | MACHINE_EXTRA_RRECOMMENDS += "ssh-pregen-hostkeys" |
| 35 | |
| 36 | TEST_TARGET = "OEFVPTarget" |
| 37 | TEST_TARGET_IP = "127.0.0.1:2222" |
| 38 | DEFAULT_TEST_SUITES:append = " fvp_boot fvp_devices" |
| 39 | TEST_FVP_DEVICES ?= "rtc watchdog networking virtiorng cpu_hotplug" |
| 40 | |
| 41 | FVP_PROVIDER ?= "fvp-base-a-aem-native" |
| 42 | FVP_EXE ?= "FVP_Base_RevC-2xAEMvA" |
| 43 | FVP_CONFIG[bp.ve_sysregs.exit_on_shutdown] ?= "1" |
| 44 | FVP_CONFIG[bp.virtio_net.enabled] ?= "1" |
| 45 | FVP_CONFIG[bp.virtio_net.hostbridge.userNetworking] ?= "1" |
| 46 | # Tell testimage to connect to localhost:2222, and forward that to SSH in the FVP. |
| 47 | FVP_CONFIG[bp.virtio_net.hostbridge.userNetPorts] = "2222=22" |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 48 | FVP_CONFIG[bp.virtio_rng.enabled] ?= "1" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 49 | FVP_CONFIG[cache_state_modelled] ?= "0" |
| 50 | FVP_CONFIG[bp.secureflashloader.fname] ?= "bl1-fvp.bin" |
| 51 | FVP_CONFIG[bp.flashloader0.fname] ?= "fip-fvp.bin" |
| 52 | FVP_CONFIG[bp.virtioblockdevice.image_path] ?= "${IMAGE_NAME}.wic" |
| 53 | # Set the baseline to ARMv8.4, as the default is 8.0. |
| 54 | FVP_CONFIG[cluster0.has_arm_v8-4] = "1" |
| 55 | FVP_CONFIG[cluster1.has_arm_v8-4] = "1" |
| 56 | FVP_CONSOLES[default] = "terminal_0" |
| 57 | FVP_TERMINALS[bp.terminal_0] ?= "Console" |
| 58 | FVP_TERMINALS[bp.terminal_1] ?= "" |
| 59 | FVP_TERMINALS[bp.terminal_2] ?= "" |
| 60 | FVP_TERMINALS[bp.terminal_3] ?= "" |