千千梦丶琪 发表于 2025-4-8 06:58:56

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

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: usbip学习记载