Skip to contentSkip to conversation

Root FS on Flash?

DISCUSSION Wang Yong 2 participants 2 messages Oct 28, 1999

lore
Share & tools
lore

Wang Yong

author
#0 lore raw

hi,
we're now working on porting linux to IBM PPC401D2, a embedded
controller. here, i have a question: how to make root file system on the flash memory? by now, most embedded linux employ NFS as root file system.
this solution is not suitable for us. so we decide to make a root fs, such
as minix, on flash memory.
does anyone has any experience on it? is there a embedded linux
has done it? any comment and suggestion are welcome. thank you.

regards,
Wang

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines · Wang Yong

.... i have a question: how to make root file system on the flash memory? by now, most embedded linux employ NFS as root file system.

The diskless NFS root file system is simply used for convenience and to reduce application development time. You can put a root file system on anything that will hold the bits.

Quoted 2 lines

does anyone has any experience on it? is there a embedded linux
has done it? any comment and suggestion are welcome. thank you.

Yes, there are many systems using a variety of solutions to Flash rom root file systems. You have to consider your own application requirements to choose what is appropriate for you. You can use a compressed initrd stored in flash rom, which is uncompressed into a ram disk. Another popular alternative is PCMCIA flash disks, compact flash or Smart Media cards. You can put a file system on them, partition them, and compress some or all of the data. Least favorite on my list, but used by some people, is soldered on-board flash rom parts. Wear leveling and dynamic allocation are complex algorithms, and above a rather small size compact flash cards are more cost effective.

All of this is supported by standard Linux distributions, and the boot code in the PPC port handles it well.

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/