I was not able to find a file with that name. I am using linuxrc2
file that Technologic Systems Suggested to me. I am also looking into
another script.
Thanks,
Art
--- In "Dustin Oprea" <> wrote:
>
> You may not be looking at the right script. My fastboot script says:
>
> =======================================
> $ cat linuxrc-fastboot
> #!/bin/sh
> # Copyright (c) 2006, Technologic Systems.
> # All rights reserved.
> #
> # Uses initrd as root filesystem and drops to shell-- on exit of serial
> shell,
> # real Linux is booted. Ethernet is configured as 192.168.0.50 and
telnet
> # server is run. If a USB device is present, it is checked for the
presence
> # of an auto-update script "/tsinit", which is then run.
>
> mount -t proc proc /proc
>
> export CONSOLE=/dev/ttyAM0
> export
>
PATH=/bin:/mnt/root/bin:/mnt/root/sbin:/mnt/root/usr/bin:/mnt/root/usr/sb
> in:/mnt/root/usr/local/bin
> export BOOTTIME=`eptime`
> ifconfig eth0 192.168.0.50
> telnetd
> check-usb-update >/dev/null 2>&1 </dev/null &
>
> (
> export ENV=/shinit
> setcons
> exec /bin/sh -i
> ) <$CONSOLE >$CONSOLE 2>&1
>
> killall busybox
>
> insmod -q -f /sdcard.o dmaenable=1 >/dev/null 2>&1
> if [ -e /dev/sdcard0/disc0/part3 -a ! -e /mnt/root/bin/mount ]; then
> mount -o ro /dev/sdcard0/disc0/part3 /mnt/root >/dev/null 2>&1
> fi
>
> (...)
>
> =======================================
>
> You can see that here, Mount is passed "-o ro" to mount the SD media as
> read-only, which then either must be changed to "-o rw" or modified
with a
> subsequent call using "-o remount,rw".
>
> mount -o ro /dev/sdcard0/disc0/part3 /mnt/root >/dev/null 2>&1
>
>
> Dustin Oprea
>
>
>
> On 12/18/07, Art <> wrote:
> >
> > 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
> >
> >
> >
>
>
>
> --
>
> Dustin Oprea
>
> Software Engineer
> Intrepid Control Systems
> (1+) 248-726-0605
>
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/
|