如题所示,发现如果要重新烧录固件的时候,每次都要用工具短路SPI的1、4引脚,再开机
所以想请问一下,在uboot有没有一个命令可以让F1C100s重新进入usb otg的烧录模式。
离线
参考: https://whycan.cn/t_2429.html#p18718
制作一个特殊的TF卡系统, 插入即进入 fel, 这样不用短路也能烧录:
wget https://github.com/linux-sunxi/sunxi-tools/raw/master/bin/fel-sdboot.sunxi
dd if=fel-sdboot.sunxi of=/dev/sdX bs=1024 seek=8 ####sdX替换成你的TF卡实际磁盘设备
离线
uboot: go 0xffff0020
Through serial console
If you have access to the UART already, you can send the character '1' ('2' on some devices) to the device during power-up.Boot1 is initialized using this method.
With later SoCs, Allwinner's U-boot supports the "efex" command.
If "efex" is not available in your U-boot, you can use the simple uboot "go" command with arguments pointing to the return FEL address:
http://linux-sunxi.org/BROM#Other_booting_methods
=> go 0xffff0020
Starting application at 0xFFFF0020 ...
最近编辑记录 xm1994 (2019-07-03 16:46:17)
离线
uboot: go 0xffff0020
这样进入FEL模式,可以用sunxi-fel操作SPI Flash吗?我在自己的代码中跳转到0xffff0020,能进入FEL模式,但操作Flash失败。
之前研究了一下下最后也没成功 https://whycan.cn/t_2072.html
离线
我也测试了一下, 不行啊.
unknow device 不能识别的USB设备。
最近编辑记录 还能这么玩 (2019-08-08 14:08:00)
离线
可以在flash的1脚(Chip Select)和地(USB口外壳或者Flash的4脚)之间焊接一个按键,按住上电插USB就进FEL。如图:
离线
uboot: go 0xffff0020
Through serial console
If you have access to the UART already, you can send the character '1' ('2' on some devices) to the device during power-up.Boot1 is initialized using this method.
With later SoCs, Allwinner's U-boot supports the "efex" command.
If "efex" is not available in your U-boot, you can use the simple uboot "go" command with arguments pointing to the return FEL address:
http://linux-sunxi.org/BROM#Other_booting_methods
=> go 0xffff0020
Starting application at 0xFFFF0020 ...
v3s可以这么做吗?
离线
不行的话就设计一个按键,开机前按下,开机后再松开。
离线