Hi @foxen,
Below is detailed steps what I tried at my side:
-
Step 1: Power off board and change the switch to recovery mode (switch 1 & 2 to ON state and switch 3 to OFF state)
-
Step 2: Power on board and the board enters recovery mode, so cannot see any output in the console
-
Step 3: Use the script ‘recovery-flash-uefi-prebuilt.sh’ with the command:
sudo ./recovery-flash-uefi-prebuilt.sh -d -t /dev/ttyUSB3 -v 95
On my PC, the USB node is /dev/ttyUSB3; and please note now the latest release is broken so I rollback to use build 95 with debug version.
- Step 4: The script hikey_idt downloads binaries into SRAM:
Running hikey_idt...
Config name: config
Port name: /dev/ttyUSB3
0: Image: hisi-sec_usb_xloader.img Downalod Address: 0x20000
1: Image: hisi-sec_uce_boot.img Downalod Address: 0x6a908000
2: Image: recovery.bin Downalod Address: 0x1ac00000
Serial port open successfully!
Start downloading hisi-sec_usb_xloader.img@0x20000...
file total size 99584
downlaod address 0x20000
Finish downloading
Start downloading hisi-sec_uce_boot.img@0x6a908000...
file total size 23680
downlaod address 0x6a908000
Finish downloading
Start downloading recovery.bin@0x1ac00000...
file total size 1179648
downlaod address 0x1ac00000
Finish downloading
Sleeping till device resets... zzz
-
Step 5: On the console, press f so let the board enter into fastboot mode. Since you didn’t press f thus the system booted Linux kernel.
-
Step 6: On the window for running script recovery-flash-uefi-prebuilt.sh, it will output logs as below:
target reported max download size of 134217728 bytes
sending 'ptable' (24 KB)...
OKAY [ 0.008s]
writing 'ptable'...
OKAY [ 0.003s]
finished. total time: 0.011s
target reported max download size of 134217728 bytes
sending 'xloader' (151 KB)...
OKAY [ 0.010s]
writing 'xloader'...
OKAY [ 0.011s]
finished. total time: 0.021s
target reported max download size of 134217728 bytes
sending 'fastboot' (25 KB)...
OKAY [ 0.008s]
writing 'fastboot'...
OKAY [ 0.053s]
finished. total time: 0.061s
target reported max download size of 134217728 bytes
sending 'fip' (1482 KB)...
OKAY [ 0.063s]
writing 'fip'...
OKAY [ 0.062s]
finished. total time: 0.125s
- Step 7: Don’t reboot the board, directly flash boot and rootFS images:
sudo fastboot flash boot boot-linaro-stretch-developer-hikey-20190822-37.img
sudo fastboot flash system rootfs-linaro-stretch-developer-hikey-20190822-37.img
-
Step 8: Power off the board, change switch to normal mode (set switch 1 to ON and switch 2 & 3 to OFF state); power on the board again.
-
Step 9: After the sytem boot up, use modprobe to insmod module:
root@linaro-developer:~# modprobe mcs7830
root@linaro-developer:~# lsmod
Module Size Used by
mcs7830 16384 0