Hi,

Thanks for the reply.  I started with the romfs map as suggested below
which worked nicely.  I'm also using buildroot, which does not provide
genromfs output, probally easy to add, but I ended up using an XIP
cramfs where the address can be passed on the boot line and provides the
added benefit of removing mtd block dependencies.  The most recent
linear xip cramfs patch worked on the current uClinux kernel with one
minor hunk failed.  Cheers,

Matt

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Philippe De Muyter
Sent: Wednesday, August 08, 2007 11:40 AM
To: uClinux development list
Subject: Re: [uClinux-dev] pass address of ROMFS in flash to kernel at
boot?

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
_______________________________________________
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