Do you mean mkyaffsimage? It is a long time since I tried to do something like that but it should be relatively easy to accomplish and I know that some people have accomplished very similar things in the past. The major issues you will encounter is that mkyaffsimage uses posix style functions to access the file system and also understands posix file types such as devices, pipes, symbolic and hard links which Windows does not understand. Using Cygwin will make things a bit simpler too. mkyaffs is another matter entirely. mkyaffs is designed to run on a Linux machine as it uses the Linux mtd layer which will not be present on a Windows PC. You really are unlikely to be wanting to do this anyway. mkyaffs does two things: * "Format" the flash by erasing it. * Copy in an optional image. If you are not using Linux then there are other ways to accomplish what you want here: 1) "Formatting": * Just erase the flash. 2) Create an image file: * Erase flash. * Mount flash * Write required file structures to yaffs file system. * Unmount * Take a binary dump of the flash. -- Charles On Thursday 29 January 2009 18:54:20 roy basavaraju wrote: > Hi Charles/all, > > Is it possible to build Mkyaffs utils on visual studio 2005. i mean > how difficult it is, if we take mkyaffs linux code and build on VS2005? > > Is there any other way around/options available? my requirement is to > build mkyaffs2image utility on VS2005. > > Thanks for your help. > > Regards, > Rammohan > > On Mon, Jan 5, 2009 at 8:01 AM, Charles Manning wrote: > > Hi Ram > > > > On Thursday 25 December 2008 20:47:36 roy basavaraju wrote: > > > Hi Charles Manning, > > > > > > I am working with yaffs on cygwin environment.. > > > > > > I am having two tasks at my hand.. > > > > > > 1. i have to verify the yaffs image created on cygwin environment will > > > > work > > > > > as efficient as in other environment. > > > > What do you mean by "efficiently"? > > > > The mkyaffs2image tool will generally need some tweaking to be useful. > > Different flashes have different layouts for ECC etc and thus you will > > generally need to fiddle around a bit to get the binary layout you need. > > > > > 2. then i need to modify the yaffs code in such a way, mkyaffsimage > > > > should > > > > > take input as a tar file rather than a directory. > > > > That is a general programming question, not a yaffs one. > > > > > As a new-bie to yaffs, i need your views and some pointers on this > > > > area.. > > > > > Thanking you, > > > Ram > > > ---------- Forwarded message ---------- > > > From: Laurie van Someren > > > Date: Wed, Dec 24, 2008 at 6:20 PM > > > Subject: yaffs technical support > > > To: roy basavaraju > > > > > > > > > Ram, > > > I am not really competent to answer your question to the YAFFS list, > > > but Charles Manning's reply to a similar question recently is as > > > follows:- > > > > > > > > > -------- Forwarded Message -------- > > > From: Charles Manning > > > > > > Cc: laurie@aleph1.co.uk > > > Subject: re: yaffs technical support > > > Date: Wed, 24 Dec 2008 13:48:10 +1300 > > > > > > Hello > > > > > > Further to my last email... > > > > > > I built and ran the test code in cvs under cygwin with no > > > modifications. > > > > > > Process as follows: > > > > > > 1) You need cygwin with make, gcc etc. > > > 2) Fetch tarball from > > > > http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/yaffs2/ > > > > > 3) Unpack tarball > > > 4) cd to yaffs2/direct > > > 5) make > > > 6) Run initialisation for test as follows: > > > > > > ./yaffs_test M18-1 fw_update_init 111 > > > > > > 7) Run test code as follows: > > > ./yaffs_test M18-1 fw_update 111 > > > > > > or by running the run_fw_update_test.sh script > > > > > > Regards Charles > > > > > > > > > I hope this will help. Thanks > > > LvS > > > -- > > > Laurie van Someren Aleph One Ltd Old Courthouse Bottisham > > > CAMBRIDGE CB25 9BA UK t: +44 (0)1 223 811 679 www.aleph1.co.uk