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.

OMAP L138 LCDK - SD Card creation with mksdboot.sh

Hi everybody,

I've been trying to create a custom SD card for the LCDK for a couple of weeks already. I decided to start step by step and create one using the script given in the DVSDK "mksdboot.sh".

Some details:

  • I'm using the oficial LCDK
  • The  4GB SD "given card"  included with the LCDK works perfect
  • I'm using a 8 GB card from SanDisk to create a "custom card"
As other posts expose, the main problem is that it gets stucked "booting the kernel".
This is what i get:
Environment size: 496/65532 bytes
U-Boot > 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 : 456000000 Hz
DDR Clock : 150000000 Hz
Net: Ethernet PHY: GENERIC @ 0x07
DaVinci-EMAC
Hit any key to stop autoboot: 0
reading boot.scr
248 bytes read
## Executing script at c0600000
reading uImage
2315152 bytes read
## Booting kernel from Legacy Image at c0700000 ...
Image Name: Arago/2.6.37-psp03.21.00.04.sdk/
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2315088 Bytes = 2.2 MiB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

I think it should be the uboot args so i checked the ones in my new "custom card"

baudrate=115200
bootargs=console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
bootcmd=if mmc rescan 0; then if fatload mmc 0 0xc0600000 boot.scr; then source 0xc0600000; else fatload mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf probe 0; sf read 0xci
bootdelay=3
bootfile="uImage"
ethact=DaVinci-EMAC
ethaddr=00:00:a0:00:fb:c7
stderr=serial
stdin=serial
stdout=serial
ver=U-Boot 2010.12 (May 07 2012 - 16:09:45)

And compared them to the ones in the "given card":

bootargs=console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
bootcmd=if mmc rescan 0; then if fatload mmc 0 0xc0600000 boot.scr; then source 0xc0600000; else fatload mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf probe 0; sf read 0xci
bootdelay=3
bootfile="uImage"
ethact=DaVinci-EMAC
ethaddr=00:00:a0:00:fb:c7
stderr=serial
stdin=serial
stdout=serial
ver=U-Boot 2010.12 (May 07 2012 - 16:09:45)

Quite the same arguments... so i'm out of ideas. Anybody has any suggestion?

Thanks in advance.

  • Without visibility to the versions of the components it is hard to tell what's wrong. For example I noticed that you are not using the prebuilt uImage provided for the LCDK because the kernel version is from an older kernel version: Image Name: Arago/2.6.37-psp03.21.00.04.sdk/. If there are modules used which the kernel is trying to load and the file system does not include the kernel modules for this version (2.6.37), it may hang trying to find that. The kernel version for LCDK is 3.1.10 and the file system on the SD card only contains the module and kernel headers for that version.

  • Thanks for your answer. Actually i was quite annoyed for that reason as well but the thing is that actually I am using the prebuilt uImage provided for the LCDK.

    I finally was able to create a bootable SD card using the script provided at the ti-sdk-omapl138-lcdk-01.00.00/bin named as "create-sdcard.sh". Still, I'm going to take a look at the kernel version and I'll come back with feedback.

    Víctor.

  • Dear Loc,

    Solved the problem and now working with version LCDK is 3.1.10.


    Thanks for the help.