网卡BCM57785安装
Tofloor
poster avatar
superscan
deepin
2020-09-21 21:28
Author
我的笔记本网卡是BCM57785,从官网下载驱动后,安装出现下面的错误:
yawl@yawl-PC:~/Documents$ sudo make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: 进入目录“/usr/src/linux-headers-5.4.50-amd64-desktop”
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /home/yawl/Documents/src/wl/sys/wl_linux.o
/home/yawl/Documents/src/wl/sys/wl_linux.c: In function ‘wl_pci_probe’:
/home/yawl/Documents/src/wl/sys/wl_linux.c:772:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  if ((val & 0x0000ff00) != 0)
  ^~
/home/yawl/Documents/src/wl/sys/wl_linux.c:774:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   bar1_size = pci_resource_len(pdev, 2);
   ^~~~~~~~~
/home/yawl/Documents/src/wl/sys/wl_linux.c: In function ‘wl_init_timer’:
/home/yawl/Documents/src/wl/sys/wl_linux.c:2355:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
  init_timer(&t->timer);
  ^~~~~~~~~~
  init_timers
/home/yawl/Documents/src/wl/sys/wl_linux.c:2356:10: error: ‘struct timer_list’ has no member named ‘data’
  t->timer.data = (ulong) t;
          ^
/home/yawl/Documents/src/wl/sys/wl_linux.c:2357:20: error: assignment to ‘void (*)(struct timer_list *)’ from incompatible pointer type ‘void (*)(ulong)’ {aka ‘void (*)(long unsigned int)’} [-Werror=incompatible-pointer-types]
  t->timer.function = wl_timer;
                    ^
/home/yawl/Documents/src/wl/sys/wl_linux.c: In function ‘wl_monitor’:
/home/yawl/Documents/src/wl/sys/wl_linux.c:2918:10: error: ‘struct net_device’ has no member named ‘last_rx’
  skb->dev->last_rx = jiffies;
          ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:266:/home/yawl/Documents/src/wl/sys/wl_linux.o] 错误 1
make[1]: *** [Makefile:1706:/home/yawl/Documents] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.4.50-amd64-desktop”
make: *** [Makefile:159:all] 错误 2


直接安装
yawl@yawl-PC:~/Documents$ sudo make install
install -D -m 755 wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
install: 无法获取'wl.ko' 的文件状态(stat): 没有那个文件或目录
make: *** [Makefile:168:install] 错误 1


还望大神指导安装,好惆怅!


Reply Favorite View the author
All Replies
superscan
deepin
2020-09-22 13:01
#1
我装的系统是最新的deepin 20系统,5.4内核,希望有人能帮忙解决,谢谢。
Reply View the author
deepin-chinaren
deepin
2020-09-22 14:36
#2
把下载地址发出来
Reply View the author
superscan
deepin
2020-09-22 15:06
#3
Broadcom BCM57785驱动下载地址:https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
下载截图

系统显示网卡信息:

yawl@yawl-PC:~/Documents$ lspci -vnn -d 14e4:
04:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetLink BCM57785 Gigabit Ethernet PCIe [14e4:16b5] (rev 10)
设备管理器截图

目前网卡状态是无线网卡无法找到无线信号。

Reply View the author
deepinuser17
deepin
2020-09-22 15:33
#4
深度自带了驱动器wl.  安装broadcom-sta-dkms试试。
  1. sudo apt install broadcom-sta-dkms
Copy the Code


关机,重启。
Reply View the author
superscan
deepin
2020-09-22 15:40
#5
使用APT安装broadcom-sta-dkms应该是需要联网的,我这里只有无线网络,没有有线网络。很尴尬的环境。
输入命令后结果提示错误,无法定位软件包 broadcom-sta-dkms
想问下有没有离线安装包之类的东西,可以离线安装。
Reply View the author
xieqin74123
deepin
2020-09-22 19:11
#6
https://bbs.deepin.org/post/202604
使用APT安装broadcom-sta-dkms应该是需要联网的,我这里只有无线网络,没有有线网络。很尴尬的环境。
输入 ...

插手机开USB网络共享下载吧,我有个博通网卡就是这么干的
Reply View the author