ReferencePlatforms/mobile-imaging-android-tegra: Difference between revisions

m
update tegra download link
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://tegradeveloper.nvidia.com/tegra/downloads Tegra Android 2.2].  The PDF is helpful; you need the RUN file.
* 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 initialize.sh
Create an initialize_tegra.sh


  #!/bin/sh -e
  #!/bin/sh -e
   
   
  APK_LIST="SUTAgentAndroidBob24.apk Watcher23.apk FenCP24.apk FfxCP24.apk"
  APK_LIST="SUTAgentAndroidBob26.apk Watcher26.apk FenCP25.apk FfxCP25.apk"
  ACCEPTABLE_IPS="10.250.48.9 10.250.48.151 10.250.48.152 10.250.48.153 10.250.48.154"
  BASEPORT=42000
  SERVER_IP=10.250.48.9
   
  if [ $# -gt 0 ] ; then
  if [ $# -ne 1 ] ; then
     SERVER_IP=$1
     echo "Usage: $0 <tegra-xxx>"
else
     exit -1
     echo "Using default of bm-foopy."
  fi
  fi
  good_ip=0
  TEGRANAME=$1
  for ip in $ACCEPTABLE_IPS; do
    if [ $ip == $SERVER_IP ] ; then
  echo $TEGRANAME | grep '^tegra-[0-9][0-9][0-9]$' > /dev/null
        good_ip=1
  if [ $? -ne 0 ] ; then
        break
     echo "$1 is not a valid tegra name!"
    fi
done
  if [ $good_ip -lt 1 ] ; then
     echo "$SERVER_IP is not a whitelisted IP! Exiting"
     exit -1
     exit -1
  fi
  fi
  echo "Setting server IP to $SERVER_IP."
   
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*=\s*\).*$/\1$SERVER_IP/" > tmpfile
  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\s*=\s*\).*$/\1$SERVER_IP/" > tmpfile
  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 "Associated with $SERVER_IP."
  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
Confirmed users
1,364

edits