Problem with copying more than 2kb file into the flash
Hello all,
I am using Samsung 256mb nand flash.
page size : 2kb
block size:128kb
I have the following prolbem:
I have a situation here where I mount JFFS2 on top of my NAND device and certain files will fail to copy over. Small text files are fine. The problem is with large binary files. I copy to my mounted dir and ls -l shows the file is entirely there.
Upon remounting, the file is lost or showing a size of 0. Upon scanning the flash at mount I will always get "jffs2_get_inode_nodes(): Data CRC failed on node at ..."
I don't know where is the problem either in my nand driver or jffs2 code
Has anyone experienced this and have any ideas? Any help would be much appreciated.
Quoted 8 lines · s.balamurugan
Upon remounting, the file is lost or showing a size of 0. Upon scanning the flash at mount I will always get "
jffs2_get_inode_nodes(): Data CRC failed on node at ..."I don't know where is the problem either in my nand driver or jffs2 code
Has anyone experienced this and have any ideas? Any help would be much appreciated.
I would start from making sure the that your flash driver is all right.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Please, be public.
Quoted 4 lines · s.balamurugan
Thanks for ur kind reply. Please tell exactly where is the
problem, more than 20 days i was suffer with this problem. or give me detail explanation about jffs2 code flow. how the file was written to flash.
Sorry, this is a question of "tell me all about everything" type.
Quoted 7 lines
but in
jffs2_commit_write()function is not
showing the correct size.
intjffs2_commit_write(struct file *filp, struct page
*pg, unsigned start, unsigned end), the end parameter was show the wrong file size.
and i want to know howjffs2_commit_writefunciton was called. givve some idea
Sorry, -EDONTUNDERSTAND.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)