Linux on HiKey 960


Hi all,

is there any working pre-built Linux image (.img) available that I can load to the SD card of my HiKey 960? So, just plug and play as described in:


OP-TEE support on Hikey960

that is just a generic “template” instruction. there is linux os available that you can run but it is without graphics support so console through uart only

plus you need to have uefi woring and installed on your hikey 960:


Thanks! I was just watching your youtube channel :slight_smile:

Ok, UART should be fine. Any instructions on how to install Linux after checking out the files in the URL you indicated?




fastbooot command should work. just make sure you thoroughly read the uefi-build-from source doc.


Is it right?
I use Win32DiskImager tool to flash image onto SD Card(the image is boot-0.0+AUTOINC+7efa39f363-c906d2a849-r0-hikey960-20170630062530-71.uefi.img)
and could you tell me the Jumper/Dip Switch setting?on off off?
thank you very much?


Regarding the original query, as Sahaj said there is no support for install from SD on hikey960. I’ve put in a pull request to remove the misleading documents:


it means that i cannot instal Linux from linux,so how to install Linux on hikey960?thankyou


how to intall Linux on hikey960? did you succeed? hankyou

Now it's the Android system, how do you brush it into Linux?

you will need to compile and install the uefi bootloader from here:

then from the images here:

fastboot flash boot boot*.img
fastboot flash system rbp*.img


[wolfkin] wolfkin
July 4

it means that i cannot instal Linux from linux,so how to install Linux
on hikey960?

It’s done over USB (Linux PC as USB host, hikey as USB device) using

fastboot is linked to Android but is implemented by the bootloader
rather than by the Android userspace so it is available even after
switching to GNU/Linux.


Thanks Ric,

I see in the URL that there are several img files. For example,

Which one is the right one?



console as hdmi out is not supported yet


Hi Ric,

I was successful until point 3 of the UEFI guide

Setup Console

Install ser2net. Use telnet as the console since UEFI will output window that fails to display in minicom.
$sudo apt-get install ser2net

Configure ser2net.
$sudo vi /etc/ser2net.conf

Append one line for serial-over-USB in below.


2004:telnet:0:/dev/ttyUSB0:115200 8DATABITS NONE 1STOPBIT banner

Open the console.
$telnet localhost 2004

And you could open the console remotely, too.

So, now what should I do? I connect the board to the PC with the USB…

build_hikey_960$ telnet localhost 2004
Connected to localhost.
Escape character is ‘^]’.
Connection closed by foreign host.



you need to get the uart output from hikey 960, do you have a usb to uard bridge?
if not either get the uart mezzanine or a uart to usb module capable of 1.8v


hi sir:
which uart should i choose on the hikey960?


uart1 according to the 96boards spec which happens to be uart6 of hikey960.


tools-images-hikey960-master$ telnet localhost 2004
Connected to localhost.
Escape character is ‘^]’.

ser2net port 2004 device /dev/ttyUSB0 [115200 N81] (Debian GNU/Linux)

telnet> status
Connected to localhost.
Escape character is ‘^]’.

telnet> close
Connection closed.

is it right? please show me the right output after “telnet localhost 2004”


sudo ./hikey_idt -c config -p /dev/ttyUSB0
Config name: config
Port name: /dev/ttyUSB0
0: Image: ./sec_usb_xloader.img Downalod Address: 0x20000
1: Image: ./sec_uce_boot.img Downalod Address: 0x6a908000
2: Image: ./l-loader.bin Downalod Address: 0x1ac00000
Serial port open successfully!
Start downloading ./sec_usb_xloader.img@0x20000…
file total size 99584
downlaod address 0x20000

there was no response for a long time,so, now what should i do?
(the usb to uart is normal , when normal boot it has normal output on uart6)
thanks very much!


For my machine, I have to start ser2net manually first before running telnet.

> ser2net -u


did you succeed in burning l-loader.bin?