Linux on 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?

Thanks.

Regards

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: https://github.com/96boards/documentation/pull/83

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

you will need to compile and install the uefi bootloader from here: https://github.com/96boards-hikey/tools-images-hikey960/blob/master/build-from-source/README-ATF-UEFI-build-from-source.md

then from the images here: http://builds.96boards.org/snapshots/reference-platform/openembedded/morty/hikey960/rpb/latest/

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

[wolfkin] wolfkin http://discuss.96boards.org/u/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.

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,
rpb-console*.img
rpb-desktop*.img
rpb-desktop-image-lava

Which one is the right one?

Thanks

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.

#ser2net.conf

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
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connection closed by foreign host.

Thanks!

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
Trying 127.0.0.1…
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?

yes

verify your device node (/dev/ttyUSBx)

there are 2 usb connections from the board to your pc:
1 for serial/telnet console (usually /dev/ttyUSB0)
1 for ‘data’ - microUSB type C (usually /dev/ttyUSB1, used in hikey_idt command)

you’re using /dev/ttyUSB0 for both
they should not be the same

1 Like

okay so your uart is at ttyUSB0, nect connect the usb c of the hikey 960 to the host system, it should show up as /dev/ttyUSB1 in demsg. then sudo ./hikey_idt -c config -p /dev/ttyUSB1