public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: mtd devices & jffs
@ 2000-07-11 21:23 Juan Gonzo
  2000-07-12  8:19 ` David Woodhouse
  0 siblings, 1 reply; 8+ messages in thread
From: Juan Gonzo @ 2000-07-11 21:23 UTC (permalink / raw)
  To: MTD Mailing List

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?

Thanks,
   -- kelly


--- David Woodhouse <dwmw2@infradead.org> wrote:
> 
> kayemmess@yahoo.ca 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@infradead.org


_______________________________________________________
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Config.in
@ 2000-07-14  3:58 Michael Elizabeth Chastain
  2000-07-14  7:30 ` Config.in David Woodhouse
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Elizabeth Chastain @ 2000-07-14  3:58 UTC (permalink / raw)
  To: dwmw2, scote1; +Cc: mtd, tao

I introduced define_tristate in the 2.3 series.

I am not following the MTD discussion, but I gather the idea is to use
the same Config.in files for both 2.2 and 2.3.  If you need to do that,
I suppose you can use define_bool and get away with it.

define_tristate exists in order to help tighten up the type system in
Config Language.  The idea is to improve the tools so that they can give
warnings and errors about things like "this variable is a boolean in
one place and a tristate in another".  If this ever actually happens,
I hope that drivers/mtd/Config.in can be edited at that time to conform.

Just some historical two cent's worth from an old has-been.  :)

Michael


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-07-14  7:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-11 21:23 mtd devices & jffs Juan Gonzo
2000-07-12  8:19 ` David Woodhouse
2000-07-12  9:35   ` David Woodhouse
2000-07-13 12:53     ` Config.in Sébastien Côté
2000-07-13 13:43       ` Config.in David Woodhouse
2000-07-13 13:58         ` Config.in Sébastien Côté
  -- strict thread matches above, loose matches on Subject: below --
2000-07-14  3:58 Config.in Michael Elizabeth Chastain
2000-07-14  7:30 ` Config.in David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox