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.

Not able to boot SD card on hyperterminal OMAPL138LCDK

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

i have OMAPl138LCDK kit i flashed the NAND by Serial port method given on processor.wiki 

i peformed below method

  • Serial Port Method

First determine what serial port is assigned to the on-board UART->USB IC as show in this section

Next set the boot pins to UART2 boot mode as shown in this section

The following actions can then be performed, where "COMx" refers to the COM port found in the previous step (i.e. COM8). For C6748 boards, replace "OMAPL138_LCDK" with "C6748_LCDK".

  • Erase the entire NAND (optional):

sfh_OMAP-L138.exe -targettype OMAPL138_LCDK -flashtype NAND -p COMx -erase

  • Flash bootable AIS image (ais_image.bin) to block 1 of the NAND:

sfh_OMAP-L138.exe -targettype OMAPL138_LCDK -flashtype NAND -p COMx -flash_noubl ais_image.bin


the NAND get flashed  after that i am facing trouble that the linux kernel give on the SD card does not boot we did't knew that we will come with this issue now we want to interface a USB Camera and some image processing work using opencv library on linux but our linux kernel is not booting pls help us regarding the issue

  • plz give some reply what happend it is possible not possible because this is a proble and we are not getting the solutions

  • Hi,

    sfh_OMAP-L138.exe -targettype OMAPL138_LCDK -flashtype NAND -p COMx -erase

    • Flash bootable AIS image (ais_image.bin) to block 1 of the NAND:

    sfh_OMAP-L138.exe -targettype OMAPL138_LCDK -flashtype NAND -p COMx -flash_noubl ais_image.bin

    With this SD boot shouldn’t get affected, For SD boot are the switch settings rite ? what are switch settings ? are you able to atleast getting the uboot or you are not able to get kernel ? what error messages you get ?

    Thanks,

    --Prabhakar Lad

    http://in.linkedin.com/in/prabhakarlad

  • sir 

    when we connect it with the hyperterminal after selecting the com port and boudrate it shows connected but it does't boot after resetting the kit it does not shows any message the switch settins are 1off 2,3,4 on and  others are off

    what happened i can't understand what should be done get it back?

  • Hi,

    Please refer to this link http://processors.wiki.ti.com/index.php/L138/C6748_Development_Kit_%28LCDK%29

    Switches 1-4 on SW1 are used to set the BOOT as follows:

    Switch #UART2NAND 16MMC/SD0
    1 OFF OFF OFF
    2 ON ON OFF
    3 OFF ON OFF
    4 ON ON ON

    Regards,

    --Prabhakar Lad

  • sir,

    yes sir i configured the sw1 accordingly as above for NAND 16 .Earlier it was booting the kernel now it is not i have once inserted the card in ubuntu  but i did't did anything i just seen the files after re flashing NAND these problem came.

     i am not getting way .what should be done ?? now

  • yes sir i configured the sw1 accordingly as above for NAND 16 .Earlier it was booting the kernel now it is not i have once inserted the card in ubuntu  but i did't did anything i just seen the files after re flashing NAND these problem came.

    Ahhh you are confusing now you mentioned earlier you want to get it booted from SD boot mode then why are you setting the switch to NAND boot mode ?


    Regards,

    --Prabhakar Lad

  • Sir earlier it was booting the kernel on teminal when sw1 switch is on NAND mode means 1off 2,3,4 on sir what problem occured i am not getting...

  • Also it is not booting on SD boot mode when setting pins to SD boot mode??

  • Hi,

    By any chance did the SD card get corrupted? is it getting detected on other machine ? What I can suggest is use a different SD card and reflash the uboot, kernel & filesystem on it using this link http://processors.wiki.ti.com/index.php/OMAP-L138_Preparing_SD_Card_for_Boot

    Regards,

    --Prabhakar Lad

  • Sir,

    i hv formatted the sd card of 4GB now i want to port linux in my SD card for OMAPL138 LCDK but by the link given above i am not getting the proper way to do that.

    sudo mksdboot.sh --device /dev/sdx --sdk <base directory of SDK install>     in this command i am not getting the mksdboot.sh file in bin folder of sdk  and what is thebase directory here???

     

    Linux

    • Insert the SD/MMC card into a Linux host.
    • Type "dmesg". The SD/MMC card name should show up near the end, usually something like "SDC".

    The file should now be successfully flashed to the SD/MMC card. Change the boot switches to SDMMC0 boot mode and power cycle to verify.

    intead of SDC it is comming sdb

    again

    • Type "sudo dd if=ais_file.bin of=/dev/sdx", where ais_file.bin is the file to flash and "sdx" is the name determined in the previous step.

    this command is not executing saying ais_file.bin fileor directory not found, what is this file from where we will get this file

    i have  downloaded this Linux SDK software is this the right software

    ti-sdk-omapl138-lcdk-01.00.00.bz2 software

    also how to make the 3 partition is not given and what name to be given it is also not given

    i have generated the output.ais file from AISgen software of u boot

    i want to say that i am not able to port the the linux  on SD card plz provide me the proper steps  needed for porting the linux on sd card..

    Please give the reply ASAP its very very urgent for me.......

  • KIndly look in to this matter it need to be solved?

  • Hi Vivek,

    Please refer the below TI wiki and It is especially for OMAPL138LCDK,

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

    Are you facing any problem while booting from NAND?

    You can boot OMAPL138 LCDk board from NAND and taking filesystem from SD card/NAND/USB/Network,

    I think that the NAND flash is better solution and quick one too.

  • Hi Vivek,

    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

    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.

  • i have executed the script that u have provided on Ubuntu it executed successfully and after connecting the switch to sd/mmc mode and connected the kit with hyperterminal it gives error

    NAND: 512 MiB
    MMC: davinci: 0
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    *** Warning - bad CRC, using default environment

    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
    reading boot.scr

    ** Unable to read "boot.scr" from mmc 0:1 **
    reading uImage

    ** Unable to read "uImage" from mmc 0:1 **
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    U-Boot > <INTERRUPT>
    U-Boot >

    how to resolve it

  • Hi Vivek,

    *) You have to copy the kernel image (use pre-built) and boot script into 1st partition of SD card

    *) You need to have a fileystem on 2nd partition of SD card.

    Please follow the procedures.

    1) Copy the pre-built kernel image into 1st partition of the SD card

    Ex:
    titus@titus-desktop:~/workdir/ti-e2e/OMAPL138_LCDK/ti-sdk-omapl138-lcdk-01.00.00/board-support/prebuilt-images# cp -rf uImage /media/boot/

    2) Copy the "boot.scr" file into 1st partition of the SD card

    'V@�S"�HMsExecute uImage.bin�if fatload mmc 0 C0700000 uImage
    then
     echo ***** Kernel: /dev/mmcblk0p1/uImage *****
    fi
    echo ***** RootFS: /dev/mmcblk0p2 *****
    
    
    
    
    setenv bootargs 'console=ttyS2,115200n8 mem=128M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait'
    
    
    
    bootm 0xC0700000
    

    Note:

    Rename "5531.boot_scr.txt" to "boot.scr"

    Ex:

    titus@titus-desktop:~/workdir/ti-e2e/OMAPL138_LCDK/ti-sdk-omapl138-lcdk-01.00.00/board-support/prebuilt-images# cp -rf /home/titus/Downloads/boot.scr /media/boot/


    3) Untar the filesystem contents into 2nd partition of the SD card from the TI release OMAPL138 LCDk linux SDK

    Ex:
    i) cd /media/rootfs

    ii) root@titus:/media/rootfs# tar -zxvf /root/workdir/ti-e2e/OMAPL138_LCDK/ti-sdk-omapl138-lcdk-01.00.00/filesystem/omapl138-lcdk-fs.tar.gz  .

    Note:
    1) It will take few menites to complete

    2) Do not forget to put "."  in tart command to mention current dir.


    iii) cd /

    iv) sync

    4) Unmount the SD card (safe remove from the system)

    5) Connect the SD card into board and set boot witch to SD boot mode and switch ON.

    Please let me know the results.

    I hope it helps.

  • Thank you it worked perfectly i did't faced any problem now with the SD/MMC boot