ts-7000
[Top] [All Lists]

[ts-7000] TS-7300 fastboot loading drivers and application

To:
Subject: [ts-7000] TS-7300 fastboot loading drivers and application
From: "Art" <>
Date: Tue, 18 Dec 2007 22:34:39 -0000
I have 7300 board setup to fastboot.  I want it to run some init.d
scripts when it starts up..  I have changed the linuxrc2 script but it
doesn't seem to be doing what I expect.

#!/bin/sh
export BOOTTIME=`eptime`

startfpga "$@" &
echo "linuxrc2"

if jp 2; then
  jp2=1
  if jp 4; then
    CONSOLE=/dev/ttyAM1
  else
    CONSOLE=/dev/ttyAM0  
  fi 
else
  CONSOLE=/dev/null 
fi 

        mount -o remount,rw /dev/sdcard0/disk0/part3 /mnt/root
        /etc/init.d/ArcosServer
        /etc/init.d/network start
        /etc/init.d/inetd start
        /etc/init.d/thttp start

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