need suggestion about embedded FS plan
Russ Dill
Russ.Dill at asu.edu
Mon Feb 3 14:27:08 EST 2003
> In fact,there is only a little fs need to
> be 'SAVE',like /etc direcory,it take rooms less
> than %1 of all flash size.And the main parts
> /lib,/sbin,/bin...maybe never changed.
> So I have an idea,
> Put main parts of fs(/lib,/sbin....)on Cramfs
> at one of the flash bank.
> Put bootloader,kernel and need-save-fs(/etc) on
> the other flash bank with jffs2 fs.
>
> Is that possible?Sth ,I am not sure,is if no
> /etc in root fs,Maybe it can not boot up!!!
just make a /linuxrc, linuxrc is a shell script run by the kernel
(init=/linuxrc) that would do stuff like:
#!/bin/sh
mount -t ramfs ramfs /var
mount -t ramfs ramfs /tmp
mkdir /var/run
mkdir /var/lock
mount -t jffs2 /dev/mtd2 /etc
exec /sbin/init
--
Russ Dill <Russ.Dill at asu.edu>
More information about the linux-mtd
mailing list