public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: MTD, generic physmap memory, MTD_BLOCK
@ 2000-12-19 13:32 Michael Stumpf
  2000-12-19  2:51 ` Shane Nay
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Stumpf @ 2000-12-19 13:32 UTC (permalink / raw)
  To: David Woodhouse, shane; +Cc: Nicolas Pitre, mstumpf, mtd


> >  But we are working on XIP for cramfs.  But this requires either
> > expanding the  inode, or stealing a bit or two away from GIDS, or
> > UIDs.  This is only a  "linear addressing" patch. 
> 
> I was looking at doing it in romfs. You can't have compression anyway, for 
> obvious reasons, and it looked a little easier. But I suppose that wouldn't 
> allow you to mix XIP-able and compressed files in the same fs.

I did some work in the direction suggested by (thanks!) Nicolas--modified
mtdram.c to act as a conduit device for plain memory.  I did get a successful
boot from a cramfs rootdisk.  

When I said XIP, I didn't realize that this crowd had a very "serious"
definition of it.  I simply meant I was trying to get around the initrd
buffering issue:  As far as I can tell, up until now the only mechanism that a
CPU (with only RAM and ROM visibility) has at its disposal to boot from is
initrd, that would copy all the ROM image into RAM buffer cache.. and only
understand three file systems (cramfs is not one of them).  I don't mind cramfs
using a buffer page (4k, LinuxPPC) or two to do its work--I was trying to slay
the complete-image-copy daemon.  (My embedded system is 6 meg RAM, 8 meg ROM..
and I want shared libraries, etc)

It seems to me that for the time being and the immediate future, XIP as we're
talking about it would be overkill.  The streamlining and elegance gained in
the operation of XIP is probably offset by the ugliness of implementation and
the potential loss of compression that seems so crucial in embedded devices,
the primary target (right?) of MTD.  I like XIP but I don't think I'd ever use
it.

One very relevant topic that I'd like to discuss is where a generic memory
conduit device belongs.  I would suspect it belongs as a fallback default if
CFI devices can't be probed (I forget the file), but it also might make sense
to give it a separate file for "neatness" sake.  

Cheers,
Michael




=====
=====================================================================
Michael J. Stumpf                              
LinuxPPC enablement
IBM-Austin, TX     512.838.1524 [lab]  512.838.5335 [work]   
http://www.pobox.com/~mstumpf

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* MTD, generic physmap memory, MTD_BLOCK
@ 2000-12-13 16:48 Michael Stumpf
  2000-12-13 19:02 ` Nicolas Pitre
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Stumpf @ 2000-12-13 16:48 UTC (permalink / raw)
  To: mtd


I'm working in embedded LinuxPPC on a system with low RAM and ROM -- 6 meg RAM,
8 meg flash ROM.  It seems like that MTD may provide (or almost so) a method
for mapping memory space in as a block device.  It already appears to sort-of
do that, but I was wondering if full support for booting off of non-CFI
compliant, but transparently mapped in, memories is either in place now
(doesn't seem to be there) or is planned for the future.

It's a trivial driver, and I'll write it / modify existing MTD code if
desired/needed, but it really seems important to have so that I can
execute-in-place from a cramfs partition in ROM (and also have this as my root
partition).

Thoughts?  Am I way off the mark here?

Regards-
Michael Stumpf



=====
=====================================================================
Michael J. Stumpf                              
LinuxPPC enablement
IBM-Austin, TX     512.838.1524 [lab]  512.838.5335 [work]   
http://www.pobox.com/~mstumpf

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


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

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

end of thread, other threads:[~2000-12-19 13:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-19 13:32 MTD, generic physmap memory, MTD_BLOCK Michael Stumpf
2000-12-19  2:51 ` Shane Nay
  -- strict thread matches above, loose matches on Subject: below --
2000-12-13 16:48 Michael Stumpf
2000-12-13 19:02 ` Nicolas Pitre
2000-12-16  1:04   ` Shane Nay
2000-12-17 22:24     ` David Woodhouse
2000-12-18 21:31       ` Shane Nay
2000-12-19  9:24         ` David Woodhouse
2000-12-18 22:35           ` Shane Nay

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