ts-7000
[Top] [All Lists]

[ts-7000] Re: Mounting SD Card as root file system on 7260?

To:
Subject: [ts-7000] Re: Mounting SD Card as root file system on 7260?
From: "jywmpg" <>
Date: Wed, 14 Feb 2007 14:53:38 -0000
Thanks very much for the tip!   That does just what I asked for.

But I think maybe I got ahead of myself, and didn't ask the right
question ;)   I have been using Linux (Slackware/RedHat/LFS) for a
long time, but I am pretty new to the flash/SD/TS-LINUX/Debian arenas 

I am developing a WiFi geo-logger that will also control some simple
local hardware.  It will operate on battery power, and is likely to
have the power cycled without warning.

The hardware is a TS-7260 with the stock USB WiFi, SD card with Debian
development system, with a USB GPS.

For the fielded product:
Required System Services: Apache, Samba, gpsd, syslog, maybe a very
few others.
Requires pretty fast reboot after power cycling: say, less than 30 sec

My question is:

What is the best choice, in terms of a bulletproof final product, for
a boot device?  Kernel?

1. The power cycle and reboot time requirements seem to rule out
booting from an EXT2 partition on the SD Card, due to fsck's execution
time.

2. The process for booting from the SD Card on the TS-7260 seems a bit
daunting, but if one could use a journaling file system such as EXT3,
 then perhaps it is worth the effort.

3. One could boot from flash with the root file system on flash, and
then fsck the EXT2 partition on the SD card in the background.

My immediate question is: Where/How to install Samba for use in the
fielded system? If I chroot to the SD Card, I can use get-apt to
install Samba, but that will install it in the file system on the SC
Card (I think).

As I said in the original question: I know there must be some
(relatively) simple way to do this, I am just a little unfamiliar with
the terrain.   

As I  believe I have made clear ;)

jw


--- In  "posthumane1" <> wrote:
>
> If all you want to do is development using the debian system provided
> on the SD card, you can simply mount the card as another drive, and
> change root to it with
> 
> "chroot /mnt/SD" or wherever you have it mounted, do your compiling,
> etc, and change back with an exit command.
> 
> Jacob
> 
> 
> --- In  "jywmpg" <jywmpg@> wrote:
> >
> > I just got my 7260 and am trying to figure out how to use the Debian
> > distro without actually booting from the SD card.
> > 
> > Seems like giving RedBoot an exec command with the correct root=
> > option should do the trick, but I can't seem to get it to work.  Using
> > fconfig, I have tried the following boot scripts, but all except the
> > last (the default) result in kernel panic when it cannot find the root
> > file system:
> > 
> > # test - causes kernel panic:
> > fis load vmlinux -b 0x00218000
> > exec -c "console=ttyAM0,115200 ip=dhcp root=/dev/sdcard0/disc0/part3"
> > 
> > # test - kernel panic:
> > fis load vmlinux -b 0x00218000
> > exec -c "console=ttyAM0,115200 ip=dhcp root=/dev/hda"
> > 
> > # test - kernel panicc:
> > fis load vmlinux -b 0x00218000
> > exec -c "console=ttyAM0,115200 ip=dhcp root=/dev/hda1"
> > 
> > # this is the original, and works every time
> > fis load vmlinux -b 0x00218000                                 
> > exec -c "console=ttyAM0,115200 ip=dhcp root=/dev/mtdblock1"
> > 
> > I can mount the SD card with 'mount' and also via /etc/fstab and can
> > see the Debian distribution, so I know the card is fine.  The device
> > is /dev/sdcard0/disc0/part3, as described in the documentation
> > 
> > 
> > The "Getting Started.." Guide seems to indicate this is the correct
> > approach (or at least a valid one).   
> > 
> > 
> > If I just want to develop applications on the 7260 with the supplied
> > Debian distro, what is the easiest way to, for instance, run their
> > bash without having to deal with the dynamic libraries via ld.so.conf
> > and/or LD_LIBRARY_PATH and such?
> > 
> > 
> > I am sure there is an easy way to do this, but it escapes me right
now.
> > 
> > 
> > Thanks for any help,
> > 
> > jw
> >
>




 
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