The Hikey is linked via USB to PC ubuntu. It is also linked via UART3 to the same PC, to see output traces. It is also connected to a power adapter. It runs OPTEE environment.
I have corrupted the 2e bootloader in OPTEE to understand how the boot process works. It is not possible to flash the device after that, because it is blocked at the end of 2nd bootloader.
Recovery
I followed these instructions : https://github.com/96boards/documentation/blob/master/ConsumerEdition/HiKey/Installation/BoardRecovery.md
Configuration: pins 1-2 and 3-4 connected
No LED is lighted in this configuration.
(1) sudo python hisi-idt.py -d /dev/ttyUSB0 --img1=l-loader.bin
(2) sudo fastboot flash ptable ptable-linux-8g.img
The first command seems to work, it prints :
Done!
The second command waits endlessly :
<waiting for device>
and fastboot devices
returns nothing.
SD Card
I tried to install Debian OS on the HiKey using SD card. I followed the instructions : https://github.com/Linaro/documentation/blob/master/Reference-Platform/Releases/RPB_16.06/ConsumerEdition/HiKey/InstallDebianRPB.md#sd-card-method
After loading system image into SD card, it is inserted in the HiKey. Even the device should boot from SD card it boots from flash memory (same traces of execution).
Every times the pins 3 - 4 are connected, the system does not react
(no LED lighted and no uart execution traces).
In all configurations fastboot devices
returns nothing.
How to make fastboot detect the device in configuration 3-4 connected ?
Why doesn’t the system boot from SD card when it is inserted ?