2008-05-15 22:12:06 Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
w w (CHINA)
Message: 55876
hi, all
I download uClinux-dist-2008R1-RC8, compile it and run. My nand flash is hynix-hy27uf081g2m(128M large page nand flash). I used yaffs2 on the nand flash.
root> mount -t yaffs2 /dev/mtdblock3 /home
When I copy, delete or write file in the nand flash, the error is like this:
**>> Block 148 needs retiring
**>> yaffs write required 2 attempts
**>> Block 149 needs retiring
**>> yaffs write required 2 attempts
**>> Block 148 retired
**>> Block 149 retired
So the block is bad, and it can't be used any more.
I don't modify any source file about nand flash or yaffs2 file system.
Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
thanks.
QuoteReplyEditDelete
2008-05-16 03:31:05 Re: Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
Andrea Federico Grisotto (ITALY)
Message: 55882
uClinux 2008R1-RC8 support yaffs2 and so support large nand block.
Before use the nand memory remember to clean the memory:
1) eraseall /dev/mtd3
2) mount -t yaffs2 /dev/mtdblock3 /home
it's not strange to have bad block when you use nand flash memory don't worry about that.
Yaffs2 mark bad block and doesn't use it.
QuoteReplyEditDelete
2008-05-19 06:57:21 Re: Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
w w (CHINA)
Message: 56007
thank you, but I run the cmd eraseall /dev/mtd3, before the cmd mount -t yaffs2 /dev/mtdblock3 /home but when I copy files on /home the err like this occured:
**>> Block 148 needs retiring
**>> yaffs write required 2 attempts
**>> Block 149 needs retiring
**>> yaffs write required 2 attempts
**>> Block 148 retired
**>> Block 149 retired
what's wrong ?
thank you.
QuoteReplyEditDelete
2008-05-19 07:39:31 Re: Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
Andrea Federico Grisotto (ITALY)
Message: 56008
can you tell me exactly step by step which command you use?
QuoteReplyEditDelete
2008-05-20 03:34:17 Re: Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
w w (CHINA)
Message: 56024
thank you sir, this is my cmd:
1)
root:/> dmesg | more
Linux version 2.6.22.18-ADI-2008R1-svn (root@ippbx) (gcc version 4.1.2 (ADI svn)
) #1 Fri May 16 09:31:49 CST 2008
Hardware Trace Active and Enabled
...
...
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 0 at 0x00000000
Bad eraseblock 3 at 0x00060000
...
Bad eraseblock 148 at 0x01280000
Bad eraseblock 333 at 0x029a0000
Bad eraseblock 768 at 0x06000000
Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x08000000 : "linux fs"
...
...
2)
root:/> uname -a
Linux blackfin 2.6.22.18-ADI-2008R1-svn #1 Fri May 16 09:31:49 CST 2008 blackfin
unknown
3)
root:/> eraseall /dev/mtd3
4)
root:/> mount -t yaffs2 /dev/mtdblock3 /home
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
block 1 is bad
block 4 is bad
...
5)
root:/> cd /home
6)
root:/home> wget http://192.168.139.105:8010/yansl/httpd.tar
Connecting to 192.168.139.105:8010 [192.168.139.105:8010]
httpd.tar 9% |** | 660 KB 00:00:10 ETA*
*>> Block 53 needs retiring
**>> yaffs write required 2 attempts
**>> Block 53 retired
httpd.tar 17% |**** | 1282 KB 00:00:09 ETA*
*>> Block 62 needs retiring
**>> yaffs write required 2 attempts
**>> Block 62 retired
**>> Block 67 needs retiring
**>> yaffs write required 2 attempts
**>> Block 68 needs retiring
**>> yaffs write required 2 attempts
**>> Block 67 retired
**>> Block 68 retired
httpd.tar 25% |******* | 1860 KB 00:00:08 ETA
root:/home>
I exit with (Ctrl+C), because it can made the nand flash all bad.
QuoteReplyEditDelete
2008-05-20 03:50:20 Re: Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
Andrea Federico Grisotto (ITALY)
Message: 56026
HI,
your commands are correct but I have a doubt , I'm not a yaffs expert but from your log I see
your block 0 is a bad block: "Bad eraseblock 0 at 0x00000000"
I don't know if the block 0 have the same mean of sector 0 in a harddisk.
This can be the reason of your problem, but I repeat I am not a yaffs expert.
can you try with another board?
QuoteReplyEditDelete
2008-05-20 04:02:47 Re: Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
Andrea Federico Grisotto (ITALY)
Message: 56028
Hi think your nand memory doesn't have large page block, try to mount using yaffs not yaffs2.
or let linux to choose the correct filesystem (yaffs or yaffs2):
1)make linux_menuconfig
File systems --->
Miscellaneous filesystems --->
[* ] Autoselect yaffs2 format
QuoteReplyEditDelete
2008-05-20 04:03:58 Re: Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
Michael Hennerich (GERMANY)
Message: 56029
Yaffs2 supports large as well as small page size NAND flash.
What is your target hardware?
How do you connect the NAND flash?
Are you sure the Ready/Busy signal is hooked up ?
-Michael
QuoteReplyEditDelete
2008-06-02 07:24:10 Re: Can the uClinux-dist-2008R1-RC8 support large page nand flash ?
w w (CHINA)
Message: 56561
thank you Michael !
my board use bf533 and st nand512w3a. when I use uClinux-dist-2006R2-RC2, there is no errors, but when I use uClinux-dist-2008R1-RC8, there are errors.
I think there is no errors in my hardware design, because there is no errors under uClinux-dist-2006R2-RC2, so I think the errors occured because there are errors/bugs in uClinux-dist-2008R1-RC8. whether the yaffs2 and nand flash was tested before the uClinux-dist-2008R1-RC8 releaseed ?
thank you !