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.

TMDSIDK574: Unable create SD card for RTOS SDK

Part Number: TMDSIDK574
Other Parts Discussed in Thread: AM5749

Hi Everyone,

Currently I am using Ubuntu 16.04 LTS platform.

I have successfully created bootable SD card for Linux RT and Linux SDK. But when I was trying to create bootable SD card for RTOS SDK, it is giving me following error as

root@iveer5:/home/iveer5# sudo ti/AM5749_RTOS/processor_sdk_rtos_am57xx_6_03_00_106/bin/create-sdcard.sh
sudo: unable to resolve host iveer5


################################################################################

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   15558144 sdb
 
Enter Device Number or n to exit: 1
 
sdb was selected

/dev/sdb is an sdx device
 unmounted /dev/sdb
sudo: unable to resolve host iveer5
umount: /dev/sdb: not mounted

################################################################################

        Now erasing partition table

################################################################################

1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00634296 s, 165 MB/s

################################################################################

        Partitioning Boot

################################################################################
mkfs.fat 3.0.28 (2015-05-16)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.vfat: unable to open /dev/sdb: Device or resource busy
 
Mount the partitions
sudo: unable to resolve host iveer5
mount: /dev/sdb is already mounted or /home/iveer5/boot busy
 
Emptying partitions
 
sudo: unable to resolve host iveer5

Syncing....

################################################################################

    Copying files now... will take minutes

################################################################################

Copying boot partition

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: SD card file directory does not exist
ERROR: ()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Syncing...
 
Un-mount the partitions
sudo: unable to resolve host iveer5
umount: boot: not mounted
 
Remove created temp directories
sudo: unable to resolve host iveer5
 
Operation Finished

Please give help me out.

Thanks & Regards,

Divyesh

  • Hi,

    sudo: unable to resolve host iveer5

    This is an ubuntu error and you can see/ask on that forum - https://askubuntu.com/questions/59458/error-message-sudo-unable-to-resolve-host-none

    This might be the issue.

    I have successfully created bootable SD card for Linux RT and Linux SDK.

    you can use the same scripts for partitioning the SD even for RTOS. Your partition should be of FAT32 type and it should contain "app" and "MLO" (rtos compatible).

    This you can do with any other formatting tool also, for example, fdisk.

    ERROR: SD card file directory does not exist

    This mean that, your BOOT partition is not detecting..... what you can do is after formatting is done, dont go for copying through script, just sync and come out of the script and check the partition manually and copy the files there. Once this is done, then you can check if script configuring it correctly.

    Currently I am using Ubuntu 16.04 LTS platform.

    Ubuntu 18.04 is the preferable version.

    Also, you can follow the below links for reference - 

  • Thank you Sir for helping me.

    I have resolved my problem. It is because of format issue.

    I have used "HP USB Disk Storage Format Tool v2.0.6" to format SD card.

    Then i ran the same script and its successfully installed all files and i also have performed following test

    RTOS Test
    Finished running uart_TEST, result passed!                                      
    [Diag Menu]: status                                                             
    Diagnostic Test Status:                                                         
    --------------------------------------------------------------                  
    ID      Name                            Pass    # of times Ran                  
    1       dcan_TEST                       Yes     1                               
    2       eeprom_TEST                   Yes     1                               
    3       emmc_TEST                     Yes     1                               
    4       gmac_TEST                      No      1                               
    5       haptics_TEST                   Yes     1                               
    6       icssEmac_TEST               No      0                               
    7       lcdTouchscreen_TEST     No      0                               
    8       ledIndustrial_TEST          Yes     1                               
    9       led_TEST                        Yes     1                               
    10      mcspi_TEST                   No      1                               
    11      mem_TEST                     No      1                               
    12      mmcsd_TEST                Yes     1                               
    13      pmic_TEST                    Yes     1                               
    14      qspi_TEST                     No      1                               
    15      uart_TEST                     Yes     1                               
                                                                                    
    [Diag Menu]:

    Thanks & Regards,

    Divyesh