On Tue, Jul 24, 2007 at 10:11:55AM +1000, David McCullough wrote:
> 
> Jivin Crane, Matthew lays it down ...
> > Hi, 
> > 
> > I would like to boot a very memory constrained system, I do not want the
> > kernel to decompress an initrd to RAM, I want it to use a romfs directly
> > from flash as the rootfs.  Can I specify this from the command line and
> > pass the offset to the kernel from the command line somehow?   Any help
> > much apreciated.
> 
> Easy.  Depending on the kernel version you have your just need blkmem or
> mtd drivers with a map for your rom,  then mount root from there.
> Just change the word flash to rom in the following and you will have
> most of it:
> 
> http://www.ucdot.org/article.pl?sid=03/01/11/1049210
> http://www.ucdot.org/article.pl?sid=02/09/20/041251
> 
> Cheers,
> Davidm

May I add that (on m68k/coldfires) you can even execute in place the programs
in rootfs, and that you can even compile/link them to the exact address where
they will be in the romfs filesystems.  For that, look at :

http://mailman.uclinux.org/pipermail/uclinux-dev/2006-March/037530.html
http://mailman.uclinux.org/pipermail/uclinux-dev/2006-March/037557.html
http://mailman.uclinux.org/pipermail/uclinux-dev/2006-March/037561.html
http://mailman.uclinux.org/pipermail/uclinux-dev/2006-March/037562.html
http://mailman.uclinux.org/pipermail/uclinux-dev/2006-March/037651.html

Philippe
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to