Skip to contentSkip to conversation

conf: machine: am64xx-hs-evm: Fix naming of u-boot.img

PATCH In review Aparna M 2 participants 5 messages Feb 21, 2022 – Feb 25, 2022

lore
Share & tools
lore

Aparna M

author
#0 lore raw

PATCH 1/1 conf: machine: am64xx-hs-evm: Fix naming of u-boot.img

All the HS platforms generate the u-boot binary as u-boot.img_HS but the bootloader expects the binary to be named as u-boot.img

Due to this mismatch, script cannot find the required image to be added in the WIC image. Fix this by overwriting the UBOOT_IMAGE variable via conf file.

---
 conf/machine/am64xx-hs-evm.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/am64xx-hs-evm.conf +2 -1
index 44e81463..781b8318 100644
@@ -17,6 +17,7 @@ UBOOT_DTBO_OFFSET =      "0x00010000"
 SPL_BINARY = "tispl.bin_HS"
 SPL_BINARYNAME = "tispl.bin"
 UBOOT_BINARY = "u-boot.img_HS"
-IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
+UBOOT_IMAGE = "u-boot.img"
+IMAGE_BOOT_FILES = "${UBOOT_IMAGE}"
 
 TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 6 lines · Aparna M via lists.yoctoproject.org

All the HS platforms generate the u-boot binary as u-boot.img_HS but the bootloader expects the binary to be named as u-boot.img

Due to this mismatch, script cannot find the required image to be added in the WIC image. Fix this by overwriting the UBOOT_IMAGE variable via conf file.

Can you please clarify which script cannot find the image? Thanks! Also, how does it work for am65xx HS, j721e HS, j7200 HS? Why only am64xx HS?

Quoted 22 lines
---
 conf/machine/am64xx-hs-evm.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/am64xx-hs-evm.conf +2 -1
index 44e81463..781b8318 100644
@@ -17,6 +17,7 @@ UBOOT_DTBO_OFFSET =      "0x00010000"
 SPL_BINARY = "tispl.bin_HS"
 SPL_BINARYNAME = "tispl.bin"
 UBOOT_BINARY = "u-boot.img_HS"
-IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
+UBOOT_IMAGE = "u-boot.img"
+IMAGE_BOOT_FILES = "${UBOOT_IMAGE}"
 
 TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
Signature · 1 line
2.17.1
author
#2 lore raw
Quoted 9 lines · Denys Dmytriyenko
Quoted 6 lines · Aparna M via lists.yoctoproject.org

All the HS platforms generate the u-boot binary as u-boot.img_HS but the bootloader expects the binary to be named as u-boot.img

Due to this mismatch, script cannot find the required image to be added in the WIC image. Fix this by overwriting the UBOOT_IMAGE variable via conf file.

Can you please clarify which script cannot find the image? Thanks!

The wic file generation scripts that pick up files for the boot partition from the IMAGE_BOOT_FILES variable is unable to find u-boot.img. As a result, the generated wic image does not package the uboot binary and fails.

Quoted 3 lines

Also, how does it work for am65xx HS, j721e HS, j7200 HS? Why only am64xx HS?

The previous releases for these three platforms did not include wic images. I believe this issue might be present in these platforms as well.

Quoted 23 lines
Quoted 23 lines
---
 conf/machine/am64xx-hs-evm.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/am64xx-hs-evm.conf +2 -1
index 44e81463..781b8318 100644
@@ -17,6 +17,7 @@ UBOOT_DTBO_OFFSET =      "0x00010000"
 SPL_BINARY = "tispl.bin_HS"
 SPL_BINARYNAME = "tispl.bin"
 UBOOT_BINARY = "u-boot.img_HS"
-IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
+UBOOT_IMAGE = "u-boot.img"
+IMAGE_BOOT_FILES = "${UBOOT_IMAGE}"
 
 TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
Signature · 1 line
2.17.1
#3 lore raw
Quoted 9 lines · Aparna M via lists.yoctoproject.org
Quoted 8 lines · Denys Dmytriyenko
Quoted 6 lines · Aparna M via lists.yoctoproject.org

All the HS platforms generate the u-boot binary as u-boot.img_HS but the bootloader expects the binary to be named as u-boot.img

Due to this mismatch, script cannot find the required image to be added in the WIC image. Fix this by overwriting the UBOOT_IMAGE variable via conf file.

Quoted 6 lines
Quoted 1 line

Can you please clarify which script cannot find the image? Thanks!

The wic file generation scripts that pick up files for the boot partition from the IMAGE_BOOT_FILES variable is unable to find u-boot.img. As a result, the generated wic image does not package the uboot binary and fails.

I don't see the failure. wic image picks up everything listed in IMAGE_BOOT_FILES variable and it is set right there to contain UBOOT_BINARY, which is set to u-boot.img_HS

HS platforms boot differently and they use FIT image along with other artifacts. I don't believe wic image was ever used for HS platforms...

So, I believe you have some other problem and this is not the right fix for it.

Quoted 30 lines
Quoted 2 lines

Also, how does it work for am65xx HS, j721e HS, j7200 HS? Why only am64xx HS?

The previous releases for these three platforms did not include wic images. I believe this issue might be present in these platforms as well.

Quoted 23 lines
Quoted 23 lines
---
 conf/machine/am64xx-hs-evm.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/am64xx-hs-evm.conf +2 -1
index 44e81463..781b8318 100644
@@ -17,6 +17,7 @@ UBOOT_DTBO_OFFSET =      "0x00010000"
 SPL_BINARY = "tispl.bin_HS"
 SPL_BINARYNAME = "tispl.bin"
 UBOOT_BINARY = "u-boot.img_HS"
-IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
+UBOOT_IMAGE = "u-boot.img"
+IMAGE_BOOT_FILES = "${UBOOT_IMAGE}"
 
 TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
Signature · 1 line
2.17.1
author
#4 lore raw
In reply to Denys Dmytriyenko

Hi,

I looked into wic images generated for am64xx HS, am65xx HS, j7 HS and j7200 HS - the issue seems to be similar. The boot partition contains u-boot.img_HS file but other boot binaries are missing. Please wait before further review. Will get back with updates.

Thanks,
Aparna