ts-7000
[Top] [All Lists]

[ts-7000] ts-7260, stock kernel, initrd and usb boot

To:
Subject: [ts-7000] ts-7260, stock kernel, initrd and usb boot
From: "dokapra" <>
Date: Wed, 05 Dec 2007 09:56:30 -0000
Hi
I am trying to get ts-7260 to boot from usb stick.
Idea is to use bootloader to start new linux kernel with initrd, which
is supposed to load all needed drivers, and start new sbin/init.
So far so good.
I used ts7260-sdcard-initrd-1.03.gz as a starting point.
I changed linuxrc a bit, added loading of modules, and expected that a
debian copied on a stick should work right away.
Nope.
All modules gets loaded ok, mounting of usb stick is ok, pivot_root
and stuff ok, and finally when chroot whith exec /sbin/init I get to
see the same message as when I type init on command line - help message.
This means that /sbin/init gets started, but not as a root process. 
Init stuff is picky one - they require to run as a PID 1, otherwise
they assume that you allready have some other init handling your
processes.
What I do not understand in this story is why init is not started as No 1?
Has anybody any experience with this?
Thanx

PS

My initrd looks like this:

busybox insmod tsuart0.o
busybox insmod tsuart7260.o
busybox insmod  tsuart-bat3.o

busybox insmod usbcore.o
busybox insmod pcipool.o
busybox insmod usb-ohci.o
busybox insmod usb-ohci-ep93xx.o
busybox insmod scsi_mod.o
busybox insmod sd_mod.o
busybox insmod usb-storage.o
busybox insmod loop.o

busybox mount -t proc none /proc

busybox sleep 5
busybox mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/root

export CONSOLE=/dev/ttyAM1
cd  /mnt/root
pivot_root . initrd
./bin/mount  -n --move initrd/dev dev
./bin/mount -n --move initrd/proc proc
./bin/mount -n --move initrd/mnt/root usb

exec ./sbin/chroot . /sbin/init <.$CONSOLE >.$CONSOLE 2>&1





 
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>
  • [ts-7000] ts-7260, stock kernel, initrd and usb boot, dokapra <=
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