0%

HiSilicon Hikey 970 - Shunya Desktop Image For HiKey970


I tried HiKey970 half a year ago, but NOT quite focused on it. There seems to be NO good operating system for this particular board. During this god-damn-it COVID-19, I now have some time, and seriously would like to fullfill some of my ideas on this particular 96board:

1. Hackerboards Comparisons

1.1 HiKey970 vs Hikey960

Hisilicon's official products' website provides a detailed comparison of these two open source boards.

By far, HiKey970 is exactly the most powerful edge computing SBC I've ever met.

It looks HackerBoards has done a thorough comparison of almost all types of SBCs. Let's just select the boards that we're interested in and carry out our comparison. Clearly, HiKey970's performance is outstanding.

2. Build Our Own OS For HiKey970

2.1 Set up Cross_Compiler

1
2
3
4
5
6
➜  ~ export CC="aarch64-linux-gnu-"
➜ ~ ${CC}gcc --version
aarch64-linux-gnu-gcc (Ubuntu 9.3.0-10ubuntu1) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

3. Flash HiKey970

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
➜  binaries sudo ./hikey_idt -c config
Config name: config
0: Image: ./sec_usb_xloader.img Downalod Address: 0x22000
1: Image: ./sec_usb_xloader2.img Downalod Address: 0x60049000
2: Image: ./l-loader.bin Downalod Address: 0x16800000
Serial port open successfully!
Start downloading ./sec_usb_xloader.img@0x22000...
file total size 122880
downlaod address 0x22000
Finish downloading
Start downloading ./sec_usb_xloader2.img@0x60049000...
file total size 40960
downlaod address 0x60049000
Finish downloading
Start downloading ./l-loader.bin@0x16800000...
file total size 1179648
downlaod address 0x16800000
Finish downloading
➜ binaries cd ../
➜ Hikey970-shunya-desktop-image-0.1 sudo ./binaries/recovery-flash.sh
./binaries/recovery-flash.sh: 7: [: unexpected operator
Config name: ....../Hikey970-shunya-desktop-image-0.1/binaries/config
....../Hikey970-shunya-desktop-image-0.1/binaries/hikey_idt: option requires an argument -- 'p'
Usage: hikey_idt -c config
Flashing ptable
Sending 'ptable' (24 KB) OKAY [ 0.001s]
Writing 'ptable' OKAY [ 0.005s]
Finished. Total time: 0.007s
Sending 'xloader' (164 KB) OKAY [ 0.005s]
Writing 'xloader' OKAY [ 0.009s]
Finished. Total time: 0.014s
Sending 'fastboot' (1152 KB) OKAY [ 0.034s]
Writing 'fastboot' OKAY [ 0.056s]
Finished. Total time: 0.091s
Sending 'fip' (1224 KB) OKAY [ 0.036s]
Writing 'fip' OKAY [ 0.058s]
Finished. Total time: 0.098s
Sending 'boot' (65536 KB) OKAY [ 2.143s]
Writing 'boot' OKAY [ 0.418s]
Finished. Total time: 2.590s
Please be patient...
Sending sparse 'userdata' 1/6 (131068 KB) OKAY [ 5.894s]
Writing 'userdata' OKAY [ 0.674s]
Sending sparse 'userdata' 2/6 (131068 KB) OKAY [ 4.250s]
Writing 'userdata' OKAY [ 0.740s]
Sending sparse 'userdata' 3/6 (131068 KB) OKAY [ 4.039s]
Writing 'userdata' OKAY [ 0.687s]
Sending sparse 'userdata' 4/6 (131068 KB) OKAY [ 4.029s]
Writing 'userdata' OKAY [ 0.670s]
Sending sparse 'userdata' 5/6 (131068 KB) OKAY [ 3.526s]
Writing 'userdata' OKAY [ 0.672s]
Sending sparse 'userdata' 6/6 (66608 KB) OKAY [ 1.827s]
Writing 'userdata' OKAY [ 0.346s]
Finished. Total time: 27.425s

4. Conclusion

If: