ts-7000
[Top] [All Lists]

[ts-7000] How to boot 7250 to Debian on flash drive?

To:
Subject: [ts-7000] How to boot 7250 to Debian on flash drive?
From: Mike Dodd <>
Date: Wed, 16 Nov 2011 11:19:24 -0500
I am still struggling to get into a fully-running Debian OS on a 7250 
with a flash drive plugged into the USB port.

I can load the USB drivers and switch to Debian with two scripts:

/usr/bin/loadUSBModules.sh
---------------
insmod usbcore
insmod pcipool
insmod usb-ohci
insmod usb-ohci-ep93xx
insmod scsi_mod
insmod sd_mod
insmod usb-storage
sleep 3
echo "Done"

and:

/usr/bin/loadUSB.sh
---------------
mount  /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/cf
mount -t devfs devfs /mnt/cf/dev
###chroot /mnt/cf /etc/init.d/rcS.USB
###exit
###chroot /mnt/cf
chroot /mnt/cf bash --login

But this appears to not run the init scripts. I need SSH and Apache (at 
minimum) running, but they are not. Furthermore, running 'ps aux' 
elicits 'Error, do this: mount -t proc none /proc'. If I do this, then 
ps (and top) runs okay. But why is this manual step necessary. I'm 
totally confused.

I have one goal:

Power-up the 7250 and have it start Debian Linux from a flash drive. 
This can be an automatic boot into Debian or done through scripts at 
TS-Linux; I don't care.

I want Apache and SSH to start automatically from /etc/init.d, and I 
want my application to start automatically from a script in /etc/init.d.

Currently I boot into Debian via NFS, and everything works. This is what 
I want to accomplish with a flash drive.

I've been told by TS that, contrary to the ARM-Linux TS72xx manual, it 
it impossible to boot directly to Debian on a USB drive. The manual is 
wrong.

Okay, so how do I start Debian with its full init.d scripts on a USB drive?

Is it possible to boot to Debian on a _CF_ drive? The manual say it is, 
but now I'm not sure. The manual says:

"On the TS-7200 modem, to load the root file system from the Compact 
Flash card, the following command should be used instead:
exec -c “console=ttyAM0,115200 ip=dhcp root=/dev/hda1”

Is this true? If I buy a CF card, format it for ext2, copy the correct 
ARM Debian image to it, then plug it into a CF reader connected to the 
USB port, will the 7250 boot into Debian at power-up?

Since the TS website says the Developer's Kit comes with ARM Debian and 
a USB CF reader, and the manual says the 72xx can boot into Debian, I'm 
thinking it must be true. But I'm not sure.

Sorry for my frustration. I've been fooling around with this for hours, 
and I need to get something running on a flash drive soon.

Thanks for any help.
-- 
Mike

Mike Dodd
Louisa County, VA USA

http://mdodd.com


------------------------------------

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