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.

dm8148 nand flash BOOT HANGS

 Flashing images to TI814X  NAND in SD boot, I   do it  by executing the following command:

1.  Flashing 1st stage to NAND from 2nd stage in SD boot

TI8148_EVM#mmc rescan 0
TI8148_EVM#mw.b 0x81000000 0xFF 0x20000
TI8148_EVM#fatload mmc 0 0x81000000 u-boot.min.nand
TI8148_EVM#nand erase 0x0 0x20000
TI8148_EVM#nand write.i 0x81000000 0x0 0x20000


2   Flashing 2nd stage to NAND from 2nd stage in SD boot

TI8148_EVM#mmc rescan 0
TI8148_EVM#mw.b 0x81000000 0xFF 0x60000
TI8148_EVM#fatload mmc 0 0x81000000 u-boot.bin
TI8148_EVM#nand erase 0x20000 0x60000
TI8148_EVM#nand write.i 0x81000000 0x20000 0x60000

There are no error messages are displayed the 1st /2nd stage of NAND boot has been successfully transferred to NAND.

but  i power down ,and power up the custom board ,  the  flash  BOOT HANGS and Stop at  "Starting application at 0x81000000' !!

our   Boot Mode Order  is : 10011

The message is below :

U-Boot 2010.06 (Oct 19 2015 - 20:12:15)

TI8148-GP rev 3.0

ARM clk: 600MHz
DDR clk: 400MHz

DRAM:  2 GiB
NAND:  HW ECC BCH8 Selected
256 MiB
Using default environment

The 2nd stage U-Boot will now be auto-loaded
Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x40000
 262144 bytes read: OK
## Starting application at 0x81000000 ...


why .

  • Hello,

    What base release you took and what are the custom changes which you have done to your board ?
    What NAND flash chip are you using ?
    What cross compiler are you using ?

    Cheers,
    --Prabhakar Lad
  • hi, Prabhakar Lad:

     Thank you for your reply.

               1. What base release you took and what are the custom changes which you have done to your board ?

                       I  took  the release TI81XX-LINUX-PSP-04.04.00.01,and the custom  have no change. and 16bit mode.

               2. What NAND flash chip are you using ?

            I'm using the MT29F2G16ABAEAWP-AITE.

    3.  What cross compiler are you using ?

            The cross compiler is "CROSS_COMPILE=arm-arago-linux-gnueabi-" .

    And  I   compile  the  MLO  and u-boot.bin built for SD using the same u-boot source , then  I copy the U-Boot image MLO built for 1st stage SD and u-boot.bin built for SD in the FAT partition on the SD card. the SD card  can run normally.

                 

      

  • Hello,

    Just to clarify you flashed proper copy of u-boot.bin to nand,
    Are these the exact steps which you followed ?
    TI8148_EVM#mmc rescan 0
    TI8148_EVM#mw.b 0x81000000 0xFF 0x60000
    TI8148_EVM#fatload mmc 0 0x81000000 u-boot.bin
    TI8148_EVM#nand erase 0x20000 0x60000
    TI8148_EVM#nand write.i 0x81000000 0x20000 0x60000

    If yes then you have flashed u-boot.bin which is created using ti8148_evm_config_sd which is for SD boot mode.
    You need to create 2nd stage bootloader using ti8148_evm_config_nand which is for NAND, create a folder in SD card and store these images separate and then flash them accordingly.

    For example:

    TI8148_EVM#mmc rescan 0
    TI8148_EVM#mw.b 0x81000000 0xFF 0x60000
    TI8148_EVM#fatload mmc 0 0x81000000 nand/u-boot.bin

    Cheers,
    --Prabhakar Lad