[aadk-commits] dbailey: uClinux/trunk r98 -
/uClinux/trunk/uClinux-dist/vendors/Digium/S800I/
aadk-commits at lists.digium.com
aadk-commits at lists.digium.com
Wed Dec 27 14:30:30 MST 2006
Author: dbailey
Date: Wed Dec 27 15:30:29 2006
New Revision: 98
URL: http://svn.digium.com/view/aadk?view=rev&rev=98
Log:
Change rc to load config switch and watchdog devices. Give config swx a /dev node
Modified:
uClinux/trunk/uClinux-dist/vendors/Digium/S800I/device_table.txt
uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc
Modified: uClinux/trunk/uClinux-dist/vendors/Digium/S800I/device_table.txt
URL: http://svn.digium.com/view/aadk/uClinux/trunk/uClinux-dist/vendors/Digium/S800I/device_table.txt?view=diff&rev=98&r1=97&r2=98
==============================================================================
--- uClinux/trunk/uClinux-dist/vendors/Digium/S800I/device_table.txt (original)
+++ uClinux/trunk/uClinux-dist/vendors/Digium/S800I/device_table.txt Wed Dec 27 15:30:29 2006
@@ -202,3 +202,4 @@
/dev/mmc b 660 0 0 36 0 0 0 -
/dev/mmc b 660 0 0 36 1 1 1 4
+/dev/zap/cfgswx c 640 0 0 196 240 0 0 -
Modified: uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc
URL: http://svn.digium.com/view/aadk/uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc?view=diff&rev=98&r1=97&r2=98
==============================================================================
--- uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc (original)
+++ uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc Wed Dec 27 15:30:29 2006
@@ -1,9 +1,3 @@
-mount -t proc none /proc
-
-echo "Settup up ramfs..."
-mount -t ramfs none /ramfs
-( cd / ; gzip -dc ramfs.tgz | tar xf - -C ramfs/ )
-
echo -n "Reading config..."
if restore_config; then
echo "Done!"
@@ -15,10 +9,25 @@
export PS1="[\\u@\\h \\w]\$ "
hostname ${HOSTNAME}
+mount -t proc none /proc
dhcpcd &
modprobe bfin_cf_pcmcia
modprobe orinoco_cs
modprobe ide-cs
+modprobe blackfin_wd
+modprobe sx00i_cfgswx
+
+CFGSWX=`cat /proc/cfgswx | grep CFGSWX=1`
+if [ "$CFGSWX" = "CFGSWX=1" ]; then
+ sleep 1
+ CFGSWX=`cat /proc/cfgswx | grep CFGSWX=1`
+ if [ "$CFGSWX" = "CFGSWX=1" ]; then
+ echo "CONFIGURATION RESET Requested"
+ reset_config
+ fi
+fi
+echo "Done checking for Configuration Reset"
+
echo -n "Looking for IP address..."
for i in `seq 20 -1 0`; do
More information about the aadk-commits
mailing list