diff mbox series

[1/3] arm-bsp/fvp-base: support poky-altcfg

Message ID 20240920125716.13293-1-jon.mason@arm.com
State New
Headers show
Series [1/3] arm-bsp/fvp-base: support poky-altcfg | expand

Commit Message

Jon Mason Sept. 20, 2024, 12:57 p.m. UTC
Add the bits to enable poky-altcfg to boot to prompt on fvp-base.
Unfortunately, ssh takes a very long time to come up, which causes the
ssh test to timeout.  So, don't enable this by default in CI.
Also, switch to building full-cmdline instead of sato, since we're never
actually testing the graphics on this platform.

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 ci/fvp-base.yml                         | 2 +-
 meta-arm-bsp/conf/machine/fvp-base.conf | 6 ++++--
 meta-arm/wic/efi-disk.wks.in            | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

Comments

Jon Mason Sept. 20, 2024, 3:34 p.m. UTC | #1
On Fri, 20 Sep 2024 08:57:14 -0400, Jon Mason wrote:
> Add the bits to enable poky-altcfg to boot to prompt on fvp-base.
> Unfortunately, ssh takes a very long time to come up, which causes the
> ssh test to timeout.  So, don't enable this by default in CI.
> Also, switch to building full-cmdline instead of sato, since we're never
> actually testing the graphics on this platform.
> 
> 
> [...]

Applied, thanks!

[1/3] arm-bsp/fvp-base: support poky-altcfg
      commit: a6e74d3926dbd5ad1d7e1ebab60371d807f545d2
[2/3] arm-bsp/fvp-base: Get 6.10 kernel working
      commit: 60fd47edd0f4757c11554848d717283f06c8c846
[3/3] arm-bsp/fvp: Re-enable parselogs
      commit: ea2c1ab5db4e2bd9ad0e93534f62391c86417a0c

Best regards,
diff mbox series

Patch

diff --git a/ci/fvp-base.yml b/ci/fvp-base.yml
index bbc6c44db3be..5719ea8066aa 100644
--- a/ci/fvp-base.yml
+++ b/ci/fvp-base.yml
@@ -9,5 +9,5 @@  header:
 machine: fvp-base
 
 target:
-  - core-image-sato
+  - core-image-full-cmdline
   - boot-wrapper-aarch64
diff --git a/meta-arm-bsp/conf/machine/fvp-base.conf b/meta-arm-bsp/conf/machine/fvp-base.conf
index 353024e26b72..cbfd79d25828 100644
--- a/meta-arm-bsp/conf/machine/fvp-base.conf
+++ b/meta-arm-bsp/conf/machine/fvp-base.conf
@@ -11,13 +11,15 @@  ARM_SYSTEMREADY_ACS_CONSOLE = "default"
 EXTRA_IMAGEDEPENDS = "${ARM_SYSTEMREADY_FIRMWARE}"
 PREFERRED_VERSION_trusted-firmware-a ?= "2.10.%"
 
-MACHINE_FEATURES = "efi"
+MACHINE_FEATURES = "efi vfat"
 
 IMAGE_NAME_SUFFIX = ""
 IMAGE_FSTYPES += "wic"
 WKS_FILE ?= "efi-disk.wks.in"
 
 SERIAL_CONSOLES = "115200;ttyAMA0"
+# FIXME -  This is being upstreamed.  Remove once that has occurred.
+KERNEL_CONSOLE ?= "${@','.join(d.getVar('SERIAL_CONSOLES').split(' ')[0].split(';')[::-1]) or 'ttyS0'}"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
 KERNEL_DTB_NAME = "fvp-base-revc.dtb"
@@ -29,7 +31,7 @@  EXTRA_IMAGEDEPENDS += "trusted-firmware-a"
 # FVP u-boot configuration
 UBOOT_MACHINE = "vexpress_fvp_defconfig"
 
-EFI_PROVIDER ?= "grub-efi"
+EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}"
 
 # As this is a virtual target that will not be used in the real world there is
 # no need for real SSH keys.
diff --git a/meta-arm/wic/efi-disk.wks.in b/meta-arm/wic/efi-disk.wks.in
index 198ae2a6d0b8..e1120da056cd 100644
--- a/meta-arm/wic/efi-disk.wks.in
+++ b/meta-arm/wic/efi-disk.wks.in
@@ -8,4 +8,4 @@  part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
 
 part swap --size 44 --label swap --fstype=swap --use-uuid
 
-bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4"
+bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4 console=${KERNEL_CONSOLE}"