QA SoftVision Team/Mobile/Pandaboard setup

From MozillaWiki
Jump to navigation Jump to search

Information

  • This is a basic guide to setting up the pandaboard in order to access it for automation.

Android build installation

  • TODO: Add a guide for this - will be completed later

Board setup

  • Plug in the SD Card in the SD Card slot
  • Connect the USB mouse to the 1st (lowest) USB port
  • Connect the HDMI/HDMI adapter cable to the first HDMI port and the monitor to it
  • Connect the internet cable to the internet port
  • Connect the Power Adapter cable
  • Connect the mini-USB cable

Android settings

  • Turn ON developer mode from the Settings menu - Development subsection
  • Turn ON the "Always On" option in the Settings menu - Development subsection
  • Set the display turn off option to the maximum from the Settings menu - Display timeout
  • Allow the installment of apps from unknown sources

ADB settings

  • This section will help you set up your PC to access the pandaboard via the ADB interface
  • Step 1 - Enter sudo mode for the Terminal
$ sudo su
  <psswd>
  • Step 2 - Check if you have the .android folder created if not set it up now
$ mkdir ~/.android
  • Step 3 - If the folder was not created you also have to create the adb_usb.ini file
$ vi ~/.android/adb_usb.ini
  • Step 4 - Add the device code to the adb_usb.ini configuration file so that adb will know the device
$ echo "0x0451" > ~/.android/adb_usb.ini
  • Step 5 - Make sure the code was added
$ cat /root/.android/adb_usb.ini
  0x0451
  • Step 6 - Restart the adb server
adb kill-server
adb start-server
  • Step 7 - Verify the device can be accessed
adb devices
  • If an identification number is displayed and you don't get a "no permissions" message the device is available
  • You can also add settings in the /etc/udev/rules.d/51-android.rules file (Note: sudo permissions are required to save the file - just run gedit in sudo when opening the file for edit)
Add the following line to the file replacing username with actual username:
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d102", MODE="0666", OWNER="<username>"