Confirmed users
1,364
edits
m (update tegra download link) |
|||
(9 intermediate revisions by one other user not shown) | |||
Line 17: | Line 17: | ||
** I extracted this into <tt>~/android-tegra/android-sdk-linux_86</tt> | ** I extracted this into <tt>~/android-tegra/android-sdk-linux_86</tt> | ||
** run tools/android and install the Android Repository -> SDK Platform Android 2.2 and Android Repository -> Android SDK Platform-tools | ** run tools/android and install the Android Repository -> SDK Platform Android 2.2 and Android Repository -> Android SDK Platform-tools | ||
* Download the [http:// | * Download the [http://developer.nvidia.com/node/19086 Tegra Android 2.2]. The PDF is helpful; you need the RUN file. | ||
** I installed this into <tt>~/android-tegra/tegra_froyo_20101105</tt> | ** I installed this into <tt>~/android-tegra/tegra_froyo_20101105</tt> | ||
* sudo yum install telnet wget | * sudo yum install telnet wget | ||
Line 41: | Line 41: | ||
chmod 4755 reboot | chmod 4755 reboot | ||
Create an | Create an initialize_tegra.sh | ||
#!/bin/sh -e | #!/bin/sh -e | ||
APK_LIST=" | APK_LIST="SUTAgentAndroidBob26.apk Watcher26.apk FenCP25.apk FfxCP25.apk" | ||
BASEPORT=42000 | |||
if [ $# - | if [ $# -ne 1 ] ; then | ||
echo "Usage: $0 <tegra-xxx>" | |||
exit -1 | |||
fi | fi | ||
TEGRANAME=$1 | |||
echo $TEGRANAME | grep '^tegra-[0-9][0-9][0-9]$' > /dev/null | |||
if [ $? -ne 0 ] ; then | |||
echo "$1 is not a valid tegra name!" | |||
if [ $ | |||
echo "$ | |||
exit -1 | exit -1 | ||
fi | fi | ||
echo " | |||
TEGRANUM=`echo $TEGRANAME | sed -e s/tegra-//` | |||
PORT=`expr 42000 + $TEGRANUM` | |||
if [ $TEGRANUM -gt 10 -a $TEGRANUM -le 30 ] ; then | |||
SUTSERVER="10.250.48.151" | |||
elif [ $TEGRANUM -gt 30 -a $TEGRANUM -le 50 ] ; then | |||
SUTSERVER="10.250.48.152" | |||
elif [ $TEGRANUM -gt 50 -a $TEGRANUM -le 70 ] ; then | |||
SUTSERVER="10.250.48.153" | |||
elif [ $TEGRANUM -gt 70 -a $TEGRANUM -le 90 ] ; then | |||
SUTSERVER="10.250.48.154" | |||
else | |||
SUTSERVER="10.250.48.9" | |||
fi | |||
echo "Associating $TEGRANAME with Server $SUTSERVER Port $PORT" | |||
cd ../SUT | cd ../SUT | ||
Line 74: | Line 85: | ||
done | done | ||
adb push tegra_gainroot.sh /sdcard/tegra_gainroot.sh | adb push tegra_gainroot.sh /sdcard/tegra_gainroot.sh | ||
cat SUTAgent.ini.tmpl | sed -e "s/\(IPAddr\s*= | cat SUTAgent.ini.tmpl | sed -e "s/\(IPAddr *= *\).*$/\1$SUTSERVER/" | sed -e "s/\(PORT *= *\).*$/\1$PORT/" > tmpfile | ||
adb push tmpfile /data/data/com.mozilla.SUTAgentAndroid/files/SUTAgent.ini | adb push tmpfile /data/data/com.mozilla.SUTAgentAndroid/files/SUTAgent.ini | ||
adb shell chmod 777 /data/data/com.mozilla.SUTAgentAndroid/files | adb shell chmod 777 /data/data/com.mozilla.SUTAgentAndroid/files | ||
cat watcher.ini.tmpl | sed -e "s/\(PingTarget | cat watcher.ini.tmpl | sed -e "s/\(PingTarget *= *\).*$/\1$SUTSERVER/" > tmpfile | ||
adb push tmpfile /data/data/com.mozilla.watcher/files/watcher.ini | adb push tmpfile /data/data/com.mozilla.watcher/files/watcher.ini | ||
adb shell chmod 777 /data/data/com.mozilla.watcher/files | adb shell chmod 777 /data/data/com.mozilla.watcher/files | ||
Line 83: | Line 94: | ||
adb shell am start -a android.settings.APPLICATION_SETTINGS | adb shell am start -a android.settings.APPLICATION_SETTINGS | ||
adb shell mkdir /mnt/sdcard/tests | adb shell mkdir /mnt/sdcard/tests | ||
## HDMI | |||
#adb shell setprop persist.tegra.dpy5.mode.width 1680 | |||
#adb shell setprop persist.tegra.dpy5.mode.height 1050 | |||
# VGA/CRT | |||
#adb shell setprop persist.tegra.dpy3.mode.width 1680 | |||
#adb shell setprop persist.tegra.dpy3.mode.height 1050 | |||
rm tmpfile | rm tmpfile | ||
echo " | echo "##########" | ||
echo "$TEGRANAME associated with server $SUTSERVER Port $PORT" | |||
echo "Set Development -> Stay Awake on the tegra," | |||
Create an SUTAgent.ini.tmpl | Create an SUTAgent.ini.tmpl |