I'm trying to setup a system to boot quickly. I only need to run the
CAN driver and my application plus Apache or some other web server. I
do need to edit files on the SD card partition 3. In fastboot that
file system is readonly and I need it to be RW. I can't seem to find
where I change that in the fastboot script. Once I make the
filesystem RW I will then load the drivers and software in the initrc2
Script. So far I have not been able to load things from the script.
The modified scrip. Below.
#!/bin/sh
export BOOTTIME=`eptime`
startfpga "$@" &
/etc/init.d/ArcosServer
/etc/init.d/apache start
if jp 2; then
jp2=1
if jp 4; then
CONSOLE=/dev/ttyAM1
else
CONSOLE=/dev/ttyAM0
fi
else
CONSOLE=/dev/null
fi
export
PATH=/bin:/mnt/root/bin:/mnt/root/sbin:/mnt/root/usr/bin:/mnt/root/usr/sbin
if [ "$1" = "fastboot" ]; then
(
export ENV=/serial-shinit
if [ "$jp2" -eq "1" ]; then
/bin/sh -i
rm -f /serialsh.pid >/dev/null 2>&1
if [ -e /vidsh.pid ]; then
kill -1 `cat /vidsh.pid`
>/vidsh-aborted
else
>/vidsh-userexited
fi
fi
) <$CONSOLE >$CONSOLE 2>&1
wait
echo
else
wait
fi
if [ "$CONSOLE" = "/dev/null" -o -e /vidsh-userexited ]; then
CONSOLE="/dev/vc/0"
fi
export CONSOLE
(
stty -F $CONSOLE ospeed 115200 >/dev/null 2>&1
echo ">> Booting Linux ..."
) >$CONSOLE
pivot_root . initrd
/bin/mount -n --move initrd/dev /dev
/bin/mount -n --move initrd/proc /proc
exec /usr/sbin/chroot . /bin/sh <<- EOF
exec /sbin/init
EOF
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/
|