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.

Linux/AM3352: NAND boot fails

Part Number: AM3352

Tool/software: Linux

Hello TI,

we are using custom board based on am3352 SOC. and here we are using below NAND device using in it.

[    1.311575] nand: Micron MT29F4G08ABBEAH4

but when i try to boot the board using nand boot, board is not loading u-boot and it won't give the u-boot command prompt.

below is the log when booting from NAND


U-Boot SPL 2017.01-00359-g590c7d7-dirty (Jul 03 2018 - 15:36:45)
Trying to boot from NAND
** First descriptor is NOT a primary desc on 0:1 **
** No partition table - mmc 0 **
Using default environment


U-Boot SPL 2017.01-00359-g590c7d7-dirty (Jul 03 2018 - 15:36:45)
Trying to boot from NAND
** First descriptor is NOT a primary desc on 0:1 **
** No partition table - mmc 0 **
Using default environment

i am using am335x_evm_defconfig to build the u-boot.img and MLO

I am flashing the NAND from SD card using below command.

mmc rescan

nandecc hw bch16 (if i won't do then i get the nand write errors )

nand erase.chip

load mmc 0 0x82000000 MLO

nand write 0x82000000 0x00000 0x20000

load mmc 0 0x82000000 u-boot.img

nand write 0x82000000 0xC0000 0x40000

Please help me to resolve the issues

  • Hello Govindaraji,

    The u-boot.img size is 645 kB but you are writing only first 256 kB of it to the NAND.

    Please, use this nand write 0x82000000 0xC0000 0x100000 or just use the label nand write 0x82000000 NAND.u-boot while flashing your board.

    Best regards,
    Kemal

  • Hi kemal,

    I changed the NAND configuration in am335x_evm.h as per the am43xx_evm.h NAND configuration, Since am43xx has same MT29F4G08AB configuration. and nand booting is working fine and booting the linux from NAND.

    Yes correct i have to write to 1 MB size instead of 256 KB. and for flashing NAND, i tried with linux nandwirte instead of u-boot nand commands

    Thank you for your support