Hi Bernd,
Thanks for your timely response and hoping for the best...
When i applied the patch . I got following error in the compilation
fs/yaffs2/yaffs_mtdif2.c: In function 'nandmtd2_pt2buf':
fs/yaffs2/yaffs_mtdif2.c:46: error: 'struct mtd_info' has no member named
'oobinfo'
fs/yaffs2/yaffs_mtdif2.c:47: error: 'struct mtd_info' has no member named
'oobinfo'
fs/yaffs2/yaffs_mtdif2.c:57: error: 'struct mtd_info' has no member named
'oobinfo'
fs/yaffs2/yaffs_mtdif2.c:58: error: 'struct mtd_info' has no member named
'oobinfo'
fs/yaffs2/yaffs_mtdif2.c: In function 'nandmtd2_buf2pt':
fs/yaffs2/yaffs_mtdif2.c:84: error: 'struct mtd_info' has no member named
'oobinfo'
fs/yaffs2/yaffs_mtdif2.c:85: error: 'struct mtd_info' has no member named
'oobinfo'
fs/yaffs2/yaffs_mtdif2.c:95: error: 'struct mtd_info' has no member named
'oobinfo'
fs/yaffs2/yaffs_mtdif2.c:96: error: 'struct mtd_info' has no member named
'oobinfo'
fs/yaffs2/yaffs_mtdif2.c: In function 'nandmtd2_WriteChunkWithTagsToNAND':
fs/yaffs2/yaffs_mtdif2.c:118: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif2.c:134: error: 'struct mtd_info' has no member named
'write_ecc'
fs/yaffs2/yaffs_mtdif2.c:134: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif2.c: In function 'nandmtd2_ReadChunkWithTagsFromNAND':
fs/yaffs2/yaffs_mtdif2.c:159: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif2.c:170: error: 'struct mtd_info' has no member named
'read_ecc'
fs/yaffs2/yaffs_mtdif2.c:170: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif2.c:177: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif2.c:182: warning: passing argument 3 of 'mtd->read_oob'
makes pointer from integer without a cast
fs/yaffs2/yaffs_mtdif2.c:182: error: too many arguments to function
'mtd->read_oob'
fs/yaffs2/yaffs_mtdif2.c: In function 'nandmtd2_MarkNANDBlockBad':
fs/yaffs2/yaffs_mtdif2.c:206: error: 'struct yaffs_DeviceStruct' has no
member named 'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif2.c: In function 'nandmtd2_QueryNANDBlock':
fs/yaffs2/yaffs_mtdif2.c:226: error: 'struct yaffs_DeviceStruct' has no
member named 'nBytesPerChunk'
so i did some relevant changes as following and able to compile properly.
But this time after the mount when i run "df -h" command. It showing
complete space as used space and not allowing to add any new file to it...
Its showing complete size as bad blocks (not as permannetly for this image
only..)
the main changes i have done is
nBytesPerChunk to nDataBytesPerChunk
mtd->oobinfo.oobfree[j][0] to 2 and mtd->oobinfo.oobfree[j][1] to 38
also did some modification for funcs read_oob ,read_ecc & write_ecc.
Regards & Thanks
Thomas Scariah
----- Original Message -----
From: "Bernd Petrovitsch" <
bernd@firmix.at>
To: <
yaffs@lists.aleph1.co.uk>
Sent: Thursday, January 24, 2008 7:59 PM
Subject: Re: [Yaffs] yaffs2 not retaining file after remounting....
> On Don, 2008-01-24 at 15:35 +0530, Thomas Scariah wrote:
> [...
>
>> But after that if I unmount and remount once more time the files I am
>> creating will disappear.At the same time a new file will be creating
>> in the folder lost+found,as name objXXXX.the content is still there in
>> the nand flash.
>>
>> I heard that there is some patch available for MTD device to make the
> [....]
>> please help me to cure this problem..
>
> We had the same problem last April (also) with CVS-HEAD (of that time of
> course).
> The cure was to replace yaffs_mtdif2.c with the one in the "patches"
> subdirectory.
>
> Bernd
> --
> Firmix Software GmbH http://www.firmix.at/
> mobil: +43 664 4416156 fax: +43 1 7890849-55
> Embedded Linux Development and Services
>
>
>
> _______________________________________________
> yaffs mailing list
> yaffs@lists.aleph1.co.uk
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>