Hello,
I inherited a 7250 technologic board (not sure of the extent of any already
made modification, but looks to be as if just purchased). I have some plans
for it but I want to first get it to boot off a thumb drive so I will have the
full debian Linux and compile capabilities on the 7250 device. I have been
going over documentation I found on the web, but I am not stuck and seeking
some help. Libraries and other strange issues seem to be causing some
problems. Like just running a file on the usb drive I get:
$ ./ftpwho
./ftpwho: error while loading shared libraries: libpam.so.0: cannot open shared
object file: No such file or directory
Also when I compile helloworld.c on the 7250 it just seems to hang there,
nothing happens. i then just have to break out of it.
I just want to get to the point where the system uses the debian OS loaded on
the usb drive for compiling and running apache and the like. Here are the
steps I have done so far.
I have followed the direction below I found on the technologic web site:
5. How do I create my own Compact Flash / SD card / USB flash drive with Debian
Linux and the full ARM tool chain?
Creating the toolchain and Debian Linux on flash media consists of the
following steps:
1. Preparing the flash media
1. make sure the media contains a single partition of type 83 (Linux)
2. format the partition using mke2fs
2. Obtaining the Debian tarball
1. On the CD it is in
/distributions/debian-sarge-256MB-05-01-2006.tar.bz
2. Or, download from
ftp://ftp.embeddedarm.com/ts-arm-linux-cd/distributions/debian-sarge-256MB-05-01-2006.tar.bz2
3. Unpacking the tarball onto the flash media.
1. mount the partition created in step 1
2. cd to the mount point
3. untar ('tar -xjf') the debian tarball
4. cd away from the mount point, unmount the partition, and wait for
the filesystem to finish flushing any remaining data to the flash media
so I have it extracted:
$ ls -l
drwxr-xr-x 1 root root 2048 May 2 2006 bin
drwxr-xr-x 1 root root 2048 May 2 2006 boot
-rw-r--r-- 1 root root 67389711 Sep 27 03:11
debian-sarge-256MB-05-01-2006.tar.bz2
drwxr-xr-x 1 root root 2048 May 2 2006 dev
drwxr-xr-x 1 root root 2048 May 2 2006 etc
drwxr-xr-x 1 root root 2048 May 2 2006 home
drwxr-xr-x 1 root root 2048 May 2 2006 initrd
drwxr-xr-x 1 root root 2048 May 2 2006 lib
drwx------ 1 root root 2048 May 2 2006 lost+found
drwxr-xr-x 1 root root 2048 May 2 2006 mnt
drwxr-xr-x 1 root root 2048 May 2 2006 nfsroot
drwxr-xr-x 1 root root 2048 May 2 2006 opt
dr-xr-xr-x 1 root root 2048 May 2 2006 proc
drwxr-xr-x 1 root root 2048 May 2 2006 root
drwxr-xr-x 1 root root 2048 May 2 2006 sbin
drwxr-xr-x 1 root root 2048 May 2 2006 sys
drwxr-xr-x 1 root root 2048 May 2 2006 tmp
drwxr-xr-x 1 root root 2048 May 2 2006 usr
I used the loadUSBModules to load the drivers for the usb drive:
$ more loadUSBModules.sh
insmod usbcore
insmod pcipool
insmod usb-ohci
insmod usb-ohci-ep93xx
insmod scsi_mod
insmod sd_mod
insmod usb-storage;
then I ran the loadUSB to mount and change the root path (which I thought would
have updated the file path from the ram load to the usb drive):
$ more 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
for I in /proc/[0-9]*; do
ls -al $I/root;
done | grep '/mnt/cf' | cut -d'/' -f3 | xargs kill -9
umount /mnt/cf/proc/bus/usb /mnt/cf/dev/pts /mnt/cf/proc /mnt/cf/dev /mnt/cf
That was all based on what I read in another document:
Note
Drivers are available in the TS-Linux distribution to support USB flash drives.
One
can load Debian OS with two scripts provided by the on-board flash TS-Linux file
system. First, invoke /usr/bin/loadUSBModules.sh, then run the script
/usr/bin/loadUSB.sh to chroot into the Debian OS.
my RedBoot config is as follows:
RedBoot> fconfig -l
Run script at boot: true
Boot script:
.. fis load vmlinux
.. exec -c "console=ttyAM0,115200 root=/dev/mtdblock1
Using static partition definition
Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x00020000 : "TS-BOOTROM"
0x00020000-0x07d20000 : "Linux"
0x07d20000-0x08000000 : "RedBoot"
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
(reserved) 0x60000000 0x60000000 0x07D20000 0x00000000
RedBoot 0x67D20000 0x67D20000 0x00040000 0x00000000
vmlinux 0x67D80000 0x00218000 0x00160000 0x00218000
FIS directory 0x67FE0000 0x67FE0000 0x00003000 0x00000000
RedBoot config 0x67FFF000 0x67FFF000 0x00001000 0x00000000
Now I am not sure if I need to change the root=.... to
/dev/scsi/host0/bus0/target0/lun0/part1 as it is mounted in the loadusb.sh
script.
Any help would be greatly appreciated.
------------------------------------
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/
|