summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorHiago De Franco <hiago.franco@toradex.com>2024-03-08 15:57:31 -0300
committerHiago De Franco <hiago.franco@toradex.com>2024-03-08 17:33:21 -0300
commit5a906365fd29f9792abd4568b44215479ab53336 (patch)
tree88ac7269e57d316299219e312d9738f3d4eaabee /classes
parent0328d5e2ef30291866c9483484b715e7659dc3fe (diff)
downloadmeta-freescale-5a906365fd29f9792abd4568b44215479ab53336.tar.gz
uuu_bootloader_tag.bbclass: Add UUU_BOOTLOADER_UNTAGGED
Add UUU_BOOTLOADER_UNTAGGED flag to add the possibility to deploy a imx-boot binary without the tagged footer 'UUUBURNXXOEUZX7+A-XY5601QQWWZ%sEN' at the end. The addition of the footer 'UUUBURNXXOEUZX7+A-XY5601QQWWZ%sEN' at the end causes issues when the binary is loaded into RAM memory, this footer may cause issues where the binary size exceeds the typical USB package size used by UUU (1021 bytes). As example, if the footer is split across two distinct USB packages, such as sending 'UUUBURNXXXOE' in the last packet and 'UZX7+A-XY5601QQWWZ%sEND' in the next one, it can lead to UUU halting while waiting for a response in SDPS mode. After sending 'UUUBURNXXXOE', iMX8MP's boot room starts SPL, not waiting for the next packet ('UZX7+A-XY5601QQWWZ%sEND'), leading to UUU breaking. Therefore, deploy both binaries separately (-tagged and -untagged) to allow users to choose the appropriate binary. Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/uuu_bootloader_tag.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/uuu_bootloader_tag.bbclass b/classes/uuu_bootloader_tag.bbclass
index fb6acd72..52ab360a 100644
--- a/classes/uuu_bootloader_tag.bbclass
+++ b/classes/uuu_bootloader_tag.bbclass
@@ -4,6 +4,7 @@
4do_deploy:append() { 4do_deploy:append() {
5 if [ "${UUU_BOOTLOADER}" != "" ]; then 5 if [ "${UUU_BOOTLOADER}" != "" ]; then
6 cp ${DEPLOYDIR}/${UUU_BOOTLOADER} ${DEPLOYDIR}/${UUU_BOOTLOADER_TAGGED} 6 cp ${DEPLOYDIR}/${UUU_BOOTLOADER} ${DEPLOYDIR}/${UUU_BOOTLOADER_TAGGED}
7 cp ${DEPLOYDIR}/${UUU_BOOTLOADER} ${DEPLOYDIR}/${UUU_BOOTLOADER_UNTAGGED}
7 ln -sf ${UUU_BOOTLOADER_TAGGED} ${DEPLOYDIR}/${UUU_BOOTLOADER} 8 ln -sf ${UUU_BOOTLOADER_TAGGED} ${DEPLOYDIR}/${UUU_BOOTLOADER}
8 stat -L -cUUUBURNXXOEUZX7+A-XY5601QQWWZ%sEND ${DEPLOYDIR}/${UUU_BOOTLOADER} \ 9 stat -L -cUUUBURNXXOEUZX7+A-XY5601QQWWZ%sEND ${DEPLOYDIR}/${UUU_BOOTLOADER} \
9 >> ${DEPLOYDIR}/${UUU_BOOTLOADER} 10 >> ${DEPLOYDIR}/${UUU_BOOTLOADER}