HI , Did u change partition table in mtd files in kernel? i think file name is mtdblock.c U need to update u r MTD partion tables in this file, when u boot up u r system try to capture u r hyperterminal messages , u find a partion table which mentions u r blocks of devices , there u update these changes , it should work!
Best Regards, Rajesh N On Sun, Feb 8, 2009 at 1:04 PM, ebmajor <ebma...@hanmail.net> wrote: > > Hi Rajesh, > > thank you for your reply. > > Here are the details. > First of all, I try to create my own yaffs2 image so I don't use > system.img and userdata.img. > My test environment is 'x86 desktop Ubuntu + MTD Nand flash simulator' > since I want to verify only if my yaffs2 image works well > > I downloaded yaffs2 source code and compiled on my desktop Ubuntu to > generate mkyaffs2image. > and downloaded also MTD-Utils for flash tools and nandwrite. > > After that, I created 'test' directory and copied several files in it > and then did the commands as steps > 1. 'mkyaffs2image ./test img.yaffs2' > 2. flash_eraseall /dev/mtd0 > 3. nandwrite -a -o /dev/mtd0 img.yaffs2 > 4. mount -t yaffs2 /dev/mtdblock0 /mnt/yaffs2 > > I've done all the steps without errors. > However when I typed 'ls -l /mnt/yaffs2', it shows only 'lost+found' > directory > > I've googled about the trouble so saw some of people have the same > error but there is no solution on the web I searched. > > Regards. > On 2월8일, 오후12시59분, Rajesh N <rajesh.andr...@gmail.com> wrote: > > Hi, > > > > Can u mention the steps which u have used to create yaffs2 image from u > > android file system? > > > > Did u do u yaffs2 file system image for both data.img and system.img? > > > > In android SDK1.0 data.img is read only, u should not create yaffs2 > image > > for it, rather u need to create RAMFS or CRAMFS image for it. only > > system.img needs to be yaffs2 formated and mounted on system! > > > > How r u burning yaffs2 image? from boot loader or from kernel? > > > > Please elaborate steps u did from creating an image to mounting the file > > system, it will rather give clear picture on what mistake u could have > done > > in installing yaffs2 image! > > > > Best Regards, > > Rajesh N > > > > 2009/2/8 ebmajor <ebma...@hanmail.net> > > > > > > > > > Dear all, > > > > > I created img.yaffs2 using mkyaffs2image > > > and then mounted it into Ubuntu MTD NAND flash simulator. > > > so if I use 'cat /proc/filesystems' I can see yaffs and yaffs2 > > > and by 'cat /proc/mtd' I can see > > > /dev/mtd0에 Nand simulator partition 0. (block size is 0x4000) > > > > > after that using mtd-utils, I did > > > > > 'flash_eraseall /dev/mtd0' > > > > > 'nandwrite -a -o /dev/mtd0 img.yaffs2 > > > > > so I can see the image is writing as > > > > > writeing data to block 0 > > > writeing data to block 4000 > > > writeing data to block 8000 > > > > > after that to see the files I mounted > > > > > mount -t yaffs2 /dev/mtdblock0 /mnt/yaffs2 > > > > > but when I type the command 'ls -l /mnt/yaffs2' > > > there is only 'lost+found' directory > > > > > What's wrong with me? > > > > > regards. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---