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/AM5728: SD card boot issue on IDK

Part Number: AM5728

Tool/software: TI-RTOS

Hi,

AM5728 does not boot from 32 gByte SDCARD.

The same bootloader and app (TI-RTOS) work normally if copied to smaller card.

Are the any restrictions to size/type of SDCARD?

Thanks

Rasty

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

    Can you confirm that the 32 gByte SD card was also FAT formatted using either Linux or RTOS tools that were described here:

    Windows guide:
    software-dl.ti.com/.../Overview.html

    OR

    Linux guide:
    software-dl.ti.com/.../Overview.html

    I don`t think there is SD card size restriction but we know that not all FAT formatting tools are compatible with the FAT16/FAT32 formatting recognized by the ROM bootloader on this device.

    Regards,
    Rahul

  • Hi,

    Formatted to FAt32 with windows quick format. Then copied MLO and app to root.

    The same we did to smaller SD card and it worked well.

    I briefly checked Windows guide: software-dl.ti.com/.../Overview.html it is limited to burning of pre-built image, which will limit available space on target SDCARD to image size, not what we want.  

    Thanks

    Rasty.

  • Rasty,

    I suspect that Windows quick format uses exFAT format for larger SD cards (greater than 4GB) which the ROM bootloader on the device doesn`t recognize. The active primary (first boot partition) should be FAT12/16/32 format as indicated in the TRM Chapter 33.3.7.6.5 Filesystem handling.

    I believe this is also enforced in Processor SDK Linux where the device boots initial SPL/MLO from FAT formatted boot partition and then use vfat/ext4 for the rest of the Linux filesystem and kernel boot.

    Regards,
    Rahul
  • Hi Rahul,

    format g: /FS:FAT32 /Q
    Insert new disk for drive G:
    and press ENTER when ready...
    The type of the file system is RAW.
    The new file system is FAT32.
    QuickFormatting 30432M
    Initializing the File Allocation Table (FAT)...
    Volume label (11 characters, ENTER for none)?
    Format complete.
    29.7 GB total disk space.
    29.7 GB are available.

    16,384 bytes in each allocation unit.
    1,946,655 allocation units available on disk.

    32 bits in each FAT entry.

    Volume Serial Number is 3E16-24DA

    MLO from C:\ti\pdk_am57xx_1_0_10\packages\ti\boot\sbl\binary\idkAM572x\mmcsd\bin


    Does not boot.

    The same works with 1gb Card.

    Thanks
    Rasty
  • Rasty,

    I contacted the ROM author about this issue and his response is provided below:

    "The ROM has a rather strict implementation of the FAT, and all the ifs and buts are described in the TRM...the linux way works fine on all devices, and for windows, a particular version of the HP USB tool (HP USB Disk Storage Format Tool v2.0.6 Portable ). Among a ton of other things, AM5/AM3 needs a partition table to be created in sector 0, and the boot partition must be marked as an active partition in the partition table. Utilities that work with AM335x ROM will definitely work with AM57xx devices as AM335x has the most stringent requirements, followed by AM57x"

    There was an internal exercise  undertaken to identify alternative for windows users which is documented in the PDF attached below.

    PRSDK_SD_booting_alternatives_for_Windows.pdf

    Refer to the section: Limitations to the to WinDisk32 SD card utility & Alternate options.

    If you are having issues with windows utilities, I would recommend using the Linux formatting approach since it is a one time exercise.

    Regards

    Rahul

  • Tested with hp format tool.

    Does not boot either.

  • Rasty,

    I got two new 16 GB and 32 GB SD cards and tested the HP USB Disk formatting and Linux create-sdcard.sh approach and both of them worked with the IDK AM572x setup.

    Windows 7 setup with HP USB DIsk for SD card formatting:

    1. HP USB Disk Storage Format Tool v2.0.6 Portable has to be used to format the SD card. This tool can be downloaded from this link.

    2.Choose a SD card and a USB based or similar SD card reader/writer. Plug it to a Windows host system.

    3. Run the HP USB Disk Storage Format Tool v2.0.6 Portable executable. The executable should automatically detect the SD card plugged via reader. Else point it to the new disk.

    4. Choose FAT32 if the SD card size is greater that 4GB. Else FAT should be good to go.

    5. Click on 'Start'.

    After the formatting is complete, the card is ready to be populated with the files required.

    This needs to be run as administrator takes a while to format and depends on the size of the SD card. Took about 20 mins on my Windows 10 PC. 

    6. Copy MLO and app file to the SD card that will be detected on windows as BOOT volume and insert the SD card in the idkAM572x and power up.

    Linux SD formatting setup:

    On Linux host where the SD is installed, follow the steps below:

    sudo [SDK Install Path]/bin/create-sdcard.sh

    [SDK Install Path]/processor_sdk_rtos_am57xx_<version>/prebuilt-sdcards/idkAM572x/sd_card_files/

    LoG:

    SD_card_create_log.txt
    sitara@sitara-Latitude-E6420:~/ti/PRSDK33_AM57x/processor_sdk_rtos_am57xx_3_03_00_04$ sudo bin/create-sdcard.sh /home/sitara/ti/PRSDK33_AM57x/processor_sdk_rtos_am57xx_3_03_00_04/prebuilt-sdcards/idkAM572x/sd_card_files/
    
    
    ################################################################################
    
    This script will create a bootable SD card from custom or pre-built binaries.
    
    The script must be run with root permissions and from the bin directory of
    the SDK
    
    Example:
     $ sudo ./create-sdcard.sh path/to/sdcard/files
    
    Formatting can be skipped if the SD card is already formatted and
    partitioned properly.
    
    ################################################################################
    
    
    Available Drives to write images to: 
    
    #  major   minor    size   name 
    1:   8       16   31166976 sdb
     
    Enter Device Number or n to exit: 1
     
    sdb was selected
    
    ################################################################################
    
    		**********WARNING**********
    
    	Selected Device is greater then 16GB
    	Continuing past this point will erase data from device
    	Double check that this is the correct SD Card
    
    ################################################################################
    
    Would you like to continue [y/n] : y
    
     
    
    
    /dev/sdb is an sdx device
     unmounted /dev/sdb
    umount2: Invalid argument
    umount: /dev/sdb: not mounted
    Current size of sdb1 31166944 bytes
    
    ################################################################################
    
    		Now erasing partition table
    
    ################################################################################
    
    1024+0 records in
    1024+0 records out
    1048576 bytes (1.0 MB) copied, 0.300238 s, 3.5 MB/s
    
    ################################################################################
    
    		Partitioning Boot
    
    ################################################################################
    mkfs.fat 3.0.26 (2014-03-07)
    mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
     
    Mount the partitions 
     
    Emptying partitions 
     
    
    Syncing....
    
    ################################################################################
    
    	Copying files now... will take minutes
    
    ################################################################################
    
    Copying boot partition
    
    
    
    Syncing...
     
    Un-mount the partitions 
     
    Remove created temp directories 
     
    Operation Finished
     
    
    

     

    Time taken to format : less than a minute and is easier for automation.

    Regards,

    Rahul

  • Hi Rahul,

    Thank  you very much for the test.

    I'll follow exactly your procedure.

    Would you post here a picture of card that you use?

    Best regards

    Rasty

  • I have attached the SD card images:

  • 32 GB card works!
    Not sure what exactly does the trick:
    a) Full format (not quick!)
    b) Volume name "BOOT"
    c) exact version (2.0.6) of HP tool
  • Thanks for confirming Rasty. I know for sure that the version of the tool matters as per the ROM team but will need to confirm on a and b. 

    Regards,

    Rahul