我用这个内核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
不知道有没有小伙伴对这块了解,不吝指点一下呢?
离线