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/PROCESSOR-SDK-AM57X: Creating boot SD card

Part Number: PROCESSOR-SDK-AM57X
Other Parts Discussed in Thread: AM5728

Tool/software: TI-RTOS

Hello,

I have a customer who is trying to create a bootable SD card for an application that she is writing. The TI-RTOS application runs on a custom AM572X based board and we have verified that it runs through JTAG. However for the actual use case the customer would like to create an SD card to host the application so that no jtag connection is needed.

We have successfully used the pdkAppImageCreate.bat script to generate an "app" image from the compiled .out file. I have tried using both release and debug targets as the source of the binary to no avail.

I have rebuit PDK so that the MLO reflects the changes to the board files we made as necessary. I have tried multiple bootable FAT partitioned SD cards and none of them appear to be working.

Here is the process we are using for generating these SD cards:

  1. Create bootable FAT partition on SD card as the first partition
  2. Use pdkAppImageCreate.bat to generate an "app" file
  3. Copy MLO from boot\sbl\binary\evmAM572x\mmcsd\bin to SD card
  4. Copy "app" file to SD card
  5. Boot board (boot order includes mmcsd and there is nothing else that's bootable on the system)

Is there something we are missing in this whole process?

Regards,

Munan

  • I moved the thread to the device forum. I expect they have had more experience with this.

    Todd
  • Munan,

    what steps did you use to create the FAT  partition. Did you follow the steps provided here:

     

    If you are using Linux, please use the script provided and if you are using Windows, we recommend that you use the Windows utility recommended on the wiki.

    Please try this first on the TI GP EVM and then on the custom hardware. The MLO provided by TI Processor SDK RTOS uses the board library to initialize the SOC and board level components like DDR so on custom board, a custom board library needs to be created and linked to the SBL(MLO) build.

    Regards,

    Rahul 

  • Hi Munan,

    What exactly isn't working? 

    Try formatting the SD card using this tool (use the full format option). In my experience (with u-boot) I've had a few SD cards suddenly stop booting after some time. They would just one day not even load u-boot. The tool was then able to recover the cards. 

  • Amad,

    It seems to me like it's not making it very far past the start of the MLO. I made an SD card using the windows disk imager tool Rahul suggested, and this successfully booted the AM572x GP EVM. However using an MLO and application compiled for the custom board I see no output on the board UART. I am in the process of rebuilding PDK for the GP EVM and will see if I can get the customer's application running on the GP EVM from the SD card.

    I think the root of the issue lies somewhere in trying to initialize the DDR, or having the MLO trying to put the application into DDR. We have not yet adjusted the DDR timings for the board so I'm guessing that the application load will fail on verification. Is there a way to build MLO for SDRAM so that we can verify the functionality of SD card boot without having to set up DDR first?

    Regards,

    Munan
  • Hi Munan,


    Actually am facing the same problem using the same board AM5728 , when am trying to flash through the SDCard am getting INVALID MAGIC NUMBER error in the teraterm console.
    I renamed the .OUT file to APP which i got after building the application in CCS.
    I copied APP,MLO from PDK of AM572X, and CONFIG files onto SDCard and trying to flash on board am getting the above error!!
    Can i know what is the problem exactly?

    Thanks ,
    Swarna
  • Swarna,

    This issue was resolved offline. The issue Munan faced is not similar to what you are reporting as Munan was using a custom board with different clock and DDR setup which was the root cause of his issue.

    I have replied to your post regarding booting EtherCat Application on AM57xx IDK here :
    e2e.ti.com/.../604559

    Regards,
    Rahul