Hi @leo-yan,
Thank you for your suggestion to use explicit commands. I tried it and still had the same issue. Out of curiosity I also tried setting the permissions on all of the files to 777 and writing using explicit commands again, but this did not fix the issue.
Before writing I ensured there was only one “boot” file and one “rootfs” file in the directory. The output from the write commands is:
$ fastboot flash ptable prm_ptable.img
< waiting for any device >
target reported max download size of 134217728 bytes
sending 'ptable' (24 KB)...
OKAY [ 0.041s]
writing 'ptable'...
OKAY [ 0.002s]
finished. total time: 0.043s
$ fastboot flash fastboot l-loader.bin
target reported max download size of 134217728 bytes
sending 'fastboot' (25 KB)...
OKAY [ 0.041s]
writing 'fastboot'...
OKAY [ 0.053s]
finished. total time: 0.094s
$ fastboot flash fip fip.bin
target reported max download size of 134217728 bytes
sending 'fip' (1478 KB)...
OKAY [ 0.155s]
writing 'fip'...
OKAY [ 0.065s]
finished. total time: 0.219s
$ fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 2.204s
$ fastboot flash boot boot-linaro-stretch-developer-hikey-*.img
target reported max download size of 134217728 bytes
sending 'boot' (65536 KB)...
OKAY [ 2.674s]
writing 'boot'...
OKAY [ 0.598s]
finished. total time: 3.272s
$ fastboot flash system rootfs-linaro-stretch-developer-hikey-*.img
target reported max download size of 134217728 bytes
erasing 'system'...
OKAY [ 0.577s]
sending sparse 'system' 1/12 (118868 KB)...
OKAY [ 4.741s]
writing 'system' 1/12...
OKAY [ 2.125s]
sending sparse 'system' 2/12 (131028 KB)...
OKAY [ 5.295s]
writing 'system' 2/12...
OKAY [ 1.505s]
sending sparse 'system' 3/12 (125228 KB)...
OKAY [ 4.988s]
writing 'system' 3/12...
OKAY [ 1.677s]
sending sparse 'system' 4/12 (131068 KB)...
OKAY [ 5.301s]
writing 'system' 4/12...
OKAY [ 1.196s]
sending sparse 'system' 5/12 (128439 KB)...
OKAY [ 5.175s]
writing 'system' 5/12...
OKAY [ 1.186s]
sending sparse 'system' 6/12 (130831 KB)...
OKAY [ 5.244s]
writing 'system' 6/12...
OKAY [ 1.431s]
sending sparse 'system' 7/12 (119465 KB)...
OKAY [ 4.846s]
writing 'system' 7/12...
OKAY [ 1.333s]
sending sparse 'system' 8/12 (130986 KB)...
OKAY [ 5.221s]
writing 'system' 8/12...
OKAY [ 1.245s]
sending sparse 'system' 9/12 (117506 KB)...
OKAY [ 4.643s]
writing 'system' 9/12...
OKAY [ 1.126s]
sending sparse 'system' 10/12 (129851 KB)...
OKAY [ 5.186s]
writing 'system' 10/12...
OKAY [ 1.324s]
sending sparse 'system' 11/12 (128547 KB)...
OKAY [ 5.168s]
writing 'system' 11/12...
OKAY [ 1.509s]
sending sparse 'system' 12/12 (65694 KB)...
OKAY [ 2.761s]
writing 'system' 12/12...
OKAY [ 0.734s]
finished. total time: 75.538s
Through UART, I also got the following output while flashing the boot image and rootfs:
Fastboot platform: check for partition-type:boot
Downloading 67108864 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:67108864
67108864 / 67108864 bytes downloaded (100%)
Flashing partition boot
Done.
Fastboot platform: check for partition-type:system
Erasing partition system
Downloading 121721544 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:121721544
121721544 / 121721544 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 134173640 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:134173640
134173640 / 134173640 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 128233480 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:128233480
128233480 / 128233480 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 134214648 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:134214648
134214648 / 134214648 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 131521540 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:131521540
131521540 / 131521540 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 133971220 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:133971220
133971220 / 133971220 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 122332440 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:122332440
122332440 / 122332440 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 134130104 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:134130104
134130104 / 134130104 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 120326388 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:120326388
120326388 / 120326388 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 132968260 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:132968260
132968260 / 132968260 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 131633104 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:131633104
131633104 / 131633104 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 67271280 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:67271280
67271280 / 67271280 bytes downloaded (100%)
Flashing partition system
Done.
This all looks like it has worked okay to me, yet the OS isn’t updated when I boot into it. I have made sure to remove all USB peripherals and my SD card before using Fastboot as well.