summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/wic
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2024-04-24 18:36:24 -0400
committerRyan Eatmon <reatmon@ti.com>2024-04-26 16:20:17 -0500
commit78e268233dbc0fdb5c7b4cbc5f3d7a0464d403c0 (patch)
tree07405326be3e8957a9c3801808e8f40d03600afc /meta-ti-bsp/wic
parentd3696f0524fa749af847662ea665cece832cb3dc (diff)
downloadmeta-ti-78e268233dbc0fdb5c7b4cbc5f3d7a0464d403c0.tar.gz
wic: prevent boot FAT partition mounting under /boot
Separate FAT boot partition holds SPL, SYSFW and U-boot images, while rootfs places kernel images and DTBs into /boot directory. So it is not desirable to mount boot FAT partition into /boot directory of the rootfs and shadow its original content - adjust corresponding entry in wic templates. While at it, remove unused ondisk parameter when using use-uuid, which takes precedence and is more flexible. Note: boot FAT partition will be automounted at /run/media/boot-mmcblk0p1/ Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-by: Jonathan Cormier <jcormier@criticallink.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/wic')
-rw-r--r--meta-ti-bsp/wic/sdimage-2part-efi.wks.in3
-rw-r--r--meta-ti-bsp/wic/sdimage-2part.wks4
2 files changed, 4 insertions, 3 deletions
diff --git a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in
index 2213a348..ca042be1 100644
--- a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in
+++ b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in
@@ -2,6 +2,7 @@
2# long-description: Creates a partitioned SD card image for TI platforms that 2# long-description: Creates a partitioned SD card image for TI platforms that
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
5bootloader --timeout=3 --append="rootfstype=ext4" 6bootloader --timeout=3 --append="rootfstype=ext4"
6part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M 7part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
7part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid 8part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
diff --git a/meta-ti-bsp/wic/sdimage-2part.wks b/meta-ti-bsp/wic/sdimage-2part.wks
index 3eab9407..5073176e 100644
--- a/meta-ti-bsp/wic/sdimage-2part.wks
+++ b/meta-ti-bsp/wic/sdimage-2part.wks
@@ -2,5 +2,5 @@
2# long-description: Creates a partitioned SD card image for TI platforms. 2# long-description: Creates a partitioned SD card image for TI platforms.
3# Boot files are located in the first vfat partition with extra reserved space. 3# Boot files are located in the first vfat partition with extra reserved space.
4 4
5part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 1024 --fixed-size 128 --use-uuid 5part --source bootimg-partition --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
6part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 1024 --use-uuid 6part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid