summaryrefslogtreecommitdiffstats
path: root/wic
diff options
context:
space:
mode:
authorTom Rini <tom.rini@gmail.com>2021-06-28 14:06:17 -0400
committerYogesh Siraswar <yogeshs@ti.com>2021-08-09 15:39:11 +0000
commitd0b09833b44fa23cce86fd99dd8ca6631c61c476 (patch)
tree8a3eb9e4f0268de7b92b8370d924d50a799df547 /wic
parent211f440f5b863078bef4e3af58be00ae187a96a5 (diff)
downloadmeta-ti-d0b09833b44fa23cce86fd99dd8ca6631c61c476.tar.gz
conf/machine: k3: Enable grub-efi by default in wic images
All of our platforms here support running EFI binaries. We can have wic generate a simple grub.cfg file for us that will find the root partition via PARTUUID and utilize the device tree that is already discoverable via the EFI configuration tables. Assuming the EFI loader is U-Boot, this device tree can be replaced at run-time by the normal mechanism of loading in to memory and passing that address as an argument to bootefi. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
Diffstat (limited to 'wic')
-rw-r--r--wic/sdimage-2part-efi.wks7
1 files changed, 7 insertions, 0 deletions
diff --git a/wic/sdimage-2part-efi.wks b/wic/sdimage-2part-efi.wks
new file mode 100644
index 00000000..ffb8d24b
--- /dev/null
+++ b/wic/sdimage-2part-efi.wks
@@ -0,0 +1,7 @@
1# short-description: Create SD card image with 2 partitions and EFI support
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
4# reserved space. We cannot use a GPT here.
5bootloader --append="rootfstype=ext4 ro"
6part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
7part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid