usbip学习记录
USB/IP: USB device sharing over IP
make menuconfig配置:
Device Drivers -> Staging drivers -> USB/IP support
Device Drivers -> Staging drivers -> USB/IP support -> Host driver
如果还有作为客户端的需要,继续做以下配置:
Device Drivers -> Staging drivers -> USB/IP support -> VHCI hcd
USB/IP userspace 应用程序编译
cd drivers/staging/usbip/userspace
./autogen.sh (Generate configuration scripts.)
./configure --target=arm-none-linux-gnueabi
--host=arm-none-linux-gnueabi
--prefix=/home/huangp/work/month25_01/usbip/tmp_MT33 (指定output路径)
CC=/opt/arm/4.3.3/arm-2009q1/bin/arm-none-linux-gnueabi-gcc
CPATH=/usr/include/sysfs/
--with-usbids-dir=/tmp/tmp_MT33/share (默认路径下缺少ids文件,所以手动配置)
make
make install