Installation

Differences between revisions 19 and 20
Revision 19 as of 2012-11-29 02:13:25
Size: 6818
Editor: pool-108-49-156-165
Comment: Adding instructions for manually flashing the Nexus7 to 13.04
Revision 20 as of 2012-12-07 15:07:35
Size: 6904
Editor: pool-108-49-156-165
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:

''' Please note as of 12/7/2012 we strongly urge users to push to Raring 13.04 '''

This project is no longer maintained. You might be interested in Ubuntu Touch though.

Setting up your Nexus 7

Please note as of 12/7/2012 we strongly urge users to push to Raring 13.04

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

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 12.10 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.

Installing Ubuntu 13.04 on Nexus 7

The following instructions are for manually installing Ubuntu 13.04 on the Nexus 7. Please refer to the Known Issues Page prior to flashing.

Be sure to have the ubuntu-nexus7-installer package installed so that all of the necessary prerequistes are pulled on your system.

  1. Download the Raring daily build (boot.img & img.gz) from: http://cdimage.ubuntu.com/daily-preinstalled/current/

  2. gunzip the img.gz
  3. Attach the nexus in flash mode
  4. Verify that the Nexus7 is identified properly via fastboot
  5. Issue the following:

$sudo fastboot erase boot

erasing 'boot'...
OKAY [  0.027s]
finished. total time: 0.027s


$sudo fastboot erase userdata

erasing 'userdata'...
OKAY [  1.077s]
finished. total time: 1.077s


$sudo fastboot flash boot /path/to/*.bootimg

sending 'boot' (8192 KB)...
OKAY [  1.055s]
writing 'boot'...
OKAY [  0.280s]
finished. total time: 1.336s


$sudo fastboot flash userdata /path/to/unzipped/*.img

sending 'userdata' (679937 KB)...
OKAY [ 87.024s]
writing 'userdata'...
OKAY [ 30.850s]
finished. total time: 117.875s


$sudo fastboot reboot

rebooting...

finished. total time: 0.020s

* The tablet will now reboot and boot into the Ubuntu installer.

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'

Then you may lock the device again after another reboot into the fastboot mode:

sudo fastboot oem lock

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.

Nexus7/Installation (last edited 2013-06-30 07:18:10 by 203-219-215-14)