找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2136|回复: 10

小白编译padavan 成功 但是打开usb,编译后的固件也没有USB功能!

[复制链接]
配置文件吧n改成y

### Enable USB support
CONFIG_FIRMWARE_ENABLE_USB=y

然后编译 还是没有usb
我的恩山、我的无线 The best wifi forum is right here.
来自手机 | 显示全部楼层
好像要改两个文件
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
boards里面的配置文件也要改
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 401626436 于 2018-12-8 10:23 编辑

usb选项有usb2 usb2-pci usb3三个 没选就没有即使你选了其他usb字样的东西一样不能用,要想有usb这三个最基础也最关键

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

USB support 我的里面怎么没有?这些选项!  详情 回复 发表于 2018-12-8 18:07
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

/trunk/configs/boards/型号/board.mk
BOARD_NUM_USB_PORTS=1
1打开,0关闭
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

要紧的是改主板配置文件,# Linux/mips 3.4.112 Kernel Configuration

点评

/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=  详情 回复 发表于 2018-12-8 12:29
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

可以交流下编译方法么,我也在学习编译
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
隐形的肩膀 发表于 2018-12-8 10:27
要紧的是改主板配置文件,# Linux/mips 3.4.112 Kernel Configuration

/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
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
401626436 发表于 2018-12-8 10:01
usb选项有usb2 usb2-pci usb3三个 没选就没有即使你选了其他usb字样的东西一样不能用,要想有usb这三个最基 ...

USB support
我的里面怎么没有?这些选项!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

moleboy 发表于 2018-12-8 18:07
USB support
我的里面怎么没有?这些选项!

你的没有我怎么知道,重新拉取一份源码看下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

请问楼主有知道是什么问题,有解决吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 10:54

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表