elftosb segfaults when trying to generate bootable image for RT1064

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

elftosb segfaults when trying to generate bootable image for RT1064

1,152 Views
asmvolatile
Contributor I

I am trying to generate a bootable image for the RT1064, following this article, but elftosb crashes

I am compiling the SDK GPIO driver example to execute from RAM, and need to build a bootable image to store into QSPI flash, so the ROM bootloader can copy it into RAM to execute after a reset.

When I try to use elftosb to generate the intermediate bin file, I get a segmentation fault, and am left with an empty output.bin

$elftosb -f imx -V -c imx-itcm-unsigned.bd -o output.bin igpio_led_output.srec
        Section: 0x0
Segmentation fault (core dumped)

Note:

  • I am using elftosb obtained from the flashloader download at Flashloader_RT1064_1.0_GA/Tools/bd_file/imx10xx/elftosb
  • I am using the bd file obtained from the flashloader download at Flashloader_RT1064_1.0_GA/Tools/bd_file/imx10xx/imx-itcm-unsigned.bd
  • I created the srec file from the elf file using arm-none-eabi-objcopy -O srec debug/igpio_led_output.elf debug/igpio_led_output.srec

I'm using GCC ARM toolchain on a linux host system, so I can't use Jay Heng's GUI.

I have seen this issue, which hasn't been answered, that looks very similar.

I have also seen this issue, which seems identical, but I'm already using the Linux version of elftosb and my problem was not fixed when I downloaded the elftosb version provided by @jeremyzhou 

 

 

0 Kudos
Reply
1 Reply

1,123 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
I hope you are well.

I suggest you use nxpimage instead of elftosb. You can find it on the SPSDK: Secure Provisioning SDK (SPSDK) | NXP Semiconductors
User Guide - nxpimage — SPSDK documentation
Please check how the image is placed on RAM, it is important to make the image start with an offset of 0x3000 when using internal SRAM.

Best regards,
Omar

0 Kudos
Reply