您尚未登录。

楼主 #1 2020-09-24 18:42:11

henman
会员
注册时间: 2020-09-10
已发帖子: 23
积分: 23

使用v3s的bsp内核,想实现usb device功能,尝试失败。主线内核是成功的。是我操作不对,还是bsp内核本身就有问题?

我用这个内核https://github.com/Lichee-Pi/linux.git是成功的。
内核配置:Device Drivers->USB support-><*>USB Gadget Support-><M>USB Gadget precomposed configurations-><M>Serial Gadget (with CDC ACM and CDC OBEX support)
insmod g_serial.ko,出现以下打印。
[   24.083787] g_serial gadget: Gadget Serial v2.4
[   24.088484] g_serial gadget: g_serial ready
[   24.469748] g_serial gadget: high-speed config #2: CDC ACM config

我用bsp内核,版本3.4,类似的操作后,出现以下打印。
[ 4316.436502] ep_matches, wrn: endpoint already claimed, ep(0xc048e3cc, 0xc2adde80, ep1in-bulk)
[ 4316.446037] ep_matches, wrn: endpoint already claimed, ep(0xc048e3cc, 0xc2adde80, ep1in-bulk)
[ 4316.455510] ep_matches, wrn: endpoint already claimed, ep(0xc048e418, 0xc2adde80, ep1out-bulk)
[ 4316.465075] gadget_is_softwinner_otg is not -int
[ 4316.470270] gadget_is_softwinner_otg is not -int
[ 4316.476705] g_serial gadget: Gadget Serial v2.4
[ 4316.481815] g_serial gadget: g_serial ready

不知道有没有小伙伴对这块了解,不吝指点一下呢?

离线

页脚

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

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