debug read nand(weekly report)
balrogg at gmail.com
Sun Jul 13 00:27:26 CEST 2008
2008/7/12 Andy Green <andy at openmoko.com>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Somebody in the thread at some point said:
> | Hi
> | i find a way to debug my code. if the nand_read work there only one
> | led on,
> | if there is something wrong the two led will blink.
> | now it is tow led blink.
> | it something wrong here:
> | if ((start_addr & NAND_BLOCK_MASK) || (size & NAND_BLOCK_MASK))
> | return -1; /* invalid alignment */
> | i use
> | "dfu-util -a 0 -R -D ./led_on
> | nand write.e 0x32000000 0 0x1000" download a image to the nand.
> | then when i want read this image from nand,
> | is it the start_addr is 0x32000000?
> What is size and NAND_BLOCK_MASK at this time?
It's the erase block (64 sectors) and is 32kB on gta01 and 128kB on
gta02, so you should try to align the size to 0x20000. (the third
param of write.e)
More information about the openmoko-kernel