documentation/Reference-Platform/PreviousReleases/RPB_16.03/ConsumerEdition/HiKey/InstallDebianRPB-16.03.md
2016-06-01 16:18:07 -07:00

4.7 KiB


Step 1: Read about the Fastboot Method

Fastboot is supported by the board and can be used for installs. This is for advanced users who are most likely modifying/customizing source code and will need to download such updates to the board for test/execution.

This method requires the following hardware:

  • HiKey with power supply
  • Host machine (Linux, Mac OS X, or Windows)
  • USB to microUSB cable
  • USB Mouse and/or keyboard (not required to perform flash)
  • HDMI Monitor with full size HDMI cable (not required to perform flash)

Step 2: Download Debian partition table

Note: Some files have 4G and 8G options, download file which best matches your HiKey board.

  • All HiKey CircuitCo boards will use the 4G files
  • All HiKey LeMaker 1G boards will use the 4G files
  • All HiKey LeMaker 2G boards will use the 8G files

ptable-linux.img (4G Download / 8G Download)


Step 3: Download Boot image and Root File System


Step 4: Install Debian Using Fastboot with Linux host

This section show how to install the Linaro based Debian operating system to your HiKey using the fastboot method on a Linux host computer.

Make sure fastboot is set up on host computer

  • Android SDK “Tools only” for Linux can be downloaded here
  • The Linux “Tools Only” SDK download does not come with fastboot, you will need to use the Android SDK Manager to install platform-tools.
  • To do this follow the “SDK Readme.txt” instructions included in your SDK “Tools Only” download.

If you are still having trouble setting up fastboot, click here for a short tutorial video

Boot HiKey into Fastboot mode using J15 header

  • Link pins 1 and 2
  • Link pins 5 and 6
  • Connect host computer to HiKey board using USB to microUSB cable
Name Link State
Auto Power up Link 1-2 closed
Boot Select Link 3-4 open
GPIO3-1 Link 5-6 closed
  • Power on HiKey board by plugging in power adapter
  • Esure HiKey is detected by host computere
  • Wait for about 10 seconds
  • Open Terminal application and execute the following:
$ sudo fastboot devices
0123456789abcdef fastboot

Note: If your HiKey is not being detected by fastboot, you might want to try Board Recovery and return to this step once your board is ready

Install Operating System update using downloaded files

NOTE: the ptable must be flashed first. Wait for a few seconds after the reboot command to allow the bootloader to restart using the new partition table.

$ sudo fastboot flash ptable <ptable_FILE_NAME>.img
$ sudo fastboot reboot
$ sudo fastboot flash boot <boot_FILE_NAME>.uefi.img
$ sudo fastboot flash system hikey-jessie_alip_2015MMDD-nnn-Xg.emmc.img

Reboot HiKey into new OS

  • Wait untill all files have been flashed onto HiKey board
  • Power down HiKey by unplugging the power adapter
  • Remove microUSB cable from HiKey
  • Remove Link 5-6 from J15 header
Name Link State
Auto Power up Link 1-2 closed
Boot Select Link 3-4 open
GPIO3-1 Link 5-6 open
  • Plug mouse/keyboard USB into type A USB ports
  • Power up HiKey by plugging in power adapter

Note: the username and password are both “linaro” when the login information is requested.

Congratulations! You are now booting your newly installed OS directly from eMMC on the HiKey!