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.

Unable to read "uImage" from SD card !

Hi:

I'm trying to boot the EVM in its default configuration. Having only altered  "uImage" on the SD card which I have now restored it to the original one, however my EVM refuses to boot.

my full console logs are as below:

U-Boot 2010.06 (Jun 01 2011 - 15:00:16)

DRAM: 2 GiB
Using default environment

Hit any key to stop autoboot: 0
mmc1 is available
reading u-boot.bin

179256 bytes read
## Starting application at 0x80800000 ...


U-Boot 2010.06 (Jun 01 2011 - 12:30:57)

TI8168-GP rev 1.3

ARM clk: 987MHz
DDR clk: 796MHz

I2C: ready
DRAM: 2 GiB
NAND: HW ECC Hamming Code selected
No NAND device found!!!
0 MiB
*** Warning - bad CRC or NAND, using default environment

:,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
:,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
:.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
:.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
: ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,

Net: <ethaddr> not set. Reading from E-fuse
Detected MACID:0:18:31:e6:e0:a4
Ethernet PHY: GENERIC @ 0x01
DaVinci EMAC
Hit any key to stop autoboot: 0
mmc1 is available
reading boot.scr

270 bytes read
Running bootscript from MMC/SD to set the ENV...
## Executing script at 80900000
reading uImage

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

----------------------------
TI8168_EVM#printenv
bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else echo In case ENV on MMC/SD is required; echo Please put a valid script named boot.scr on the card; echo Refer to the User Guide on how to generate the image; fi; else echo Please set bootargs and bootcmd before booting the kernel; echo If that has already been done please ignore this message; fi
bootdelay=3
baudrate=115200
autoload=no
verify=yes
bootfile=uImage
ramdisk_file=ramdisk.gz
loadaddr=0x81000000
script_addr=0x80900000
loadbootscript=fatload mmc 1 ${script_addr} boot.scr
bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:18:31:e6:e0:a4
ethact=DaVinci EMAC
ver=U-Boot 2010.06 (Jun 01 2011 - 12:30:57)
filesize=10E
bootargs=console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd

Environment size: 932/8188 bytes
TI8168_EVM#

Does anyone know what is going wrong? and tell me how I could work this out !

Thank you very much!

