Re: Cramfs and /dev
- From: phil-news-nospam@xxxxxxxx
- Date: 16 Jan 2007 18:39:31 GMT
On 16 Jan 2007 04:07:08 -0800 Ram <vshrirama@xxxxxxxxx> wrote:
| Im trying to build a cramfs file system - How is this handled for
| /dev files.
|
| I understand that /dev is read-write. so i cannot include it in
| cramfs.
|
| Is having a script which creates all the nodes at the beginning in
| tmpfs is the only solution.
That's what I do. My "script" (actually a binary compiled from source
code in C) mounts a tmpfs, inserts devices shown by sysfs, then includes
everything from a designated collection (another hard drive partition on
my desktop computer). For an embedded system, populating /dev from sysfs
might be all you need. If you go the route of using initramfs, then you
already have rootfs at / (rootfs is just like ramfs) and /dev will use
that if no other is mounted there.
IMHO, initramfs is, or should be, the way of the future, even for hosted
(desktop and server) machines, in addition to embedded.
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-01-16-1235@xxxxxxxx |
|------------------------------------/-------------------------------------|
.
- References:
- Cramfs and /dev
- From: Ram
- Cramfs and /dev
- Prev by Date: Re: Cramfs and /dev
- Next by Date: Re: Any Cell BE programmers here?
- Previous by thread: Re: Cramfs and /dev
- Index(es):