Skip to contentSkip to conversation

wic: revert grub-efi patch

PATCH In review Yogesh Siraswar 3 participants 5 messages Nov 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wic: revert grub-efi patch

Revert "conf/machine: k3: Enable grub-efi by default in wic images"

This reverts commit d0b09833b44fa23cce86fd99dd8ca6631c61c476.

---
 conf/machine/include/k3.inc | 6 +-----
 wic/sdimage-2part-efi.wks   | 7 -------
 2 files changed, 1 insertion(+), 12 deletions(-)
 delete mode 100644 wic/sdimage-2part-efi.wks
conf/machine/include/k3.inc +1 -5
index 166c0923..e0970698 100644
@@ -44,12 +44,8 @@ IMAGE_BOOT_FILES_LEGACY = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysf
 IMAGE_BOOT_FILES_MULTI_CERT = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin"
 
 IMAGE_BOOT_FILES ?= "${IMAGE_BOOT_FILES_LEGACY}"
-IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}"
 
-EFI_PROVIDER ?= "grub-efi"
-MACHINE_FEATURES += "efi"
-
-WKS_FILE ?= "sdimage-2part-efi.wks"
+WKS_FILE ?= "sdimage-2part.wks"
 do_image_wic[depends] += "virtual/bootloader:do_deploy"
 do_image_wic[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
 do_image_tar[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
wic/sdimage-2part-efi.wks deleted +0 -7
deleted file mode 100644
index ffb8d24b..00000000
@@ -1,7 +0,0 @@
-# short-description: Create SD card image with 2 partitions and EFI support
-# long-description: Creates a partitioned SD card image for TI platforms that
-# supports EFI.  Boot files are located in the first vfat partition with extra
-# reserved space.  We cannot use a GPT here.
-bootloader --append="rootfstype=ext4 ro"
-part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
-part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
Signature · 1 line
2.17.1
#1 lore raw

+Tom

Quoted 3 lines · Yogesh Siraswar via lists.yoctoproject.org

Revert "conf/machine: k3: Enable grub-efi by default in wic images"

This reverts commit d0b09833b44fa23cce86fd99dd8ca6631c61c476.

It is customary to provide a reason for revert.

Quoted 40 lines
---
 conf/machine/include/k3.inc | 6 +-----
 wic/sdimage-2part-efi.wks   | 7 -------
 2 files changed, 1 insertion(+), 12 deletions(-)
 delete mode 100644 wic/sdimage-2part-efi.wks
conf/machine/include/k3.inc +1 -5
index 166c0923..e0970698 100644
@@ -44,12 +44,8 @@ IMAGE_BOOT_FILES_LEGACY = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysf
 IMAGE_BOOT_FILES_MULTI_CERT = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin"
 
 IMAGE_BOOT_FILES ?= "${IMAGE_BOOT_FILES_LEGACY}"
-IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}"
 
-EFI_PROVIDER ?= "grub-efi"
-MACHINE_FEATURES += "efi"
-
-WKS_FILE ?= "sdimage-2part-efi.wks"
+WKS_FILE ?= "sdimage-2part.wks"
 do_image_wic[depends] += "virtual/bootloader:do_deploy"
 do_image_wic[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
 do_image_tar[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
wic/sdimage-2part-efi.wks deleted +0 -7
deleted file mode 100644
index ffb8d24b..00000000
@@ -1,7 +0,0 @@
-# short-description: Create SD card image with 2 partitions and EFI support
-# long-description: Creates a partitioned SD card image for TI platforms that
-# supports EFI.  Boot files are located in the first vfat partition with extra
-# reserved space.  We cannot use a GPT here.
-bootloader --append="rootfstype=ext4 ro"
-part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
-part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
Signature · 1 line
2.17.1
#2 lore raw
Quoted 8 lines · Denys Dmytriyenko

+Tom

Quoted 3 lines · Yogesh Siraswar via lists.yoctoproject.org

Revert "conf/machine: k3: Enable grub-efi by default in wic images"

This reverts commit d0b09833b44fa23cce86fd99dd8ca6631c61c476.

It is customary to provide a reason for revert.

Especially since EFI booting is the path forward. I know there was some messages about this breaking non-EFI booting but there wasn't enough context to explain what was really going on.

Signature · 1 line
Tom
#3 lore raw
Quoted 9 lines · Tom Rini
Quoted 8 lines · Denys Dmytriyenko

+Tom

Quoted 3 lines · Yogesh Siraswar via lists.yoctoproject.org

Revert "conf/machine: k3: Enable grub-efi by default in wic images"

This reverts commit d0b09833b44fa23cce86fd99dd8ca6631c61c476.

It is customary to provide a reason for revert.

This is causing boot issue with WIC images. Didn't get much time debug

Quoted 5 lines

Especially since EFI booting is the path forward. I know there was some messages about this breaking non-EFI booting but there wasn't enough context to explain what was really going on.

#4 lore raw
Quoted 6 lines · Yogesh
Quoted 3 lines · Tom Rini
Quoted 2 lines · Denys Dmytriyenko

+Tom

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines · Yogesh Siraswar via lists.yoctoproject.org
Quoted 3 lines

Revert "conf/machine: k3: Enable grub-efi by default in wic images"

This reverts commit d0b09833b44fa23cce86fd99dd8ca6631c61c476.

It is customary to provide a reason for revert.

This is causing boot issue with WIC images. Didn't get much time debug

Well, you need to go and do that. WIC images were working here when I posted the changes, for EFI. I believe supporting anything that's not "run distro_bootcmd" is also not intended to be supported?

Signature · 1 line
Tom