public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* howto
@ 2001-01-04 17:48 Livio Plos
  2001-01-04 17:57 ` howto David Woodhouse
  0 siblings, 1 reply; 4+ messages in thread
From: Livio Plos @ 2001-01-04 17:48 UTC (permalink / raw)
  To: mtd

Hi,

I'm trying to build a system with flash chips instead of an
hard disk or a disk on module and this seems to be the 
most advanced project to help me doing this.

Neverthless, it is not easy to begin understanding how to 
move between sources, configuration, modules...

Can I boot totally from flash without any other storage support?

Is there any howto or high level docs to configure and compile?


Thank you very much.

Livio





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

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

* Re: howto
  2001-01-04 17:48 howto Livio Plos
@ 2001-01-04 17:57 ` David Woodhouse
  2001-01-04 19:31   ` mtdchar.c and vmalloc Alice Hennessy
  0 siblings, 1 reply; 4+ messages in thread
From: David Woodhouse @ 2001-01-04 17:57 UTC (permalink / raw)
  To: Livio Plos; +Cc: mtd


livioplos@bigfoot.com said:
>  I'm trying to build a system with flash chips instead of an hard disk
> or a disk on module and this seems to be the  most advanced project to
> help me doing this.

> Neverthless, it is not easy to begin understanding how to  move
> between sources, configuration, modules...

Documentation is moving up the TODO list very slowly, as I get the code 
closer to a state where I'm happy with it.

> Can I boot totally from flash without any other storage support?

Yes, as long as you have the flash mapped where the CPU startup vector 
points, or the board's firmware has support for starting the Linux kernel
from flash (RedBoot does).

> Is there any howto or high level docs to configure and compile? 

Drop the latest code from CVS on top of your 2.4 kernel tree. Enable all the
CFI stuff, enable CONFIG_MTD_PHYSMAP and set the address, size and bus width
for your flash mapping appropriately. Boot it and see what happens.

If you want to partition the flash, as most people do, you'll want to copy
one of the other 'map' drivers (eg. pnc2000.c) and change the numbers
accordingly.

--
dwmw2




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

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

* mtdchar.c and vmalloc
  2001-01-04 17:57 ` howto David Woodhouse
@ 2001-01-04 19:31   ` Alice Hennessy
  2001-01-05 10:31     ` David Woodhouse
  0 siblings, 1 reply; 4+ messages in thread
From: Alice Hennessy @ 2001-01-04 19:31 UTC (permalink / raw)
  To: David Woodhouse; +Cc: ahennessy, mtd

Hello,

During  stress testing,  I ran into a data corruption problem that  went away
after I changed vmalloc to
kmalloc  in mtd_read and mtd_write functions (mtdchar.c).   I added a loop to
the code so that malloc size
doesn't exceed the kmalloc maximum of 128k bytes.
Seems to work fine now.

Does this make sense? Anyone else see this problem?   Any opinions if this is
an ok solution until
kiovec or something else is implemented?

Alice



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

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

* Re: mtdchar.c and vmalloc
  2001-01-04 19:31   ` mtdchar.c and vmalloc Alice Hennessy
@ 2001-01-05 10:31     ` David Woodhouse
  0 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2001-01-05 10:31 UTC (permalink / raw)
  To: Alice Hennessy; +Cc: mtd


ahennessy@mvista.com said:
>   Any opinions if this is an ok solution until kiovec or something
> else is implemented? 

S'fine.

--
dwmw2




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

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

end of thread, other threads:[~2001-01-05 10:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-04 17:48 howto Livio Plos
2001-01-04 17:57 ` howto David Woodhouse
2001-01-04 19:31   ` mtdchar.c and vmalloc Alice Hennessy
2001-01-05 10:31     ` David Woodhouse

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