- Prepare the required files
$ git clone https://github.com/96boards-hikey/tools-images-hikey960
$ cd tools-images-hikey960
$ rm config hikey_idt sec_uce_boot.img sec_usb_xloader.img sec_xloader.img
$ wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/config
$ wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/fip.bin
$ wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/hikey_idt
$ wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/l-loader.bin
$ wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/prm_ptable.img
$ wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/sec_uce_boot.img
$ wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/sec_usb_xloader.img
$ wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/sec_xloader.img
- Connect the HiKey960 and prepare for flash assuming the host machine already has adb and fastboot installed
a.On the Hikey960
ā¦Set switch 1 and 2 to on and 3 to off
ā¦Connect the uart to the host system and make sure it shows up as ttyUSB0 using dmesg command
ā¦Power on the HiKey960
ā¦Connect the usb-c otg to host system and make sure that shows up as ttyUSB1
b.On the Host machine open up a new terminal
$ sudo apt install picocom
$ picocom /dev/ttyUSB0 -b 115200
- Start the flash process make sure your main terminal in in the tools-images-hikey960 directory
$ chmod +x hikey_idt
$ sudo ./hikey_idt -c config -p /dev/ttyUSB1
- The picocom terminal would show an output like:
Press ESCAPE for boot options UfsExecScsiCmds() fails with Target Failure
UfsExecScsiCmds() fails with Target Failure
UfsExecScsiCmds() fails with Target Failure
UfsExecScsiCmds() fails with Target Failure
.
at this time you have upto 10 seconds to press āfā and enter Fastboot mode.
- Then on the host machine continue with the following commands
$ sudo fastboot flash ptable prm_ptable.img
$ sudo fastboot flash xloader sec_xloader.img
$ sudo fastboot flash fastboot l-loader.bin
$ sudo fastboot flash fip fip.bin
-
Set switch 1 to ON and 2 & 3 to OFF and reboot.
-
Done!
To enter UEFI Boot Options press the escape key at boot.
To enter Fastboot mode press āfā at boot.
Remember Android is not yet officially supported on uefi for Hikey960, this is only for openembedded builds.
You can now enter fastboot mode and flash boot and system images for the same.