Installation

Revision 15 as of 2012-11-05 18:57:08

Clear message

Setting up your Nexus 7

What you will need

  • Nexus 7 Tablet (8GB, 16GB, or 32GB)
  • Standard MicroUSB Cable (should come with the device)
  • Ubuntu Nexus 7 Desktop Installer installed on your development system
  • Ubuntu 12.04 LTS or Later
  • Warning /!\ This is a developer preview image, not intended for general users. Warning /!\

Optional

  • Micro USB Host Cable (OTG Cable) - used for attaching keyboard, mouse, etc. Directions on how to get and use one of these are towards the bottom of this page.

Ubuntu Nexus 7 Desktop Installer

A simple graphical installer has been provided, and is available in a PPA.

sudo add-apt-repository ppa:ubuntu-nexus7/ubuntu-nexus7-installer
sudo apt-get update
sudo apt-get install ubuntu-nexus7-installer

Usage instructions for the installer are provided below.

Unlocking the Nexus 7

The Nexus 7 ships with a locked bootloader. You must unlock it in order to flash different images to the device. Fortunately, this is a trivial process, and you only need to do it once.

Warning /!\ Warning: Unlocking the bootloader erases all data and resets the device to factory defaults. Warning /!\

  1. Reboot the Android device into the Android boot loader. To do this, first power down the device in the normal fashion (hold down the power button, then select power off and wait a few seconds). From the off state, hold the volume down button and press the power button. Continue holding the volume down and power buttons until you see the boot loader UI.
  2. Plug in the device to your laptop with your micro-usb cable The device now displays the boot loader GUI, which looks like this:

bootloader.png

  1. Verify fastboot lists the device. In a terminal on your laptop, run:

    $ sudo fastboot devices
    1234567891234567        fastboot
  2. Start the bootloader unlock process:
    sudo fastboot oem unlock
  3. You are prompted on screen to unlock the bootloader on the Android device screen. Follow the on-screen directions to continue. Your screen should now look like this:

unl.jpg

Complete the process by rebooting:

  • sudo fastboot reboot-bootloader

Or simply press the power button.

When the device reboots back into the bootloader (fastboot mode), you should see "LOCK STATE - UNLOCKED" in small red print. At this point your device is now unlocked.

Installing Ubuntu on Nexus 7

Once all setup has been completed, the installation can start. To install, ensure the Nexus 7 is in fastboot mode, plug it into your computer (and make sure NO OTHER DEVICES are plugged in).

Find the installer in the dash (search for 'nexus'): dash3.png

This will provide a Graphical Interface for installing Ubuntu. This tool will download the latest image automatically, and flash it accordingly. The flashing step should take about 2 minutes. Once the flashing is complete, the device will reboot and finish the installation. This step can take 10-15 minutes.

Returning your Nexus 7 to Stock Android

Warning /!\ Warning: Disconnect ALL other mobile devices connected from your computer or they might get erased too. This will erase ALL DATA on your Nexus 7. Warning /!\

In case anything happens while developing, the system image for Nexus 7 can be found here: https://dl.google.com/dl/android/aosp/nakasi-jro03d-factory-e102ba72.tgz

Please also check for updated Nexus7 (nakasi) factory images as well.

After downloading the above tarball, uncompress it with the following:

tar zxvf nakasi-jro03d-factory-e102ba72.tgz

Then, place your machine into fastboot mode and run the resulting script:

cd nakasi-jro03d/
sudo ./flash-all.sh

You may get the following warnings, which you can ignore, the restoration will continue anyway.

archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'

Troubleshooting the Install

If you have problems installing the image, please use the following troubleshooting steps:

  1. Detach the USB cable, restart the tablet back into fastboot mode, and re-attach the USB cable.
  2. If problems persist, reboot your host PC.
  3. If you still have issues, try a different USB cable.
  4. If you have a 16G tablet, try using the 8G image.
  5. If you still have issues after doing all this, return the image to stock using the directions above and re-try.
  6. If none of that works, ask a question on Ask Ubuntu using the mobile tag, or ask for help in the #ubuntu-arm channel on freenode. If you believe it's a bug, file a bug against ubuntu-nexus7 in Launchpad.