ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: ts 7400 as wifi acess point

To:
Subject: Re: [ts-7000] Re: ts 7400 as wifi acess point
From: Petr Ledvina <>
Date: Mon, 2 Mar 2009 13:26:36 +0100
As i understand it, when you use flashboot, first kernel and initrd is
loaded from onboard flash. Then root is changed to SD card ind init is
run from sdcard.
You can probably use bootload to run another kernel (and initrd),
located somewhere on sdcard. But default linuxrc-sdroot does not do
this..

linuxrc from sdboot does this:

mount -t proc proc /proc

insmod -q -f /sdcard.o -o sdcard0 dmaenable=0
if [ -e /dev/sdcard0/disc0/part3 ]; then
        mount -o ro /dev/sdcard0/disc0/part3 /mnt/root
fi
export CONSOLE=/dev/ttyAM0
stty -F $CONSOLE ospeed 115200 >/dev/null 2>&1
setcons  <$CONSOLE >$CONSOLE 2>&1

if test -e /mnt/root/boot/vmlinux.bin; then
# bootload path
        echo ">> Loading vmlinux.bin..." > $CONSOLE
        (
                mount -o remount,ro /dev/rd/0 /
                insmod -q -f bootloader
                KCMD="root=/dev/ram0 init=/stage2 console=null loops=499712"
                bootload -c "$KCMD" -r /dev/rd/0 -s 0x100000
/mnt/root/boot/vmlinux.bin
        ) >/dev/null 2>&1
fi

# boot path using running kernel
echo ">> Booting Linux..." > $CONSOLE
cd /mnt/root
pivot_root . initrd
bin/mount -n --move initrd/dev dev
bin/mount -n --move initrd/proc proc
exec usr/sbin/chroot . sbin/init <.$CONSOLE >.$CONSOLE 2>&1

(stripped down version, no fastboot check etc. . Full version is attached)

So you can try to adapt this script to your needs ...

Petr

On Mon, Mar 2, 2009 at 12:46, Börje Granberg <> wrote:
> Is the only way to boot a kernel stored on a SD-card to boot using
> your third option, sdboot, and not the first option?
>
> //Börje
>


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

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/

Attachment: linuxrc
Description: Binary data

<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