Thread (1 message) 1 message, 1 author, 2015-08-17

[linux-sunxi] ARM: sunxi: Experiences NAND flash

From: Boris Brezillon <hidden>
Date: 2015-08-17 07:48:59
Also in: u-boot

Hi Oliver,

On Wed, 12 Aug 2015 15:31:15 +0200
Olliver Schinagl [off-list ref] wrote:
Hey Yassin,

I'm affraid. The strange thing that seems very related here is that when 
writing a file onto the flash, it fails and succeeds alternating. It 
never fails or succeeds twice in a row! And this on any board and any 
partition.
I don't know if you only pasted half your command sequence, but it
seems you are writing twice on the same memory region without erasing it,
and this is prohibited on NAND devices.

Try with:

# flash_erase /dev/mtd0 && nandwrite -p /dev/mtd0 u-boot-sunxi-with-spl.bin

Best Regards,

Boris

-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help