jffs2 2.4.18 kernel problem

Thomas Gleixner tglx at linutronix.de
Mon May 17 19:21:16 EDT 2004

On Tuesday 18 May 2004 01:20, lokesh kumar wrote:
> Hi,
> I have a jffs2 partition on my mpc8xx board, running 2.4.18 kernel. I am
> using mtd snapshot of july 2002. The mtd partition size is 2MB.
> I enabled the mtd options in kernel, and then built an image for this
> partition using
> mkfs.jffs2 -e 0x20000 -b -r rootdir -o img
> and then I copy this image over this partition using u-boot or debugger. I
> can then boot the board and mount this partition on a mount point. Then I
> can cd to this partition and create a directory and copy a file to this
> directory. Now, I turn the power off and when I reboot, I can mount the
> file system and can see that the directory and file exist, but when I say
> "rm -fr file" or "rm -fr directory", it crashes the kernel saying "kernel
> access of bad area"
> What am I doing wrong?

Not much. You just use an ancient kernel and a pre ancient version of mtd

Steve Ballmer quotes the statistic that IT pros spend 70 percent of their 
time managing existing systems. That couldn’t have anything to do with 
the fact that 99 percent of these systems run Windows, could it?
linutronix - competence in embedded & realtime linux
mail: tglx at linutronix.de

More information about the linux-mtd mailing list