Hi Amol S:

Have you solved the problem you post?
I encounter a similar one, and I need your advice, Thanks very much!

I use:
board:       DM6446 DVEVM
NAND device: Manufacturer ID: 0xec, Chip ID: 0x36 (K9F1208R0B)
MV Linux:    Linux version 2.6.10_mvl401-davinci_evm  gcc version 3.4.3

Best regards!
YuHuanhuan



Error while mounting JFFS2 from NAND as root file system 
Amol S amol.shrotri at einfochips.com 
Tue Nov 20 02:12:10 CST 2007 
Previous message: About "[Spca50x-devs] How to increase the packet size 
(USB)" 
Next message: digital video output DC5 DVEVM 
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 

Hello All,

For the first time I am working on NAND flash file system.

I have Davinci base board with NAND flash with 2K page size and 128K erase
block size.

I am trying to boot the board with root file system on NAND.

I am setting MTD partitions as follows.

Creating 5 MTD partitions on "nand_davinci.0":

0x00000000-0x00040000 : "bootloader"

0x00040000-0x00060000 : "params"

0x00060000-0x00460000 : "kernel"

0x00460000-0x04000000 : "filesystem"

0x04000000-0x08000000 : "application_partition"

I created JFFS2 image with following command.

mkfs.jffs2 -s 2048 -e 128 --no-cleanmarkers -o nand_jffs2.img -d 
nand_jffs2

Then I am writing the same image with following commands on NAND.

#> flash_eraseall -j /dev/mtd3

#> nandwrite -jp /dev/mtd3 nana_jffs2.img

I am not getting any error for above any operation.

Then I am rebooting the board with bootarga as 

setenv bootargs 'mem=128M console=ttyS0,115200n8 noinitrd
root=/dev/mtdblock3 rootfstype=jffs2 rw video=dm64xxfb:output=ntsc ip=dhcp

But getting error after getting root FS mounted as

jffs2_scan_dirent_node(): Name CRC failed on node at 0x001a8fe0: Read
0x6d4d9a65, calculated 0x6d499a65

mtd->read(0x1f98c bytes from 0x1c0674) returned ECC error

jffs2_scan_eraseblock(): Node at 0x0025800c {0x1985, 0xe001, 0x0000002f) 
has
invalid CRC 0xf244f931 (calculated 0xf244f9b1)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258010:
0x002f instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258014:
0xf931 instead

..........................................


*************************************************
俞焕焕                 中兴特种设备公司/中兴通讯
TEL  :15051880873
MAIL [EMAIL PROTECTED]
MSN  [EMAIL PROTECTED]
江苏南京将军大道55号腾飞创造中心C幢12层   210012
*************************************************


--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is 
solely property of the sender's organization. This mail communication is 
confidential. Recipients named above are obligated to maintain secrecy and are 
not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the originator of the 
message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to