ts-7000
[Top] [All Lists]

[ts-7000] running root filesystem from ramdisk

To:
Subject: [ts-7000] running root filesystem from ramdisk
From: "hamishavery" <>
Date: Tue, 20 Feb 2007 19:36:41 -0000
Hi all,

I am using the TS7260 and I want to set it up so that we can send
customers new SD cards that they can simply swap out for upgrades.  

My desire is to thus put the kernel, root filesystem image and data
files all onto the SD card.  On boot, redboot loads a basic kernel and
minimal root filesystem from the (write protected) onboard flash. 
This would then use the 'bootload' command to switch to the full
kernel and load the full filesystem into a ramdisk.  I want to use a
ramdisk for my entire root filesystem so I can write files as I please
with no risk of wearing out the SD card.  It is also faster reading
from the RAM, as I am writing data to the SD card continuously.

So far I can get my system to reboot with the new kernel fine, but the
ramdisk I try to create will not work.  My root FS is around 29Mb and
I am trying to create a 32Mb ramdisk.  This is the approach I have
taken with previous products using x86 based SBC's, so I know the idea
is possible, but I must be missing something.  The error I get is:

"initrd (0x01000000 - 0x0187f000) extends beyond physical memory -
disabling initrd"

which seems pretty odd to me, given the line:

"RAM: 0x00000000-0x02000000, [0x00052ab0-0x01ff9000] available"

is showing not too far above it!  

I have done a trawl of this group and see a few bits and pieces that I
have added together to get me to this point, and I can see that there
are a few ways to go about this.  Some would argue that I should leave
the root FS expanded on the SD card, mounted `ro' and use tempfs for
/var and /tmp.  I believe I could also use ramdisks of fixed sizes for
/var and /tmp, which eases my concerns of the tempfs eating all my
ram...  But what is best?  As I mention, I don't want to slow my data
file writing to the SD card by having to read root filesystem commands
at the same time.  Another major advantage of using a root filesystem
image on a ramdisk is that one can do an atomic root filesystem
upgrade - a very real requirement if I can eventually get cruch to work...

Is this some sort of paging problem?  Must all ramdisk data lie within
certain size limit?

I would appreciate some thoughts on this.

Cheers and thanks

/hamish




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU