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.

AM335x SD card boot timeout period

Other Parts Discussed in Thread: AM3352, SYSBIOS

Hi,

With respect to AM3352 SD card boot, is there any timeout period limitation
for the ROM Code during start up(Boot). Does the ROM Code allows sufficient time for SD
card to get initialized and access the image data from the SD card?
I couldn't find much details about the timings in the Chapter 26: Initialization of TRM.

Best Regards
Kummi

  • Kummi,

    Timouts are typically associated with peripheral boot modes supported on AM335x like USB, UART, Ethernet. For SD/MMC, there is no timeout and the device ROM allows for sufficent time to locate an image on the SD/MMC device. If no valid Sd device or MMC device is detected with a valid boot image. Then the ROM moves to the next boot media in the boot sequence. Please refer to the Figure 26-18 for SD/MMC device detection flowchart.

    YOu can also look at the following wiki for board bring up tips:
    processors.wiki.ti.com/.../AM335x_board_bringup_tips

    Regards,
    Rahul
  • Hi Rahul,

    Thank you for the information.
    Currently our customer's application using AM335x has SD card boot problem.
    SD Card type: 8G SDHC class10 UHS Speed Class 1.
    OS: SYS/BIOS with Starterware
    All other cards except this kind of card is booting properly.

    After some tests they have found the booting process is stopped at SD card Read Access.
    It seems the ROM code is recognizing the SD card and it is trying to read the
    FAT32 partition, but all the data seems to be zero and it gets reset at the 7th read command.

    When checked with the Normal/working SD card the boot image was something in different
    format or the FAT12 format.We believe there is some different format that host(AM335x)
    is able to recognize and process the boot.

    Currently we have tried the "HP USB Disk Storage Format Tool v2.0.6 Portable" tool as well
    as other formatting tools but there was no success.

    Could please let us know if there is anything else to be considered
    and if there is any details on how to prepare the SD card boot(FAT32) so that
    ROM code could recognize it properly.

    Best Regards
    Kummi
  • Yes, this could be an issue with FAT formatting issue. We recommend that you use the Linux and Windows utilities recommended here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Creating_a_SD_Card_with_Windows

    For Linux, you can use the SD card creation script described here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_create_SD_card_script

    Regards,
    Rahul
  • Hi Rahul,

    Thank you..

    Unfortunately the link u mentioned don't mention the procedure on how to
    create the image file. The "Create a bootable SD image file" sections mentions
    only about how to use the prebuilt image from the SDK.

    As I mentioned our application is based on SYS/BIOS and Starterware which has
    MLO and App images and we don't have any Linux environment.
    The wiki page "Creating a SD Card with Windows" you mentioned don't have details
    on creating image files which could be written from Win32 Disk Imager tool.

    Please let me know if there is any details.

    Best Regards
    Kummi
  • Kummi,

    I apologize for the confusion. From your description it seemed as if the only issue you were facing was using the correct tool to format FAT filesystem on your SD card. the MLO and app creation does not impact the formating of the SD card.

    However, here is the full process of generating the MLO and the app and then flashing the SD image is described here:

     

    these steps have been validated to create boot image using SYSBIOS as well as Starterware applications. Please let us know if you run into any issues with any of these steps.

    Regards,

    Rahul

  • Hi Rahul,

    Thank you...

    The SD card boots work properly with this procedure!! Appreciate your help.
    We wonder what could be the problem with "HP USB Disk Storage Format Tool v2.0.6"
    formatting as per the starterware wiki??

    Actually the SD card maker did some investigation on AM335x SD card boot and
    they claim that in case of AM335x's SD card creation the Master Boot Record (MBR) is
    placed in a different memory region(x003F) instead of normal memory region(0x​2000).
    We were told that AM335x's SD card creation is not according to the standard SD card
    file system and in long usage the MBR may get deleted leading to SD card boot error.
    Please let me know if there is any comments on this.

    And we would like to know which parameter in bootloader/application decides
    the starting address of the SD card booting? is it possible to place the starting address
    file at a particular location.

    Best Regards
    Kummi