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.

Booting of SD card in OMAP L138 LCDK

Other Parts Discussed in Thread: OMAPL138

Hi Titu 

Wn i purchased the kit omap l138 lcdk my sd card was booting up after connecting to the computer with the help of tera term, after i have erased my nand flash then my sd card stopped booting up then i thought that i have to reflash u boot on nand flash of lcdk,then i   flashed u boot to the NAND flash, after that also my SD card is not booting up , i think there is problem in the SD card only, so i formatted the SD card and after that i tried to reinstall the linux kernel and u boot and file system on the SD card but i am unable to do from the steps which are given in the processor. wiki 

http://processors.wiki.ti.com/index.php/OMAP-L138_Preparing_SD_Card_for_Boot

and i have downloaded the SDK software from the given link below

http://software-dl.ti.com/dsps/dsps_public_sw/c6000/web/omapl138_lcdk_sdk/latest/index_FDS.html

and the file is ti-sdk-omapl138-lcdk-01.00.00.bz2

please give me the required steps to port linux and u boot and filessystem on the SD card  

Please reply ASAP i am stuck to this 

  • Hi Marut,

    Can you please refer the following Ti wiki for especially for OMAPL138 LCDK board,

    http://processors.wiki.ti.com/index.php/How_to_boot_OMAP-L138_LCDK_from_SD_card

    Let me know If you face any issue,

  • i forget to write this link also http://processors.wiki.ti.com/index.php/How_to_boot_OMAP-L138_LCDK_from_SD_card

    i had tried from this link also but i am not able to do

  • Hi Marut,

    Please follow the below procedure to create the bootable  SD card for OMAPL138 LCDK board.

    PFA of SD card formatting scripts and pre-built binaries and required utilities.

    1667.SD_BOOT_OMAPL138LCDK.tar.gz

    6888.SD_Creator_log.txt
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# ./makesd.sh /dev/sdb
    1024+0 records in
    1024+0 records out
    1048576 bytes (1.0 MB) copied, 0.482113 s, 2.2 MB/s
    Disk /dev/sdb doesn't contain a valid partition table
    DISK SIZE - 3904897024 bytes
    Checking that no-one is using this disk right now ...
    OK
    
    Disk /dev/sdb: 474 cylinders, 255 heads, 63 sectors/track
    
    sfdisk: ERROR: sector 0 does not have an msdos signature
     /dev/sdb: unrecognized partition table type
    Old situation:
    No partitions found
    New situation:
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
    
       Device Boot Start     End   #cyls    #blocks   Id  System
    /dev/sdb1   *      2       9       8      64260    c  W95 FAT32 (LBA)
    /dev/sdb2         10     124     115     923737+  83  Linux
    /dev/sdb3        126     473     348    2795310   83  Linux
    /dev/sdb4          0       -       0          0    0  Empty
    Successfully wrote the new partition table
    
    Re-reading the partition table ...
    
    If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
    to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
    (See fdisk(8).)
    mkfs.vfat 3.0.12 (29 Oct 2011)
    umount: /dev/sdb1: not mounted
    mke2fs 1.42 (29-Nov-2011)
    Filesystem label=rootfs
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    57856 inodes, 230934 blocks
    11546 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=239075328
    8 block groups
    32768 blocks per group, 32768 fragments per group
    7232 inodes per group
    Superblock backups stored on blocks: 
    	32768, 98304, 163840, 229376
    
    Allocating group tables: done                            
    Writing inode tables: done                            
    Creating journal (4096 blocks): done
    Writing superblocks and filesystem accounting information: done
    
    umount: /dev/sdb2: not mounted
    mke2fs 1.42 (29-Nov-2011)
    Filesystem label=START_HERE
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    174944 inodes, 698827 blocks
    34941 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=717225984
    22 block groups
    32768 blocks per group, 32768 fragments per group
    7952 inodes per group
    Superblock backups stored on blocks: 
    	32768, 98304, 163840, 229376, 294912
    
    Allocating group tables: done                            
    Writing inode tables: done                            
    Creating journal (16384 blocks): done
    Writing superblocks and filesystem accounting information: done 
    
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# 
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# ./uflash -d /dev/sdb -b u-boot_mmc.ais -p OMAPL138 -vv
    OMAPL138
    U-Boot Size 348611
    First partition starts at 32130(16450560)
    U-Boot Magic Number     : a1aced66
    U-Boot Entry Point      : c1080000
    U-Boot Number of Blocks : 000002a9
    U-Boot Starting Block   : 00000075
    Load U-Boot Address     : c1080000
    Writing U-Boot Signature
    Writing U-Boot
    Done...
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# sync
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# 
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# 
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# 
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# ls
    makesd.sh  mk3dPartSDCard.sh  u-boot_mmc.ais  uflash
    root@titus-desktop:/home/titus/workdir/ti-e2e/SD_BOOT_OMAPL138_SDI_EVM/SD_BOOT_OMAPL138LCDK# cd ..
    
    

    SD Card booting for OMAPL138_LCDK board
    ========================================

    1) Connect the SD card to the HOST ubuntu linux machine.

    2) Create SD card into 3 partitions with leaving atleast ~500K space before the first cylinder.

    ./makesd.sh /dev/sdb

    Note:
    (device name might change if MMC card is used directly)
    Ex:
    ./makesd.sh /dev/mmcblk0

    3) Flash AIS signed u-boot binary to SD/MMC card in first cyclinder (see point no 2)

    ./uflash -d /dev/sdb -b u-boot_mmc.ais -p OMAPL138 -vv

    4) Safe remove the SD card from the host linux machine.

    5) Connect SD card to the OMAPL138 LCDK board and set boot switch setting to SD/MMC boot

    Log:
    NAND:  512 MiB
    MMC:   davinci: 0
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x07
    DaVinci-EMAC
    Hit any key to stop autoboot:  0
    U-Boot >

    I hope it helps,

    Please let me know the results.

    If still you are facing issue then reply with error logs while following the above procedure.

  • Hi Marut,

    Did you get fixed?

    Are you facing any problem?

    Do you have any questions on this?

  • Sorry for the late reply I was getting problem in booting the kernel but i have seen your post in http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/327050.aspx  and my problem was solved. Thanks for your support

  • i too trying to boot omap l138 from sd card.. i formated my sd card as per the above procedure and flas ais file into it.. i dint put uImage and filesystem..

    then i inserted into my lcdk.. 

    its came like this..

    NAND: NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD NAND 1GiB 3,3V 8-)
    NAND bus width 16 instead 8 bit
    No NAND device found!!!
    0 MiB
    MMC: davinci: 0

  • Hi,

    Did you modified the u-boot source code or using pre-built?

  • i dint change u boot source code.. also i dint put uImage in boot partition.. i just flashed .ais using uflash.. alone

  • Hi,

    Your logs seems to be the u-boot image is booting from NAND flash and not from SD card.

    Please check your DIP boot switch settings.

                                       1      2       3     4

    SD card boot  =>  OFF OFF OFF ON = 0001

    NAND boot  =>  OFF ON ON ON = 0111

    If you used boot settings correctly and still the problem persists, try to flash the SD card again and change the SD card.

    i dint change u boot source code.. also i dint put uImage in boot partition.. i just flashed .ais using uflash.. alone

    Kernel image (uImage) and filesystem copying is not required, these steps are sufficient.

  • my booting switch was correct.. i changed another sd card.. but nothing happens.. simply blank.. when i use again previous sd card its come as nand device not found..

  • is there anything to change in u boot source code ??

  • Hi,

         Uboot is ok after that how can i copy fs and boot image  ? any procedure pls. and Uboot set arg.  my lcdk sd card new one.