I followed this tutorial which is alos listed in the official docs.
Then I found
_____ _ _ _____ _ _
|_ _|(_)| |_ __ _ _ __ | ___|| | __ _ ___ | |__ ___ _ __
| | | || __| / _` || '_ \ | |_ | | / _` |/ __|| '_ \ / _ \| '__|
| | | || |_ | (_| || | | || _| | || (_| |\__ \| | | || __/| |
|_| |_| \__| \__,_||_| |_||_| |_| \__,_||___/|_| |_| \___||_|
__ __ _ ____ ____ _ _
\ \ / / / | |___ \ | ___| | |__ ___ | |_ __ _
\ \ / / | | __) ||___ \ | '_ \ / _ \| __| / _` |
\ V / | | _ / __/ ___) || |_) || __/| |_ | (_| |
\_/ |_|(_)|_____||____/ |_.__/ \___| \__| \__,_|
--- Available ports:
--- 1: 1-2 'fastboot VID:PID=0x361c:0x1001 SER=123456789ABC'
--- Enter port index or full name: 1
---》开始刷机
执行 fastboot getvar version-brom
Variable not implemented
刷机总进度: 2%: ▓
刷机总进度: 4%: ▓▓
刷机总进度: 6%: ▓▓▓
刷机总进度: 9%: ▓▓▓▓
刷机总进度: 11%: ▓▓▓▓▓
执行 fastboot getvar mtd-size
NULL
刷机总进度: 13%: ▓▓▓▓▓▓
执行 fastboot getvar blk-size
universal
刷机总进度: 15%: ▓▓▓▓▓▓▓
开始匹配分区表: ['partition_{size0}.json', 'partition_{size1}.json']
匹配原始分区表: partition_universal.json
分区表匹配结果为: partition_universal.json
执行 fastboot flash gpt partition_universal.json
max-download-size: 134217728
parse gpt/mtd table okay
执行 fastboot flash bootinfo bootinfo_sd.bin
max-download-size: 134217728
执行 fastboot flash fsbl FSBL.bin
max-download-size: 134217728
执行 fastboot flash env env.bin
max-download-size: 134217728
执行 fastboot flash opensbi fw_dynamic.itb
max-download-size: 134217728
执行 fastboot flash uboot u-boot.itb
max-download-size: 134217728
执行 fastboot flash bootfs bootfs.ext4
max-download-size: 134217728
生成sparse格式文件, split>>127
start split sparse file in 2024-10-19 02:57:28
bytesIo: Wrote 65535 blocks in 10 sparse chunks (12% compression)
split sparse file over, begin download in 2024-10-19 02:57:34
刷机总进度: 16%: ▓▓▓▓▓▓▓▓
download over in 2024-10-19 02:57:37
执行 fastboot flash rootfs rootfs.ext4
max-download-size: 134217728
生成sparse格式文件, split>>127
start split sparse file in 2024-10-19 02:57:37
bytesIo: Wrote 62211 blocks in 44 sparse chunks (52% compression)
split sparse file over, begin download in 2024-10-19 02:57:40
刷机总进度: 18%: ▓▓▓▓▓▓▓▓▓
download over in 2024-10-19 02:57:47
bytesIo: Wrote 523708 blocks in 106 sparse chunks (6% compression)
split sparse file over, begin download in 2024-10-19 02:58:05
刷机总进度: 30%: ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
download over in 2024-10-19 02:58:27
bytesIo: Wrote 3025218 blocks in 99 sparse chunks (1% compression)
split sparse file over, begin download in 2024-10-19 02:58:52
刷机总进度: 99%: ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
刷机失败!
【错误码】 20007
【错误原因】Fastboot执行失败
【详细原因】Fastboot Exception Could not receive data from [1, 2] (timeout 30000ms): LIBUSB_ERROR_TIMEOUT [-7]
<-------------flash over ---------------->
I tried different USB cable and port, it didn’t work