Re: [U-Boot] A problem about using the nand command

2012-04-26 Thread Scott Wood
On 04/25/2012 09:07 PM, li guohu wrote:
> 
> Hello, everyone!
> I find a strange problem when I use the u-boot command. I list the command I 
> used in the u-boot command line as follows.
>  
> nand erase
> nand read 0x200 0x0 0x800
> md 0x200
>  
> I should see 2K bytes of "0xFF" because I have erase the whole nand flash 
> device.

What version of U-Boot are you using?

With modern U-Boot you need "nand erase.chip".  Please try with current
U-Boot.

> Actually, I find a "0xFD" in one address. 
> Then I try display some other contend of the nand flash. I can also find one 
> "0xFD" in every 2K address space. It is so strange.

What board/driver?

What do you see if you list the bad blocks?

-Scott

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] A problem about using the nand command

2012-04-25 Thread li guohu

Hello, everyone!
I find a strange problem when I use the u-boot command. I list the command I 
used in the u-boot command line as follows.
 
nand erase
nand read 0x200 0x0 0x800
md 0x200
 
I should see 2K bytes of "0xFF" because I have erase the whole nand flash 
device. Actually, I find a "0xFD" in one address. 
Then I try display some other contend of the nand flash. I can also find one 
"0xFD" in every 2K address space. It is so strange.
By the way, I find that the offsets of the addresses of the one "0xFD" from the 
start of the page are the same. The size of one flash page is 2K bytes.
Are the driver of the nand flash in the u-boot wrong? Or are there some other 
problems?   ___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot