I have a Hikey board that is is not entering fastboot mode when I close jumper 5-6. When I power on the board, I see this on the serial port (/dev/ttyUSB0):
debug EMMC boot: print init OK
debug EMMC boot: send RST_N .
debug EMMC boot: start eMMC boot......
load fastboot1!
I have a micro-USB cable connected to my laptop. Running “sudo fastboot devices” on my laptop’s shell prompt returns nothing.
So I thought I’d reinstall the board from scratch and I’m following the instructions here:
https://github.com/96boards/documentation/blob/master/ConsumerEdition/HiKey/Installation/BoardRecovery.md
I boot the board with jumper 1-2 and 3-4 closed and when I power the board on, I see this on the serial port:
usb reset intr
reset device done.
start enum.
enum done intr
Enum is starting.
usb reset intr
enum done intr
NULL package
NULL package
USB ENUM OK.
init ser device done....
USB:: Err!! Unknown USB setup packet!
NULL package
Then I run the commands to recover the board using the 16.06 release and I see this on my terminal:
(I put the commands into a script, so the + lines are the commands that are run)
+ sudo python hisi-idt.py -d /dev/ttyUSB1 --img1=l-loader.bin
+----------------------+
(' Serial: ', '/dev/ttyUSB1')
(' Image1: ', 'l-loader.bin')
(' Image2: ', '')
+----------------------+
('Sending', 'l-loader.bin', '...')
Done
+ ret=0
+ '[' 0 '!=' 0 ']'
+ sudo fastboot flash ptable ptable-linux-4g.img
< waiting for any device >
target reported max download size of 268435456 bytes
sending 'ptable' (17 KB)...
OKAY [ 0.002s]
writing 'ptable'...
OKAY [ 0.509s]
finished. total time: 0.511s
+ '[' 0 '!=' 0 ']'
+ sudo fastboot flash fastboot fip.bin
target reported max download size of 268435456 bytes
sending 'fastboot' (1382 KB)...
OKAY [ 0.059s]
writing 'fastboot'...
OKAY [ 0.701s]
finished. total time: 0.760s
+ sudo fastboot flash nvme nvme.img
target reported max download size of 268435456 bytes
sending 'nvme' (128 KB)...
OKAY [ 0.006s]
writing 'nvme'...
OKAY [ 0.516s]
finished. total time: 0.522s
+ sudo fastboot flash boot hikey-boot-linux-20160629-120.uefi.img
target reported max download size of 268435456 bytes
sending 'boot' (65536 KB)...
OKAY [ 2.650s]
writing 'boot'...
OKAY [ 9.703s]
finished. total time: 12.352s
+ '[' 0 '!=' 0 ']'
+ sudo fastboot devices
0123456789ABCDEF fastboot
+ '[' 0 '!=' 0 ']'
Meanwhile, I see this additional output on the serial port:
USB:: Err!! Unknown USB setup packet!
NULL package
USB:: Err!! Unknown USB setup packet!
NULL package
USB:: Err!! Unknown USB setup packet!
NULL package
uFileAddress=ss=f9800800
So I power off the board, move jumper 3-4 across to 5-6, power on and I see this on the serial port:
debug EMMC boot: print init OK
debug EMMC boot: send RST_N .
debug EMMC boot: start eMMC boot......
load fastboot1!
I also see the same output if I power the board on with only jumper 1-2 closed.
At this point, “sudo fastboot devices” returns nothing.
Any advice on what to do next?