Best regard!

  • Hi lee,

    Refer to the following http://processors.wiki.ti.com/index.php/TI81XX_PSP_UBOOT_User_Guide#U-Boot_Environment_Variables

    you can either set the boot cmd as below

    setenv bootcmd 'mmc init;fatload mmc 1 0x81000000 uImage;bootm 0x81000000'

    or add the following to boot.scr.

    fatload mmc 1  0x81000000 uImage

    bootm 0x81000000

    if it's not solved then provide the contents of boot.scr as well.

     

    Regards,

    RK

  • Hi:
    I've took your suggestion,and reset my bootcmd,but the uImage still can't be read!
    here are my new console logs:

    TI8168_EVM#print
    bootdelay=3
    baudrate=115200
    autoload=no
    verify=yes
    bootfile=uImage
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    loadbootscript=fatload mmc 1 ${script_addr} boot.scr
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    stdin=serial
    stdout=serial
    stderr=serial
    ethaddr=00:18:31:e6:e0:a4
    ethact=DaVinci EMAC
    ver=U-Boot 2010.06 (Jun 01 2011 - 12:30:57)
    filesize=10E
    bootargs=console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd
    bootcmd=mmc init;fatload mmc 1 0x81000000 uImage;bootm 0x81000000

    Environment size: 626/8188 bytes
    TI8168_EVM#boot
    mmc1 is available
    reading uImage

    ** Unable to read "uImage" from mmc 1:1 **
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    TI8168_EVM#

    Well,my boot.scr file in SD card can't be opened, but I could read from
    boot.cmd file as following:

    setenv bootargs 'console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd'
    fatload mmc 1 0x80009000 uImage
    bootm 0x80009000

    Also,I've changed bootargs into 'mmc init;fatload mmc 1 0x0x80009000 uImage;bootm 0x80009000', it didn't work either!

    Could you still help me with this?

    Thank you very much!

    Best regards!

  • Bean,

    Bean Mickeal said:
    mmc init

     

    Bean Mickeal said:
    fatload mmc 1 0x0x80009000 uImage

    The above commands are for old PSP versions (PSP_04.00.00.12 and older release). For new PSP versions use:

    $mmc rescan 0
    $fatload mmc 0 <addr> <file>

    Regards,
    Pavel

  • As Pavel mentioned ,

    change your mmc partition id in the command

    bootcmd=mmc init;fatload mmc 0 0x81000000 uImage;bootm 0x81000000

    Regards,

    RK

  • Hi:

    I've tried the commands you kindly mentioned, but it till cann't read the uImage!

    here are the console messages:

    U-Boot 2010.06 (Jun 01 2011 - 15:00:16)

    DRAM:  2 GiB

    Using default environment

    Hit any key to stop autoboot:  0

    mmc1 is available

    reading u-boot.bin

    179256 bytes read

    ## Starting application at 0x80800000 ...

    U-Boot 2010.06 (Jun 01 2011 - 12:30:57)

    TI8168-GP rev 1.3

    ARM clk: 987MHz

    DDR clk: 796MHz

    I2C:   ready

    DRAM:  2 GiB

    NAND:  HW ECC Hamming Code selected

    256 MiB

    :,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:

    ;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:

    ;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;

    ;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;

    ;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:

    r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,

    ;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii

    r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi

    r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS   @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs

    r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5

    rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi

    ;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi

    ;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;

    r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:

    ;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,

    ;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::

    :,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,

    ;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:

    :.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,

    :.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:

    ,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,

    : ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:

    ,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,

    Net:   Detected MACID:0:18:31:e6:e0:a4

    Ethernet PHY: GENERIC @ 0x01

    DaVinci EMAC

    Hit any key to stop autoboot:  0

    mmc - MMC sub-system

    Usage:

    mmc init [dev] - init MMC sub system

    mmc device [dev] - show or set current device

    ** Unable to use mmc 0:1 for fatload **

    Wrong Image Format for bootm command

    ERROR: can't get kernel image!

    TI8168_EVM#print

    bootdelay=3

    baudrate=115200

    autoload=no

    verify=yes

    bootfile=uImage

    ramdisk_file=ramdisk.gz

    loadaddr=0x81000000

    script_addr=0x80900000

    loadbootscript=fatload mmc 1 ${script_addr} boot.scr

    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}

    ethaddr=00:18:31:e6:e0:a4

    ethact=DaVinci EMAC

    filesize=10E

    bootargs=console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd

    bootcmd=mmc rescan 0;fatload mmc 0  0x81000000 uImage;bootm 0x81000000

    stdin=serial

    stdout=serial

    stderr=serial

    ver=U-Boot 2010.06 (Jun 01 2011 - 12:30:57)

    Could you please help me figure out what's wrong  going here?

    Thang you very much!

    Best regards!

  • Bean,

    Bean Mickeal said:
    loadbootscript=fatload mmc 1 ${script_addr} boot.scr

    Change it to loadbootscript=fatload mmc 0 ${script_addr} boot.scr

    Regards,
    Pavel

  • Hi Pavel:

    I've changed loadbootscript into "fatload mmc 0 ${script_addr} boot.scr",

    But it till cann't read the uImage!

    here are the console lags:

    TI8168_EVM#boot
    mmc - MMC sub-system

    Usage:
    mmc init [dev] - init MMC sub system
    mmc device [dev] - show or set current device
    reading uImage

    ** Unable to read "uImage" from mmc 0:1 **
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    TI8168_EVM#print
    bootdelay=3
    baudrate=115200
    autoload=no
    verify=yes
    bootfile=uImage
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    stdin=serial
    stdout=serial
    stderr=serial
    ethaddr=00:18:31:e6:e0:a4
    ethact=DaVinci EMAC
    ver=U-Boot 2010.06 (Jun 01 2011 - 12:30:57)
    filesize=10E
    bootargs=console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd
    loadbootscript=fatload mmc 0 ${script_addr} boot.scr
    bootcmd=mmc rescan 0;fatload mmc 0  0x81000000 uImage;bootm 0x81000000

    Environment size: 631/8188 bytes

    I felt quite confused!

    do you have any other suggestions?

    Thanks a lot!

    Best regards!

     

  • Bean,

    This is what I have on my side:

    Net:   <ethaddr> not set. Reading from E-fuse
    Detected MACID:40:5f:c2:63:a2:30
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    Hit any key to stop autoboot:  0
    TI8168_EVM#print
    bootcmd=if mmc rescan 0; then if run loadbootscript; then run bootscript; else echo In case ENV on MMC/SD is required; echo Please put a valid script named boot.scr on the card; echo Refer to the User Guide on how to generate the image; fi; else echo Please set bootargs and bootcmd before booting the kernel; echo If that has already been done please ignore this message; fi
    bootdelay=3
    baudrate=115200
    autoload=no
    verify=yes
    bootfile=uImage
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    loadbootscript=fatload mmc 0 ${script_addr} boot.scr
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    ethaddr=40:5f:c2:63:a2:30
    ethact=DaVinci EMAC
    ver=U-Boot 2010.06 (Dec 24 2012 - 20:11:30)

    Environment size: 742/8188 bytes
    TI8168_EVM#boot
    raise: Signal # 8 caught
    reading boot.scr

    354 bytes read
    Running bootscript from MMC/SD to set the ENV...
    ## Executing script at 80900000
    reading ti_logo.bmp

    151674 bytes read
    reading uImage

    2566084 bytes read
    ## Booting kernel from Legacy Image at 80009000 ...


    You can also try the below (after you enter in the u-boot prompt), do the below instead just typing #boot

    TI8168_EVM#mmc rescan 0
    raise: Signal # 8 caught
    TI8168_EVM#fatload mmc 0 0x80009000 uImage
    reading uImage

    2566084 bytes read
    TI8168_EVM#bootm 0x80009000
    ## Booting kernel from Legacy Image at 80009000 ...
       Image Name:   Arago/2.6.37-psp04.04.00.01/dm81

    If the above does not help, the best thing you can do here is to create MMC/SD card with the ti-ezsdk_dm816x-evm_5_05_02_00/bin/mksdboot.sh script. This script will format your MMC/SD card and make all the correct settings (boot arguments, loadbootscript, bootcmd) and will place u-boot and uImage (pre-built) in the card.

    So, run this script on your MMC/SD card, and try to boot with it. On a success, you can build your own u-boot and uImage and replace them in the MMC/SD card.

    ti-ezsdk_dm816x-evm_5_05_02_00/docs/DM816x_EZ_Software_Developers_Guide.pdf

    6.7 How to create an SD card

    Regards,
    Pavel