赞
踩
1. kernel config
<M> USB Gadget precomposed configurations
<M> Ethernet Gadget (with CDC Ethernet support)
<M> Network Control Model (NCM) support
2. build modules
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
LD [M] drivers/usb/gadget/function/u_ether.ko
LD [M] drivers/usb/gadget/function/usb_f_ncm.ko
LD [M] drivers/usb/gadget/legacy/g_ncm.ko
LD [M] drivers/usb/gadget/libcomposite.ko
3. test on ubuntu
ubuntu ver: ubuntu 14(kernel 3.13)
test mc40 usb2.0 device in haps
3.1 config & build module, then copy these ko to ~/repo-usb/rootfs/rootfs-m/opt/ko/usb/gadget
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。