This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM5716: Generating image binary file

Guru 10255 points

Part Number: AM5716

Tool/software: TI-RTOS

Hi Sitara support Team,

I would like to know the way to generate tiimage for AM571xIDK.

I have checked the following wiki site.
processors.wiki.ti.com/.../Processor_SDK_RTOS_BOOT_AM57x

There is no information to set the big/littele endian when tiimage is generated.
Does it need to set the littele endian for SD card boot,
and to set the big endian for QSPI boot as following command?

$tiimage.exe <Load Address> <ENDIAN> SBL.bin SBL.tiimage

I have just refer to this document which is for TDAxx.
processors.wiki.ti.com/.../TDA_SBL_UserGuide.pdf

When it generates the tiimage for AM571xIDK, I should care about the endian, or not?

Is there SBL user guide for AM57xx such as for TDAxx device? 

Best regards,
Kanae

  • The RTOS team have been notified. They will respond here.
  • Kanae,

    The SBL support for TDAxx devices is different from the SBL supported with AM57xx devices. For AM572x, we provide a version of the tiimage tool that does the boot image formatting based on BOOTMODE specified rather than expecting the user to provide if the image needs to be in little endian or big endian based on appropriate boot mode.

    We provide the boot image tool tiimageGen in source, so you can look at the source at pdk_am57xx_1_0_xx\packages\ti\boot\sbl\tools\tiImageGen\src

    Internally the utility detects that for SPI and QSPI, the image bytes need to be swapped and calls a byte_swap32 function to provide the image in the expected format.

    We have QSPI boot supported on AM572x IDK and AM571xIDK, so please build the SBL for that platform and check to confirm that the image is generated in the expected format.
    cd pdk_am57xx_1_0_xx\packages\ti\boot\sbl
    make all BOARD=idkAM572x SOC=AM572x BOOTMODE=qspi
    make all BOARD=idkAM571x SOC=AM571x BOOTMODE=qspi

    The Wiki documentation that you are referring to is the user guide for AM572x SBL. If you are not finding some information in the user guide then, that detail is either abstracted from the end user or can be found in the source files of the SBL. Let us know if you need our help in finding some of these details.

    Regards,
    Rahul

    PS: The fulll build from creation of sbl.out and subsequent creation of the tiimage format mlo is provided in the makefile at the location:
    pdk_am57xx_1_0_xx\packages\ti\boot\sbl\board\idkAM572x
  • Hi Rahul,

    Thank you for your reply.

    I will ask my customer not to use the document of TDAxx for AM57xx as a reference,
    I do not know why they referred to it though.

    I understand that user must specify "mode" such as "qpsi" instead of "endian" for AM57xx SBL.

    Best regards,
    Kanae