As per u-Boot wiki for NAND Boot from SD Card , we tried to write MLO and u-boot.img is writing fine but zimage got some erors: Logs for nand write
U-Boot# mmc rescan
U-Boot# fatload mmc 0 0x82000000 MLO
reading MLO
79596 bytes read in 15 ms (5.1 MiB/s)
U-Boot# nand erase 0x0 0x20000
NAND erase: device 0 offset 0x0, size 0x20000
Erasing at 0x0 -- 100% complete.
OK
U-Boot# nand write 0x82000000 0x0 0x20000
NAND write: device 0 offset 0x0, size 0x20000
131072 bytes written: OK
U-Boot# fatls mmc 0
79596 mlo
572284 u-boot.img
4302208 zimage
3 file(s), 0 dir(s)
U-Boot# mmc rescan
U-Boot# fatload mmc 0 0x82000000 zimage
reading zimage
4302208 bytes read in 578 ms (7.0 mb)
U-Boot# nand erase 0x00280000 0x00
Erasing at 0x680000 -- 100% complete.
OK
U-Boot# nand write 0x82000000 0x00280000 0x41FFFF
NAND write: device 0 offset 0x280000, size 0x41ffff
WARNING in ../drivers/mtd/nand/nand_base.c line 1072
WARNING in ../drivers/mtd/nand/nand_base.c line 1072
WARNING in ../drivers/mtd/nand/nand_base.c line 1072
BUG: failure at ../drivers/mtd/nand/nand_base.c:242/nand_select_chip()!
BUG!
resetting ...
// from here onwards why it is restarting --- not able to understand
U-Boot SPL 2015.04-rc1-dirty (May 13 2015 - 21:44:29)
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus 0 are properly configured
The Expected Linux image was not found. Please check your NAND configuration.
Trying to start u-boot now...
U-Boot SPL 2015.04-rc1-dirty (May 13 2015 - 21:44:29)
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus 0 are properly configured
The Expected Linux image was not found. Please check your NAND configuration.
Trying to start u-boot now...we are trying to load zimage so that we got this error -- kindly help in this -
//-------------------------------------
Please me correct we are missed any thing.
we are in confusion in nand-partition -- Linux core u-boot guide is explaning one type:
But we are not having : This config in u-boot in the ti-git repo.
AM335x GP EVM am335x_evm_nandboot_config
// and those NAND fine are generating --- the files
U-Boot # mmc rescan U-Boot # nand erase.chip U-Boot # load mmc 0 0x81000000 MLO U-Boot # nand write 0x81000000 NAND.SPL U-Boot # nand write 0x81000000 NAND.SPL.backup1 U-Boot # nand write 0x81000000 NAND.SPL.backup2 U-Boot # nand write 0x81000000 NAND.SPL.backup3 U-Boot # load mmc 0 0x81000000 u-boot.img U-Boot # nand write 0x81000000 NAND.u-boot U-Boot # load mmc 0 0x81000000 zImage U-Boot # nand write 0x81000000 NAND.kernel U-Boot # run findfdt U-Boot # load mmc 0 0x81000000 $fdtfile U-Boot # nand write 0x81000000 NAND.u-boot-spl-os U-Boot # saveenv
//=======
But we are following AM335x_U-Boot_User's_Guide#NAND_2 --wiki
for NAND write
Please kindly help me in this and suggest us if we are missing anything.
regards,
Viswanath K.