diff options
author | Ryan Eatmon <reatmon@ti.com> | 2025-02-13 10:53:38 -0600 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-07-24 08:55:15 -0500 |
commit | 8aa6c57ae7d608812db0e2ee14f5c38bd69bbb0f (patch) | |
tree | 3e7bcb2e46b727b2e74a3dec7f94ddd118a20428 | |
parent | edbdfa9489fdae32ef2e6bc87a38bdff08c4d9f6 (diff) | |
download | meta-ti-8aa6c57ae7d608812db0e2ee14f5c38bd69bbb0f.tar.gz |
wic: sdimage-2part-efi: Add variable for adding bootloader options
We have a need for some platforms to add kernel options to the bootloader
during wic creation time. Create a new variable and add that to the
sdimage-2part-efi.wks.in file so that a machine can override it if
needed.
Add an override for am64 to point the kernel at console=ttyS2.
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-ti-bsp/conf/machine/include/am64xx.inc | 2 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/include/k3.inc | 2 | ||||
-rw-r--r-- | meta-ti-bsp/wic/sdimage-2part-efi.wks.in | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/meta-ti-bsp/conf/machine/include/am64xx.inc b/meta-ti-bsp/conf/machine/include/am64xx.inc index 49e996c8..56b56afe 100644 --- a/meta-ti-bsp/conf/machine/include/am64xx.inc +++ b/meta-ti-bsp/conf/machine/include/am64xx.inc | |||
@@ -34,3 +34,5 @@ TFA_BOARD = "lite" | |||
34 | OPTEEMACHINE = "k3-am64x" | 34 | OPTEEMACHINE = "k3-am64x" |
35 | 35 | ||
36 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw" | 36 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw" |
37 | |||
38 | TI_WKS_BOOTLOADER_APPEND="console=ttyS2,115200n8" | ||
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc index 0e8729df..7860a84c 100644 --- a/meta-ti-bsp/conf/machine/include/k3.inc +++ b/meta-ti-bsp/conf/machine/include/k3.inc | |||
@@ -50,6 +50,8 @@ MACHINE_FEATURES += "efi" | |||
50 | 50 | ||
51 | WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}" | 51 | WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}" |
52 | 52 | ||
53 | TI_WKS_BOOTLOADER_APPEND ?= "" | ||
54 | |||
53 | do_image_wic[depends] += "virtual/bootloader:do_deploy" | 55 | do_image_wic[depends] += "virtual/bootloader:do_deploy" |
54 | 56 | ||
55 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" | 57 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" |
diff --git a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in index ca042be1..ae38daa7 100644 --- a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in +++ b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in | |||
@@ -3,6 +3,6 @@ | |||
3 | # supports EFI. Boot files are located in the first vfat partition with extra | 3 | # supports EFI. Boot files are located in the first vfat partition with extra |
4 | # reserved space. We cannot use a GPT here. | 4 | # reserved space. We cannot use a GPT here. |
5 | 5 | ||
6 | bootloader --timeout=3 --append="rootfstype=ext4" | 6 | bootloader --timeout=3 --append="rootfstype=ext4 ${TI_WKS_BOOTLOADER_APPEND}" |
7 | part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M | 7 | part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M |
8 | part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid | 8 | part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid |