Glen Johnson | 14 Nov 15:45

Can't mount JFFS2.

Dear Jffs-dev,
I have a target system which works fine using MTD and JFFS2 with
the uClinux 2.4.22 kernel. I am attempting to bring up the uClinux
2.6.17 kernel now and am having some problems with
mounting the JFFS2 partition.  I have tried both recommended
procedures for mounting a JFFS2 partition.

First I attempted to create a JFFS2 image on the target platform,
erased the partition, and then copied the image to the partition.  
All seemed well until "mount -t jffs2 /dev/mtdblock2 /mnt" and I
received +3500 lines of error messages.

Second I created a JFFS2 image on a separate computer, tftp-ed the
image to the target, erased the JFFS2 partition and copied in the
jffs2 image to the partition.  What resulted was the same +3500 lines
of error messages.  

By the way toward the bottom of the list of errors it says "You cannot
use older JFFS2 file systems with newer kernels", so I tried down
loading Red Hats cvs server and used the latest and greatest version
of mkfs.jffs2.  Still gave me the same error messages as before.

Can anyone give any recommendations on what I am doing wrong?  I know
I'm close to getting it working but I can't seem to find the right
flag to set or whatever it is.  Any and all help is greatly appreciated.

Directly below is an abbreviated listing of the errors.  Just after
this I supplied a boot log to give context to my target system.

ERROR MESSAGE:
(Continue reading)

Adrian Bunk | 26 Nov 06:31
Picon
Favicon

[2.6 patch] remove fs/jffs2/ioctl.c

fs/jffs2/ioctl.c is already for so long in the "might be used later" 
state that I doubt it will ever be actually used...

And if it will ever be used, reverting this patch will be trivial.

Signed-off-by: Adrian Bunk <bunk <at> stusta.de>

---

 fs/jffs2/Makefile   |    2 +-
 fs/jffs2/dir.c      |    1 -
 fs/jffs2/file.c     |    1 -
 fs/jffs2/ioctl.c    |   23 -----------------------
 fs/jffs2/os-linux.h |    3 ---
 5 files changed, 1 insertion(+), 29 deletions(-)

--- linux-2.6.14-rc5-mm1-full/fs/jffs2/os-linux.h.old	2005-11-01 20:28:24.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/fs/jffs2/os-linux.h	2005-11-01 20:28:31.000000000 +0100
@@ -147,9 +147,6 @@
 int jffs2_fsync(struct file *, struct dentry *, int);
 int jffs2_do_readpage_unlock (struct inode *inode, struct page *pg);

-/* ioctl.c */
-int jffs2_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
-
 /* symlink.c */
 extern struct inode_operations jffs2_symlink_inode_operations;

--- linux-2.6.14-rc5-mm1-full/fs/jffs2/dir.c.old	2005-11-01 20:28:39.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/fs/jffs2/dir.c	2005-11-01 20:28:43.000000000 +0100
(Continue reading)

Adrian Bunk | 1 Dec 18:11
Picon
Favicon

[2.6 patch] remove mtd/jffs2-user.h

- not included by any other header
- not defining any userspace <-> kernel interface
- depends on userspace providing a variable "target_endian"

mtd-utils already has a copy of this file.

Signed-off-by: Adrian Bunk <bunk <at> stusta.de>

---

 include/mtd/Kbuild       |    1 -
 include/mtd/jffs2-user.h |   35 -----------------------------------
 2 files changed, 36 deletions(-)

--- a/include/mtd/jffs2-user.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * $Id: jffs2-user.h,v 1.1 2004/05/05 11:57:54 dwmw2 Exp $
- *
- * JFFS2 definitions for use in user space only
- */
-
-#ifndef __JFFS2_USER_H__
-#define __JFFS2_USER_H__
-
-/* This file is blessed for inclusion by userspace */
-#include <linux/jffs2.h>
-#include <endian.h>
-#include <byteswap.h>
(Continue reading)


Gmane