ts-7000
[Top] [All Lists]

[ts-7000] Re: running root filesystem from ramdisk

To:
Subject: [ts-7000] Re: running root filesystem from ramdisk
From: "Hamish Avery" <>
Date: Wed, 21 Feb 2007 13:54:26 -0000
Hi Mark, Yan and Bas,

Thanks for the advice.  Unfortunately, I really do want to be able to
do an atomic filesystem update, and running from an expanded root
filesystem makes this difficult.  The only workable option to do this
seems to be Mark's idea to create a ramdisk on /dev/rd once the system
is up and then expand a compressed root filesystem into that and
switch to it.  It's slow and IMHO needlessly complicated though, and
the simplist option by far is to boot into a ramdisk. 

Mark, you are correct that the RAM comes in 8Mb banks, but the error
is posted before the memory is detected.  I tried again with a much
smaller ramdisk sizes (<5Mb then <2.3Mb).  Again, the same error.  The
smallest ramdisk attempt reports:

  RAM: 0x00000000-0x02000000, [0x00052ab0-0x01ff9000] available
  FLASH: 0x60000000 - 0x62000000, 2048 blocks of 0x00004000 bytes
  each.
  <snip>
  RedBoot> fis load zImage-ts11-sf -b 0x00218000
  RedBoot> load -r -b 0x00600000 -h 172.1.1.201 
  /tftpboot/172.1.1.88/initrd20022007r3.img
  Using default protocol (TFTP)
  Raw file loaded 0x00600000-0x0082eef5, assumed entry at 0x00600000
  RedBoot> exec -r 0x00600000 -s 0x00230000 -b 0x00218000 -l 
  0x22eef5 -c "console=ttyAM0,115200 root=/dev/ram0"
  Linux version 2.4.26-ts11  (gcc version 3.4.4) #2 
  Wed Feb 21 13:24:32 UTC 2007
  CPU: Arm920Tid(wb) revision 0
  Machine: ep9301
  initrd (0x00600000 - 0x00830000) extends beyond physical memory 
  - disabling initrd

I think its something other that a RAM paging problem.  Perhaps at the
time the kernel boots it is not provided with details of the RAM
configuration and thinks that anything is outside the valid range...??

I set the default ramdisk size to 32000 1024byte units when I compiled
the kernel and this is correctly recognised.

  "RAMDISK driver initialized: 16 RAM disks of 32000K size 
  1024 blocksize"

I can thus make 32Mb ramdisks using /dev/rd, so I tried passing these
to the 'bootload' command as per Jesse's instructions in message 4511,
but this wouldn't work at all, it would simply respond with 'Killed'
after a delay.

Any ideas?  Anyone?

Kind regards,

/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