您尚未登录。

楼主 #1 2019-06-12 12:07:46

lanjackg2003
会员
注册时间: 2019-06-12
已发帖子: 42
积分: 42

F1C100s如何在uboot触发芯片进入usb otg烧录模式

如题所示,发现如果要重新烧录固件的时候,每次都要用工具短路SPI的1、4引脚,再开机
所以想请问一下,在uboot有没有一个命令可以让F1C100s重新进入usb otg的烧录模式。

离线

#2 2019-06-12 13:49:30

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: F1C100s如何在uboot触发芯片进入usb otg烧录模式

参考: https://whycan.cn/t_2429.html#p18718





制作一个特殊的TF卡系统, 插入即进入 fel, 这样不用短路也能烧录:

http://linux-sunxi.org/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卡实际磁盘设备





离线

#3 2019-07-03 16:45:05

xm1994
会员
注册时间: 2019-07-03
已发帖子: 65
积分: 64.5

Re: F1C100s如何在uboot触发芯片进入usb otg烧录模式

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)

离线

#4 2019-07-03 17:21:31

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: F1C100s如何在uboot触发芯片进入usb otg烧录模式

@xm1994 感谢分享!





离线

#5 2019-07-03 23:52:09

Quotation
会员
注册时间: 2018-10-04
已发帖子: 289
积分: 271.5

Re: F1C100s如何在uboot触发芯片进入usb otg烧录模式

xm1994 说:

uboot: go 0xffff0020

这样进入FEL模式,可以用sunxi-fel操作SPI Flash吗?我在自己的代码中跳转到0xffff0020,能进入FEL模式,但操作Flash失败。
之前研究了一下下最后也没成功 https://whycan.cn/t_2072.html

离线

#6 2019-08-08 14:07:35

还能这么玩
会员
注册时间: 2019-04-14
已发帖子: 119
积分: 119

Re: F1C100s如何在uboot触发芯片进入usb otg烧录模式

unknow_device.png

我也测试了一下, 不行啊.

unknow device 不能识别的USB设备。

最近编辑记录 还能这么玩 (2019-08-08 14:08:00)

离线

#7 2019-10-11 15:32:00

Rikka0w0
会员
注册时间: 2019-10-08
已发帖子: 8
积分: 8

Re: F1C100s如何在uboot触发芯片进入usb otg烧录模式

可以在flash的1脚(Chip Select)和地(USB口外壳或者Flash的4脚)之间焊接一个按键,按住上电插USB就进FEL。如图:
7fa6dc8b991a3120.jpg

离线

#8 2019-10-11 15:47:47

hupo
会员
注册时间: 2019-08-03
已发帖子: 12
积分: 12

Re: F1C100s如何在uboot触发芯片进入usb otg烧录模式

xm1994 说:

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可以这么做吗?

离线

#9 2021-07-05 14:40:57

sunxiang
会员
注册时间: 2021-05-05
已发帖子: 222
积分: 121

Re: F1C100s如何在uboot触发芯片进入usb otg烧录模式

不行的话就设计一个按键,开机前按下,开机后再松开。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn