|
本帖最后由 moleboy 于 2018-12-8 15:27 编辑
/opt/rt-n56u/trunk/configs/templates/k2P_nanousb.config
### Enable USB support
CONFIG_FIRMWARE_ENABLE_USB=y
/opt/rt-n56u/trunk/configs/boards/K2P/kernel-3.4.x.config
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB_ARCH_HAS_XHCI=y
CONFIG_USB_SUPPORT =y
/opt/rt-n56u/trunk/configs/boards/K2P/board.mk
CFLAGS += -DBOARD_K2P
BOARD_NUM_USB_PORTS=1
终端会提示一堆和usb相关的 n/m/y (no/??/yes)
这个中间的m是什么意思?
编译出错
开启usb 就编译不成功。。
/opt/rt-n56u/trunk/user/wireless_tools/libiw.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
web_ex.o.data.rel+0x40c): undefined reference to `ej_get_usb_ports_info'
collect2: ld returned 1 exit status
Makefile:58: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/opt/rt-n56u/trunk/user/httpd'
Makefile:226: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/rt-n56u/trunk/user'
Makefile:209: recipe for target 'user_only' failed
make: *** [user_only] Error 2 |
|