Usbcam 开启 RNDIS 功能说明
1. kernel 打开 rndis 功能
declare -x ARCH="arm";
declare -x CROSS_COMPILE="arm-linux-gnueabihf-9.1.0-"
make infinity6e_ssc013a_s01a_usbcam_defconfig (for nor flash)
make menuconfig
> Device Drivers > USB support > USB Gadget Support
make clean;make –j8
2. 将如下 ko copy 到板子的/customer 下
u_ether.ko
usb_f_rndis.ko
dwc3.ko
g_webcam.ko
3. 修改/customer/demo.sh insmod 如上 ko,并注释掉 usb 2.0 的 ko :
insmod /customer/u_ether.ko
insmod /customer/usb_f_rndis.ko maxpacket=64
insmod /customer/dwc3.ko assume_high_speed=1
insmod /customer/g_webcam.ko streaming_maxpacket=3072
uac_function_enable=0 rndis_function_enable=1
4. 重启板子,运行 UVC demo
5. 设置板子 ip