mtd devices & jffs

Juan Gonzo kayemmess at
Tue Jul 11 17:23:23 EDT 2000

I guess the problem I am going to run into is that I don't
want to erase all of the flash, nor do I want JFFS to use
all of the flash.  Part of the flash will have a kernel
image burned into, and another part is being used for config
data etc.  And then the filesystem is supposed to have its
chunk of flash to use.

Is this possible?  Looking through the JFFS code, they hardcode
the start address for their scan at 0x0 and get the end addr
based on the size of the total flash.  Is there a way to tell
JFFS "start at this addr and only use this much space" without
changing this code?

   -- kelly

--- David Woodhouse <dwmw2 at> wrote:
> kayemmess at said:
> > Dirty flash memory or bad inode: hexdump(pos = 0x1098176, len =
> 128):
> Looks like there were data on the flash chips before you started.
> Erase 
> them first. There's no utility to erase whole devices, but the
> 'erase' 
> program in the util/ directory will erase a single erase block at a
> time.
>  for a in `seq 0 131072 16777216` ; do mtd/util/erase /dev/mtd0 $a ;
> done
> ....or put a loop into the erase program. The MTDGETINFO ioctl should
> return 
> the size of the device.
> --
> dwmw2
> To unsubscribe, send "unsubscribe mtd" to majordomo at

Do You Yahoo!?
Get your free address at

To unsubscribe, send "unsubscribe mtd" to majordomo at

More information about the linux-mtd mailing list