T113 usb 转以太网烧脑的问题
-
自己做的T113板子,Buildroot编译的系统,在芒果派 MQ dual 上面运行,使用USB转以太网,RTL8152, RTL8153 或者 ax1189 都可以正常运行,同样软件,同样的USB转以太网 dongle, 连接到自己的板子上就有问题,获取不到IP地址,提示tx timeout
已经排查过的:
1:电源,使用同样的电源,芒果派 MQ dual 可以运行没问题
2:USB转以太网 dongle,同一个连接到芒果派 MQ dual 可以运行没问题
3:USB口,USB0和USB1是一样的现象
4:USB布线,做了阻抗匹配,U盘读写没有问题
5:USB接口电源,添加滤波电容没有作用以下是打印的消息,tx timeoute 设置加大10倍都没有帮助,大神们过来围观一下?
[ 207.897270] ------------[ cut here ]------------
[ 207.902432] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:448 dev_watchdog+0xcc/0x168
[ 207.911630] NETDEV WATCHDOG: eth0 (r8152): transmit queue 0 timed out
[ 207.918862] Modules linked in:
[ 207.922292] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.61 #8
[ 207.928863] Hardware name: Generic DT based system
[ 207.934252] [<c010e2d8>] (unwind_backtrace) from [<c010a8e4>] (show_stack+0x10/0x14)
[ 207.942939] [<c010a8e4>] (show_stack) from [<c07a86fc>] (dump_stack+0x7c/0x98)
[ 207.951042] [<c07a86fc>] (dump_stack) from [<c0119374>] (__warn+0xb8/0xd0)
[ 207.958755] [<c0119374>] (__warn) from [<c01193fc>] (warn_slowpath_fmt+0x70/0x9c)
[ 207.967149] [<c01193fc>] (warn_slowpath_fmt) from [<c062b4b0>] (dev_watchdog+0xcc/0x168)
[ 207.976229] [<c062b4b0>] (dev_watchdog) from [<c016e3e8>] (call_timer_fn.constprop.6+0x1c/0x94)
[ 207.985988] [<c016e3e8>] (call_timer_fn.constprop.6) from [<c016eab4>] (__run_timers.part.5+0x1b0/0x1d4)
[ 207.996621] [<c016eab4>] (__run_timers.part.5) from [<c016eb14>] (run_timer_softirq+0x3c/0x78)
[ 208.006281] [<c016eb14>] (run_timer_softirq) from [<c0102af8>] (__do_softirq+0x210/0x29c)
[ 208.015457] [<c0102af8>] (__do_softirq) from [<c011da78>] (irq_exit+0x78/0xd0)
[ 208.023560] [<c011da78>] (irq_exit) from [<c01584e4>] (__handle_domain_irq+0x74/0xa0)
[ 208.032346] [<c01584e4>] (__handle_domain_irq) from [<c0366600>] (gic_handle_irq+0x4c/0x78)
[ 208.041713] [<c0366600>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8)
[ 208.050101] Exception stack(0xc0c01f40 to 0xc0c01f88)
[ 208.055767] 1f40: 001abc90 c76b94f4 00000000 c0114b40 00000001 c0c04e28 ffffe000 c0c53462
[ 208.064937] 1f60: c0c04e64 c77ff840 c0b2e0c0 00000000 00000000 c0c01f90 c0107fe0 c0107fd0
[ 208.074104] 1f80: 600e0013 ffffffff
[ 208.078017] [<c01021cc>] (__irq_svc) from [<c0107fd0>] (arch_cpu_idle+0x1c/0x38)
[ 208.086314] [<c0107fd0>] (arch_cpu_idle) from [<c013df08>] (do_idle+0xdc/0x12c)
[ 208.094511] [<c013df08>] (do_idle) from [<c013e1f4>] (cpu_startup_entry+0x18/0x1c)
[ 208.103003] [<c013e1f4>] (cpu_startup_entry) from [<c0b00c50>] (start_kernel+0x340/0x3d0)
[ 208.112207] ---[ end trace 0b14f6e3a592967a ]---
[ 208.117407] r8152 1-1.3:1.0 eth0: Tx timeout
[ 209.693824] r8152 1-1.3:1.0 eth0: Tx status -2
[ 209.702059] r8152 1-1.3:1.0 eth0: Tx status -2
[ 209.710320] r8152 1-1.3:1.0 eth0: Tx status -2
[ 209.718565] r8152 1-1.3:1.0 eth0: Tx status -2 -
8125我记得是有内置delay的,delay配置删了试试看
-
@yuzukitsuru , 谢谢回复, 软件用的是同一张 TF卡,所以配置参数应该是一样的,硬件测试用的也是同一个USB转网络的Dongle, 自己做的板子跟对比的板子区别在USB 主机这一端,按说不会涉及到 8125里面的delay, 回头还是试试看有没有影响。
-
@efancier 软件相同硬件也相同吗?估计问题不在delay上
-
@yuzukitsuru , 软件和USB 转以太网Dongle 是完全一样的。
-
@efancier 你的usb1口读取U盘成功啦?我的调试好久都不行
-
@jacky502 ,我U盘读写都是可以的,你出错的时候是什么提示?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号