Hi All,
I am using am335x and able to boot using mmc, but when flashing was done in u-boot space from usb using nand write command, I came across timeout error all the time as mentioned below.
Nand Flash: 512MB
I'm booting from mmc and going to u-boot space. Below are the logs.
Enabling NAND pin mux Successful
s_init Success
before gpmc_init
after gpmc_init
DRA 618 MPU freq set to 720Mhz
DRA 618 Core freq set to 720Mhz
reading u-boot.img
reading u-boot.img
U-Boot 2013.10-00189-g78d8ebd-dirty (Oct 12 2015 - 12:12:29)
I2C: ready
DRAM: 256 MiB
8-12-2014 before gpmc_init8-12-2014 after gpmc_initNAND: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment
Hit any key to stop autoboot: 0
U-Boot#
U-Boot#
U-Boot#
U-Boot# nand erase.chip
NAND erase.chip: device 0 whole chip
Erasing at 0x1ffe0000 -- 100% complete.
OK
U-Boot# usb reset
(Re)start USB...
USB0: scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
U-Boot# fatls usb 0
312124 u-boot.img
svs1/
182972416 ngt_ubifs.img
lost.dir/
220200960 system_image.bin
3 file(s), 0 dir(s)
U-Boot# fatload usb 0 0x81000000 system_image.bin
reading system_image.bin
220200960 bytes read in 134815 ms (1.6 MiB/s)
U-Boot# nand write 0x81000000 0x0 0xD200000
NAND write: device 0 offset 0x0, size 0xd200000
Timeout!NAND write to offset 0 failed -5
0 bytes written: ERROR
U-Boot#