RE: Cf Card vs DiskOnChip

Chris Fowler
2002-01-25T22:18:17Z

You do not really need 128m. You may be starting from the worng direction.

I've seen 2 approaches to embedded stuff..

First:

Start with an install of RedHAt 7.2 and strip it down!

Second:

Start with a empty directory and add to it.

99% of the time the First method will yield a huge image of stuff not
needed. Including libraries.

If you are missing something in the second methiod then you'll know real
fast. And add it.

I'm a little curious as to what people are doing with JFFS2. I have 2
partions on my flash. 1 is ext2. 2nd is raw. Raw is used to store
configs, data etc..
ext2 is used to store kernel, initrd and software image. At boot initrd
reads the image and loads to a ramdisk. Kernel mounts that ramdisk as root.
User never deals with the DOC2000 unless they flash and upgrade, save a
config, get ssh keys, or get serial number. The sw image is an encrypted
ext2 disk image.

Questions:

Why do you need to mount your flash as r/w?
What else are you using the JFFS2 for?

If my box looses power then it comes back up no damage. If you delete every
file, it comes back up now damage.

-----Original Message-----
From: linux-mtd-admin@lists.infradead.org
[mailto:linux-mtd-admin@lists.infradead.org]On Behalf Of Robert Schwebel
Sent: Friday, January 25, 2002 8:23 AM
To: linux-mtd@lists.infradead.org
Subject: Re: Cf Card vs DiskOnChip

On Fri, 25 Jan 2002, Ramya Ravichandran wrote:
> > > With 128MB I need to get the whole thing running.
> >
> > Why on earth do you need so much storage?
> >
> I need to have an application running on it with
> serial communication

If you don't need anything else 2 MB flash are enough. Remember, this is
Linux, not <beeeeep!> :-)

Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+

______________________________________________________
Linux MTD discussion mailing list