參考資訊:
https://archive.org/details/C.h.i.p.FlashCollection
步驟如下:
1. 執行如下命令
$ sudo apt-get install android-tools-fastboot sunxi-tools u-boot-tools -y $ cd $ wget https://github.com/steward-fu/website/releases/download/pocketchip/CHIP-tools.zip $ wget https://github.com/steward-fu/website/releases/download/pocketchip/stable-pocketchip-b126.7z $ unzip CHIP-tools.zip $ 7za x stable-pocketchip-b126 $ cd CHIP-tools
2. 連接FEL到GND
3. 開啟Pocket C.H.I.P.電源
4. 執行如下命令
$ lsusb
Bus 001 Device 011: ID 1f3a:efe8 Onda (unverified) V972 tablet in flashing mode
$ FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh -L ../stable-pocketchip-b126/
== Local directory '../stable-pocketchip-b126/' selected ==
== preparing images ==
== Local/cached probe files located ==
== Staging for NAND probe ==
Image Name: detect NAND
Created: Fri Apr 2 09:32:59 2021
Image Type: ARM Linux Script (uncompressed)
Data Size: 97 Bytes = 0.09 KiB = 0.00 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 89 Bytes = 0.09 KiB = 0.00 MiB
waiting for fel...OK
waiting for fel......OK
NAND detected:
nand_erasesize=400000
nand_oobsize=680
nand_writesize=4000
== Cached UBI located ==
Image Name: flash server
Created: Fri Apr 2 09:33:07 2021
Image Type: ARM Linux Script (uncompressed)
Data Size: 1784 Bytes = 1.74 KiB = 0.00 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 1776 Bytes = 1.73 KiB = 0.00 MiB
waiting for fel...OK
waiting for fastboot...................OK
target reported max download size of 33554432 bytes
sending sparse 'UBI' 1/23 (28672 KB)...
OKAY [ 1.925s]
writing 'UBI' 1/23...
OKAY [ 2.151s]
sending sparse 'UBI' 2/23 (28672 KB)...
OKAY [ 1.929s]
writing 'UBI' 2/23...
OKAY [ 5.641s]
sending sparse 'UBI' 3/23 (28672 KB)...
OKAY [ 1.904s]
writing 'UBI' 3/23...
OKAY [ 12.742s]
sending sparse 'UBI' 4/23 (28672 KB)...
OKAY [ 1.896s]
writing 'UBI' 4/23...
OKAY [ 12.711s]
sending sparse 'UBI' 5/23 (28672 KB)...
OKAY [ 1.893s]
writing 'UBI' 5/23...
OKAY [ 12.751s]
sending sparse 'UBI' 6/23 (28672 KB)...
OKAY [ 1.919s]
writing 'UBI' 6/23...
OKAY [ 12.720s]
sending sparse 'UBI' 7/23 (28672 KB)...
OKAY [ 1.922s]
writing 'UBI' 7/23...
OKAY [ 12.761s]
sending sparse 'UBI' 8/23 (28672 KB)...
OKAY [ 1.908s]
writing 'UBI' 8/23...
OKAY [ 12.714s]
sending sparse 'UBI' 9/23 (28672 KB)...
OKAY [ 1.896s]
writing 'UBI' 9/23...
OKAY [ 12.763s]
sending sparse 'UBI' 10/23 (28672 KB)...
OKAY [ 1.904s]
writing 'UBI' 10/23...
OKAY [ 12.723s]
sending sparse 'UBI' 11/23 (28672 KB)...
OKAY [ 1.909s]
writing 'UBI' 11/23...
OKAY [ 12.756s]
sending sparse 'UBI' 12/23 (28672 KB)...
OKAY [ 1.915s]
writing 'UBI' 12/23...
OKAY [ 12.719s]
sending sparse 'UBI' 13/23 (28672 KB)...
OKAY [ 1.901s]
writing 'UBI' 13/23...
OKAY [ 12.751s]
sending sparse 'UBI' 14/23 (28672 KB)...
OKAY [ 1.916s]
writing 'UBI' 14/23...
OKAY [ 12.723s]
sending sparse 'UBI' 15/23 (28672 KB)...
OKAY [ 1.926s]
writing 'UBI' 15/23...
OKAY [ 12.759s]
sending sparse 'UBI' 16/23 (28672 KB)...
OKAY [ 1.917s]
writing 'UBI' 16/23...
OKAY [ 12.726s]
sending sparse 'UBI' 17/23 (28672 KB)...
OKAY [ 1.914s]
writing 'UBI' 17/23...
OKAY [ 12.755s]
sending sparse 'UBI' 18/23 (28672 KB)...
OKAY [ 1.918s]
writing 'UBI' 18/23...
OKAY [ 12.724s]
sending sparse 'UBI' 19/23 (28672 KB)...
OKAY [ 1.919s]
writing 'UBI' 19/23...
OKAY [ 12.750s]
sending sparse 'UBI' 20/23 (28672 KB)...
OKAY [ 1.911s]
writing 'UBI' 20/23...
OKAY [ 12.730s]
sending sparse 'UBI' 21/23 (28672 KB)...
OKAY [ 1.917s]
writing 'UBI' 21/23...
OKAY [ 12.752s]
sending sparse 'UBI' 22/23 (28672 KB)...
OKAY [ 1.912s]
writing 'UBI' 22/23...
OKAY [ 9.218s]
sending sparse 'UBI' 23/23 (16384 KB)...
OKAY [ 1.089s]
writing 'UBI' 23/23...
OKAY [ 5.119s]
finished. total time: 307.321s
resuming boot...
OKAY [ 0.000s]
finished. total time: 0.000s
FLASH VERIFICATION COMPLETE.
# # #
#########
### ###
# {#} #
### '%######
# #
### ###
########
# # #
CHIP is ready to roll!
完成