This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mkfs.jffs2 on cygwin?


Hi,

You should probably try to compile mkfs.jffs2 from sources on Cygwin. I
can tell that it is working well for mkfs.ext2 with a small patch i
enclose to this mail to fix problems due to mount questions.

I would also suggest to ask this question on cygwin mailing list if you
can't compile mkfs.jffs2 from sources.

(the patch is for libext2fs needed by mkfs.ext2)

Bertrand


Le lun 24/01/2005 Ã 05:27, Dou Wen a Ãcrit :
> i google and get a
> link(http://cygwin.mirrors.pair.com/jffs2/mkfs.jffs2)
> which seem to be the answer, but its actually a linux runable one, is
> there
> exist an mkfs.jffs2 for cygwin?
> 
> ---douwen
> 
> 
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> 
diff -Naur e2fsprogs/lib/ext2fs/ismounted.c e2fsprogs.cyg/lib/ext2fs/ismounted.c
--- e2fsprogs/lib/ext2fs/ismounted.c	2002-03-04 10:36:22.000000000 +0100
+++ e2fsprogs.cyg/lib/ext2fs/ismounted.c	2004-10-18 15:54:05.000000000 +0200
@@ -117,8 +117,10 @@
 	*mount_flags = EXT2_MF_MOUNTED;
 	
 	/* Check to see if the ro option is set */
+#ifndef __CYGWIN__
 	if (hasmntopt(mnt, MNTOPT_RO))
 		*mount_flags |= EXT2_MF_READONLY;
+#endif
 
 	if (mtpt)
 		strncpy(mtpt, mnt->mnt_dir, mtlen);

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]