From: Varalaxmi Bingi <[email protected]> In 2024.1 we started using u-boot.elf with is having relocation and earlier we use u-boot without relocation. In earlier binary the payload address used to come in .text section and in the u-boot.elf it was in .data section. So doing the changes. Without this change fs-boot is unable to find the u-boot load address in the header and mcs boot is failing.
Signed-off-by: Varalaxmi Bingi <[email protected]> Signed-off-by: Mark Hatle <[email protected]> --- scripts/mb-realoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mb-realoc b/scripts/mb-realoc index 9239fe2..158560f 100755 --- a/scripts/mb-realoc +++ b/scripts/mb-realoc @@ -92,7 +92,7 @@ function parse_args { function get_elf_addr_and_size { # Get load address of payload ELF file - ELF_LMA=0x$(${CROSS_COMPILE}objdump --headers $INFILE | grep -w "\.text" | awk '{print $5}') + ELF_LMA=0x$(${CROSS_COMPILE}objdump --headers $INFILE | grep -w "\.data" | awk '{print $5}') # Generate binary image of payload ${CROSS_COMPILE}objcopy -R .note -R .comment -R .note.gnu.build-id -O binary $INFILE $TMP_BINFILE -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5415): https://lists.yoctoproject.org/g/meta-xilinx/message/5415 Mute This Topic: https://lists.yoctoproject.org/mt/106610006/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
