Linux on HiKey 960


#1

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:

https://github.com/96boards/documentation/blob/master/ConsumerEdition/HiKey960/Installation/WindowsSD.md

Thanks!


OP-TEE support on Hikey960
#2

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
http://builds.96boards.org/snapshots/reference-platform/openembedded/morty/hikey960/rpb/latest/

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


#3

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


#4

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


#5

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?


#6

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


#7

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


#8

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


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

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


#10

[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.


#11

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


#12

console as hdmi out is not supported yet


#13

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!


#14

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


#15

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


#16

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


#17

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”


#18

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!


#19

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

> ser2net -u


#20

did you succeed in burning l-loader.bin?