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.

  • Resolved

Linux/TMDSLCDK138: Unable to read "uImage" from mmc 0:1

Part Number: TMDSLCDK138

Tool/software: Linux

Hi,

I downloded " ti-processor-sdk-linux-omapl138-lcdk-04.01.00.06-Linux-x86-Install.bin "  from " " then i gave permission and executed it.

Then i created SD card with the help of this " "

There are 2 partition in SD card 1.boot , 2. rootfs . In the boot partition contain u-boot.bin.
i put SD card in the Development kit. It shows

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


How can i get uImage and kernal image?
How can i bootup the Linux?

Regards,

Allwyn

  • Hi,

    Did yo use the prebuilt images or did you use your custom images?

    If you have a look at ~/ti-processor-sdk-linux-omapl138-lcdk-04.01.00.06/board-support/prebuilt-images/ you will see that the kernel image is not an uImage file it is a zImage (zImage-omapl138-lcdk.bin). You can also see this in the u-boot environment parameters (execute printenv in u-boot prompt):

     => printenv

    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}

    baudrate=115200

    boot_fdt=yes

    boot_fit=0

    bootcmd=run envboot; run mmcboot;

    bootdelay=3

    bootdir=/boot

    bootenvfile=uEnv.txt

    bootfile=zImage

    If you use uImage as kernel image, this is what is causing the error.

    Best Regards,
    Yordan

     


     Please make sure you read the forum guidelines first.

  • In reply to Yordan Kovachev:

    Hi Yordan,

    Thanks for your response.

    How can I resolve the problem.?

    After SD card creation . when power on , the following occurs,

    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

    ** 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 >


    U-Boot > printenv
    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 0xc0700000 0x80000 0x220000; bootm 0xc0700000; fi
    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)

    Environment size: 496/65532 bytes
    U-Boot >

    How can I change the uImage to zImage ?

    How can I bootup the board?

    Thanks and Regards,
    Allwyn
  • In reply to allwyn davis:

    Did yo use the prebuilt images or did you use your custom images to create the sd ?
    Best Regards,
    Yordan

     


     Please make sure you read the forum guidelines first.

  • In reply to Yordan Kovachev:

    Hi,
    I am using prebuilt image.

    Regards,
    Allwyn
  • In reply to Yordan Kovachev:

    Hi,
    I downloaded "ti-processor-sdk-linux-omapl138-lcdk-04.02.00.09-Linux-x86-Install.bin" from " software-dl.ti.com/.../index_FDS.html"
    then I did following steps,

    1. " chmod -R 777 ti-processor-sdk-linux-omapl138-lcdk-04.02.00.09-Linux-x86-Install.bin "
    2. " ./ti-processor-sdk-linux-omapl138-lcdk-04.02.00.09-Linux-x86-Install.bin "
    3. " ./setup.sh "
    4. " make "

    then I did SD card prepration using this guidlines "processors.wiki.ti.com/.../Processor_SDK_Linux_create_SD_card_script"

    is that steps correct?
    should i have to do anything more?
    where can I get uImage from prebuilt image?

    Regards
    Allwyn
  • In reply to Yordan Kovachev:

    Hi,

    Could you please give me the commands to use prebuilt image?

    and now i am using DIP switch configuration [1:8] =[ OFF ON ON ON OFF OFF OFF OFF]

    Is that correct?

    Regards
    Allwyn
  • In reply to allwyn davis:

    Ok, here is what you should do. Change dip switch configuration to:
    [1:8] = OFF OFF OFF ON OFF OFF OFF OFF ===> this will boot your board from SD card.
    With your original dip switch configuration you boot form the onboard memory.

    Then you should do the following to create the correct sd card:
    chmod +x ti-processor-sdk-linux-omapl138-lcdk-04.02.00.09-Linux-x86-Install.bin
    ./ti-processor-sdk-linux-omapl138-lcdk-04.02.00.09-Linux-x86-Install.bin ==> install in your $HOME directory.
    cd ~/ti-processor-sdk-linux-omapl138-lcdk-04.02.00.09
    ~/ti-processor-sdk-linux-omapl138-lcdk-04.02.00.09$ sudo ./bin/create-sdcard.sh
    Follow the script to create your sd card.
    Then copy the ais signed mlo, using the bellow commands:
    cd ~/ti-processor-sdk-linux-omapl138-lcdk-04.02.00.09/board-support/prebuilt-images
    sudo dd if=u-boot-omapl138-lcdk.ais of=/dev/sd<N> seek=117 bs=512 conv=fsync

    Now your sdcard is ready. Insert it in the board & power it on.

    Best Regards,
    Yordan

     


     Please make sure you read the forum guidelines first.

  • In reply to Yordan Kovachev:

    Hi,

    Thanks for your reply. The problem was with dip switch configuration. now it is working.

    Regards
    Allwyn
  • In reply to allwyn davis:

    Thanks for updating the thread.

    Best Regards,
    Yordan

     


     Please make sure you read the forum guidelines first.

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.