首页 新闻 会员 周边 捐助

3798mv200机顶盒,安装USB WiFi RTL8192cu失败

0
悬赏园豆:5 [待解决问题]

1、华为的3798mv200机顶盒,Ubuntu 20.04 LTS Focal Fossa系统版本(官网内核5.4版本),但实际内核确是4.4.35定制版本;然后sources list是20.04 Focal,自动安装的linux_headers是5.4.0-198-generic;dkms能编译出8192cu.ko。单独运行dkms install ,提示DKMS tree already contains: 8192cu-1.11,但wifi设备没有看到。不知道哪儿错了?

2、安装linux-headers-4.4.40-040440,创建4.4.35_ecoo_82112068到linux-headers-4.4.40-040440的链接,单独编译 8192cu-1.11,依然提示不能找到4.4.35_ecoo_82112068 headers。

3、使用insmod 安装5.4.0-198-generic headers编译的ko文件,提示Invalid module format。应该是编译时使用的内核版本不对导致无法安装。问题是找不到定制内核的头文件4.4.35_ecoo_82112068 headers,就不能用其他版本替代吗?如何替代?通过链接方式不可行?

root@hi3798mv200:/lib/modules# insmod /usr/lib/modules/5.4.0-198-generic/updates/dkms/8192cu.ko
insmod: ERROR: could not insert module /usr/lib/modules/5.4.0-198-generic/updates/dkms/8192cu.ko: Invalid module format

root@hi3798mv200:/lib/modules# ll
total 12
drwxr-xr-x 3 root root 4096 Oct 19 00:26 ./
drwxr-xr-x 56 root root 4096 Oct 18 00:34 ../
lrwxrwxrwx 1 root root 36 Oct 19 00:23 4.4.35_ecoo_82112068 -> /usr/src/linux-headers-4.4.40-040440/
drwxr-xr-x 3 root root 4096 Oct 19 00:27 5.4.0-198-generic/

参考信息如下:------------------------------------------------------------------------------------------------
1、uname -r
4.4.35_ecoo_82112068

2、/etc/ap/sources.list

See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

newer versions of the distribution.

deb http://repo.huaweicloud.com/ubuntu-ports/ focal main restricted

3、sudo apt-get install git linux-headers-generic build-essential dkms
/usr/lib/modules/5.4.0-198-generic/updates/dkms/8192cu.ko

4、/lib/modules/
5.4.0-198-generic

5、root@hi3798mv200:/usr/lib/modules/5.4.0-198-generic# ls
build modules.builtin.alias.bin modules.dep.bin modules.symbols
modules.alias modules.builtin.bin modules.devname modules.symbols.bin
modules.alias.bin modules.dep modules.softdep updates

6、root@hi3798mv200:/usr/src/8192cu-1.11# ls
8192cu-disable-power-management.conf clean dkms.conf include os_dep runwpa
blacklist-native-rtl8192.conf core hal Makefile README.md

root@hi3798mv200:/usr/src# dkms install 8192cu-1.11
Error! DKMS tree already contains: 8192cu-1.11
You cannot add the same module/version combo more than once.

7、root@hi3798mv200:/usr/src# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

8、root@hi3798mv200:/usr/src# ls /sys/class/net/
bond0 bonding_masters dummy0 eth0 lo sit0

zhang1701的主页 zhang1701 | 初学一级 | 园豆:197
提问于:2024-10-19 12:04
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册