6 KiB
Your Build Choice
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 the following files
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
Build Folders (Binaries / Image)
- l-loader.bin (Download)
- fip.bin (Download)
- nvme.img (Download)
- ptable-aosp.img (4G Download / 8G Download)
- hisi-idt.py (Download)
- boot_fat.uefi.img (Download)
- cache.img.tar.xz (Download)
- userdata.img.xz (4G Download / 8G Download)
- system.img.tar.xz (Download)
Step 3: Install AOSP Using Fastboot with Linux host
This section show how to install the AOSP operating system to your HiKey using the fastboot method on a Linux host computer.
1 - 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
2 - 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
- 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
3 - Set HiKey into Recovery Mode using J15 header
- Remove link between pins 5 and 6
- Link pins 1 and 2
- Link pins 3 and 4
Name | Link | State |
---|---|---|
Auto Power up | Link 1-2 | closed |
Boot Select | Link 3-4 | closed |
GPIO3-1 | Link 5-6 | open |
4 - 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-aosp-8g.img
$ sudo fastboot reboot
$ sudo fastboot flash boot boot_fat.uefi.img
$ sudo fastboot flash cache cache.img
$ sudo fastboot flash system system.img
$ sudo fastboot flash userdata userdata-8gb.img
5 - 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 3-4 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!