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/
linuxrc
Description: Binary data
|