Install UEFI on HiKey960 from Binaries [Instructions]

Build 14 works, however I’d recommend that you reflash aosp complete in order to remove build 23 and then flash 14.

@domi,

Please don’t use build 23. It has a bug and will get stuck with the boot message shown 2 posts above. The next build should be ok.

@vchong

Build 24 doesn’t work for me.

NOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v1.4(release):v1.4-207-gea12986b
NOTICE:  BL1: Built : 08:00:35, Sep 20 2017
NOTICE:  BL1: Booting BL2
NOTICE:  BL2: v1.4(release):v1.4-207-gea12986b
NOTICE:  BL2: Built : 08:00:35, Sep 20 2017
NOTICE:  BL1: Booting BL31
NOTICE:  BL31: v1.4(release):v1.4-207-gea12986b
NOTICE:  BL31: Built : 08:00:35, Sep 20 2017

you’ll need to reflash the old boot-loader from https://github.com/96boards-hikey/tools-images-hikey960
and then reflash aosp from http://builds.96boards.org/snapshots/hikey960/linaro/aosp-master/latest/
then try build 24 and see if it works.
with that said I haven’t tried build 24 but this method worked for build 14

Yes, thanks @ric96 .

Build 14 is good, but build 24 doesn’t work.

I tried to go back to AOSP 261 , but the board is now booting in some kind of debug mode. It keeps repeating the same message, interleaved with some special characters

debug> fiq debugger mode
debug> ▒▒"3▒Łdebugger mode
debug> fiq debugger mode
debug> Dfiq debugger mode
debug> 0Y▒▒▒▒▒^+▒debugger mode
debug> ,fiq debugger mode
debug> fiq debugger mode

Did you try recovery mode ?

Yes, I did, same issue.

The debug messages go away if I connect the board to the host via the USB-C connection.

Something triggers the FIQ debug mode, what happens if you enter “console” after USB-C unplug (or boot without USB type plugged).

First I enter recovery mode
tools-images-hikey960$ ./recovery-flash.sh

I reboot the board to repeat the process. Just in case.
tools-images-hikey960$ ./recovery-flash.sh

Now I flash AOSP 262
hikey960-linaro-2017.09.20$ ./flash-all.sh

I enter normal mode, and reboot

case 1 ) USB-C plugged in

everything looks normal, but lsusb doesn’t list anything (as expected)

Now I unplug USB-C and I see the following message in a loop
debug> fiq debugger mode

case 2 ) USB-C unplugged

I immediately see some extra characters:

▒▒▒▒▒▒▒▒▒▒{hikey960 boarid:5301 xloader use UART6
scsysstat_value[0].
clear reset source
last_keypoint0,reboot_ty▒▒Y▒▒▒Ver exit

 xloader chipid is: 0x36600110, start at 434ms.
Build Date: Jun 20 2017, 20:37:08
[clock_init] ++
hikey960 [hikey960_clk_init]
hi3660 [clk_s▒▒orawe type is UFS
ufs retry: 6 count v_tx:0 v_rx:0

… snip …

pmu_ip: Hikey960:Enable clock-gating
pmu_ip: [regulator_power_all_enable] all IP regulator is power on!
load_kernel:▒▒]▒▒▒X▒▒▒▒0000007
load_kernel: set ISP_SUB_CTRL_S to unsec, val = 0x0000000f
load_kernel:

----boot time is 5385 ms----

load_kernel: boot_from_bl3▒▒▒▒▒▒▒[W▒▒▒0000000
▒▒er to activate fiq debugger>
fiq debugger mode
debug> fiq debugger mode
debug> fiq debugger mode
debug> fiq debugger mode

I assume it has something to do with a file mismatch

689050e98e86bdd84ff2901246d3e5bb  hikey960-linaro-2017.09.20/lpm3.img
1883e4f17ab7628f083d399d300ed553  hikey960-linaro-2017.09.20/sec_xloader.img
ae4469eea18868268a7ad3b6d2cbc631  hikey960-linaro-2017.09.20/bl31.bin

53da2b7a8109b1e5e4c252c4779aabe1  tools-images-hikey960/lpm3.img
84af90d42337c2c4723f2a55fafb5989  tools-images-hikey960/sec_xloader.img
18455b7fbb46950e4cb7a154206e915f  tools-images-hikey960/sec_usb_xloader.img

Something goes wrong on your serial line, what kind of serial cable are you using ? please double check the connection (gnd).

Look like the uart receive CTRL-BREAK in loop.

@Loic You are right, my Tectona adapter cable (ground=black wire) is broken.

I can reproduce exactly the same behavior by using a new adapter cable without connecting it to ground. Mystery solved.

So back to the original issue, build 24 is not working …

@domi

Sorry for the trouble. There was another issue found in build 24 that was different from the one in 23. This issue actually affected all builds from 16 onwards, but should be resolved from now.

SUMMARY
HiKey960 uefi binaries in http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging
- Builds 15 and below should be ok.
- Builds 16-24 will hang on boot.
- Builds 25 and onwards should be fixed.

Thanks

1 Like

Build 25 works well Thank you.

1 Like

Np. Thanks for testing.

I took me a long time to finally have success. I always turned power off to reboot, which did not worked.
Do not turn power off, instead change the switch and use the fastboot reboot command.

Kindly could you update the links in wget and some of them do not work