one problem here i am facing is i am unable to run the mtd-utils from intiramfs shell. every time i ran the "flash_erase" utility it is giving some weird error. It looks like binary is unable to find the linker script on the target. I tried copying those library files to 'lib' folder on the target but it didn't help. Can any one please provide any other solutions. thanks On Thu, Nov 4, 2010 at 1:01 PM, Ricard Wanderlof wrote: > On Thu, 4 Nov 2010, Murali N wrote: > >> Hi, >> I have booted the kernel (.35) using the initramfs (not from the flash). >> As a testing purpose i am trying to mount the YAFFS filesystem onto to >> one of  the MTD partition on the flash. >> MTD partition information is given through kernel command line option >> and also make sure that the partition is erased. >> Initially i mounted the YAFFS filesystem onto above erased MTD >> partition and i am able to see only 'lost+found" directory. >> Later i have copied bunch of files, i am able to see those file >> contents properly before unmount. >> After i umount and mount back the partition. After the remount i am >> not able seen the files which i had copied. >> Also not seen any error messages from either YAFFS or nand driver. >> >> Here i am thinking whether the actual write is happens onto flash or >> not? If it is YES then when i remount i should be able to see the >> contents. >> I have given forcefully 'sync' option from the command prompt even >> that didn't work. >> >> Can anyone please share your thoughts/suggestions on this behavior? > > One thing you could do to see if your data is in any way written to the > flash, is to dump the contents of the mtd partition after umounting. If the > partition only contains 0xff then the data has not been written (at least > not where you think it has been written...). > > /Ricard > -- > Ricard Wolf Wanderlöf                           ricardw(at)axis.com > Axis Communications AB, Lund, Sweden            www.axis.com > Phone +46 46 272 2016                           Fax +46 46 13 61 30 > -- Regards, Murali N