ts-7000
[Top] [All Lists]

[ts-7000] TS-7300 Writing to the SD card in Fastboot.

To:
Subject: [ts-7000] TS-7300 Writing to the SD card in Fastboot.
From: "Art" <>
Date: Tue, 18 Dec 2007 19:42:11 -0000
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/
 

<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