arm/generic-arm64: don't set SERIAL_CONSOLES
PATCH 1/3 arm/generic-arm64: don't set SERIAL_CONSOLES
This machine expects something approximating SystemReady, which means the firmware should be capable of telling the kernel where the console is.
Remove SERIAL_CONSOLES so the kernel does what the firmware is told, and doesn't try to use serial consoles that don't exist.
Change-Id Ib0b008fececf4c046112bdede9d0d3ebf9dc332b
Signed-off-by Ross Burton <[email protected]>
--- meta-arm/conf/machine/generic-arm64.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
meta-arm/conf/machine/generic-arm64.conf +2 -4
@@ -1,12 +1,10 @@ #@TYPE: Machine #@NAME: generic-arm64 -#@DESCRIPTION: Generic Arm64 machine for creating rootfs that should work on all arm64 hardware +#@DESCRIPTION: Generic Arm64 machine for typical SystemReady platforms, which +#have working firmware and boot via EFI. require conf/machine/include/arm/arch-armv8a.inc -SERIAL_CONSOLES ?= "115200;ttyAMA0" -SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" - PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" PREFERRED_VERSION_linux-yocto ?= "5.10%"
Signature · 1 line
2.25.1
PATCH 2/3 arm/generic-arm64: use a custom EFI wic file
Instead of using the pre-canned Wic kickstart file, provide our own. This lets us specify that UUIDs should be used in the fstab, meaning that the image is agnostic to the device type.
Change-Id If9c0083c16f8bd2ad7d573a0d356383553aa8936
Signed-off-by Ross Burton <[email protected]>
--- meta-arm/conf/machine/generic-arm64.conf | 4 ++-- meta-arm/wic/efi-disk.wks.in | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 meta-arm/wic/efi-disk.wks.in
meta-arm/conf/machine/generic-arm64.conf +2 -2
@@ -10,12 +10,12 @@ PREFERRED_VERSION_linux-yocto ?= "5.10%" KERNEL_IMAGETYPE = "Image" -IMAGE_BOOT_FILES = "${KERNEL_IMAGETYPE}" IMAGE_FSTYPES ?= "wic" -WKS_FILE ?= "mkefidisk.wks" +WKS_FILE ?= "efi-disk.wks.in" MACHINE_FEATURES += "efi" +EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}" KBUILD_DEFCONFIG = "defconfig" KCONFIG_MODE = "--alldefconfig"
meta-arm/wic/efi-disk.wks.in new file +11 -0
@@ -0,0 +1,11 @@ +# short-description: Create an EFI disk image +# long-description: Creates a partitioned EFI disk image that the user +# can directly dd to boot media. + +part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --label boot --active --align 1024 --use-uuid + +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"
Signature · 1 line
2.25.1
PATCH 3/3 arm/generic-arm64: set machine features
In reply to Ross BurtonSet a slew of generic machine features that other parts of oe-core will respect.
Change-Id I47ea187128c7e3a9f8b711b74467b20b9cb4fcee
Signed-off-by Ross Burton <[email protected]>
--- meta-arm/conf/machine/generic-arm64.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arm/conf/machine/generic-arm64.conf +2 -1
@@ -14,7 +14,8 @@ IMAGE_FSTYPES ?= "wic" WKS_FILE ?= "efi-disk.wks.in" -MACHINE_FEATURES += "efi" +MACHINE_FEATURES += "alsa bluetooth efi qemu-usermode rtc screen usbhost vfat wifi" + EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}" KBUILD_DEFCONFIG = "defconfig"
Signature · 1 line
2.25.1