f1c_flashrom
This is an old revision of the document!
Table of Contents
所用到的文件:mpi-r-tools.zip
打驱动
针对FEL
针对DFU
刷机工具SUNXI-FEL
该工具是全志soc在所有flash中无法boot时,芯片自动进入FEL刷机状态,通过USB通信。
这部分会用到压缩包中的sunxi-fel.exe
Windows
1. 不插TF卡,按住BOOT按钮后插入USB线;或者先插入USB,保持按住BOOT按钮姿势时短按下RST键,可主动进入USB刷机模式,电脑检测到新的usb烧写设备。
3. sunxi-fel使用时必须在命令行下,例如可以安装个git工具(https://git-scm.com/downloads)代替windows自带的终端。 正常工作的FEL设备,我们可以通过命令测试它:
$ ./sunxi-fel.exe -l USB device 001:034 Allwinner F1C100s
Linux
1. 安装依赖
apt-get install libusb-1.0-0-dev
或
yum install libusbx-devel
2. 将 sunxi-fel.zip 解压后放到/usr/local/bin/下
3. 使用注意:如果不是root用户,使用时加sudo。 如果Linux是在虚拟机中,需要虚拟机设置将USB设备直通给Linux。
刷机工具DFU-UTIL
此部分会用到压缩包中的dfu-util.exe
1. 让MPi-R处于FEL模式。
2. 运行from-fel-to-dfu.bat脚本,双击运行。或者在Windows命令行运行脚本中的命令。
3. 此时,MPi-R会打印一些log,当看到这些时,表明MPi-R已处于DFU模式。
DFU waiting on SPI-NOR... musb-hdrc: peripheral reset irq lost! DFU waiting on SPI-NOR... SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
5. 准备好NAND镜像,然后在Windows命令行中通过如下命令刷机。
./dfu-util.exe -R -a all -D output\images\sysimage-nand.img
刷机log:
mango@DESKTOP MINGW64 /d/share/windows/mpi-R-tools $ ./dfu-util.exe -R -a all -D ../../sysimage-nand.img dfu-util 0.9 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2016 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ Opening DFU capable USB device... ID 1f3a:1010 Run-time device DFU version 0110 Claiming USB DFU Interface... Setting Alternate Setting #0 ... Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 0110 Device returned transfer size 4096 Copying data from PC to DFU device Download [== ] 11% 15249408 bytes
f1c_flashrom.1612861036.txt.gz · Last modified: (external edit)




