Permalink
Browse files

Fixed FCC test sw to actually be useful

Now run fcctest.sh after booting a --fcc image
Allows for running Wifi and Bluetooth single freq transmit tests
  • Loading branch information...
1 parent a791c4b commit 3af221d75942bf3e4f38f121407a3edcb1bba596 mgrundy committed Nov 23, 2010
Showing with 33 additions and 16 deletions.
  1. BIN fcc/ramdisk.gz
  2. BIN fcc/uImage
  3. +33 −16 sdbuild
View
BIN fcc/ramdisk.gz
Binary file not shown.
View
BIN fcc/uImage
Binary file not shown.
View
49 sdbuild
@@ -190,33 +190,50 @@ while [ $# -gt 0 ]; do
help
exit -1
else
+ echo
echo $1 is not a valid option. Try one of these instead:
+ echo
help
exit
fi
shift
done
-while [ 1 ]; do
+if [ "$devname" == "" ]; then
+ echo
+ echo "you must specify a device with the -d option"
+ echo
+ help
+ exit -1
+fi
+if [[ $EUID -ne 0 ]]; then
+ echo
+ echo "You need superuser privs to do anything constructive, sudo please"
+ echo
+ help
+ exit 1
+fi
- if [ "$buildtype" == "vtest" ]; then
- if [ "$fixid" == "" ]; then
- echo You have to specify -n with -v
- help
- exit
- fi
- volid=TESTRIG${fixid}
- elif [ "$buildtype" == "mtest" ]; then
- volid=MEMTEST
- elif [ "$buildtype" == "flash" ]; then
- volid=FLASH-${memtype}
- elif [ "$buildtype" == "fcc" ]; then
- volid=FCCTEST
- else
- echo Internal Error, sorry
+if [ "$buildtype" == "vtest" ]; then
+ if [ "$fixid" == "" ]; then
+ echo You have to specify -n with -v
+ help
exit
fi
+ volid=TESTRIG${fixid}
+elif [ "$buildtype" == "mtest" ]; then
+ volid=MEMTEST
+elif [ "$buildtype" == "flash" ]; then
+ volid=FLASH-${memtype}
+elif [ "$buildtype" == "fcc" ]; then
+ volid=FCCTEST
+else
+ echo Internal Error, sorry
+ exit
+fi
+
+while [ 1 ]; do
echo partitioning and formatting card
mkcard $devname $volid

0 comments on commit 3af221d

Please sign in to comment.