[Internal testing communication] 华硕电脑解决安装deepin25无wifi驱动的问题
Tofloor
poster avatar
Amor
deepin
2025-07-08 23:43
Author

今天使用华硕 笔记本(型号:FL5600L)按照deepin 25, 正常安装完成。

但是安装完成之后,只有有线网,没有wifi, 在网上搜索到,只需要安装

broadcom-sta-dkms 即可完美解决,结果在安装过程中,出现以下错误:

DKMS make.log for broadcom-sta-6.30.223.271 for kernel 6.12.33-amd64-desktop-rolling (x86_64)
2025年 07月 08日 星期二 22:02:17 CST
CFG80211 API is prefered for this kernel version
Makefile:91: Neither CFG80211 nor Wireless Extension is enabled in kernel
KBUILD_NOPEDANTIC=1 make -C /lib/modules/6.12.33-amd64-desktop-rolling/build M=`pwd`
make[1]: 进入目录“/usr/src/linux-headers-6.12.33-amd64-desktop-rolling”
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Deepin 12.3.0-17deepin8) 12.3.0
  You are using:           gcc (Deepin 12.3.0-17deepin14) 12.3.0
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_iw.o
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.o
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:59:10: fatal error: asm/unaligned.h: 没有那个文件或目录
   59 | #include 
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:229:/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o] 错误 1
make[3]: *** 正在等待未完成的任务....
In file included from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:43:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_set_auth_type’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.h:52:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   52 |         if (wl_dbg_level & WL_DBG_DBG) {                        \
      |            ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:811:17: note: in expansion of macro ‘WL_DBG’
  811 |                 WL_DBG(("network eap\n"));
      |                 ^~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:813:9: note: here
  813 |         default:
      |         ^~~~~~~
make[2]: *** [/usr/src/linux-headers-6.12.33-amd64-desktop-rolling/Makefile:1953:/var/lib/dkms/broadcom-sta/6.30.223.271/build] 错误 2
make[1]: *** [Makefile:224:__sub-make] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-6.12.33-amd64-desktop-rolling”
make: *** [Makefile:183:all] 错误 2

经查看发现是:wl_linux.c 文件中第 59 行 没有此 asm/unaligned.h 头文件,使用 deepseek 得到解决方案,是因为新内核中 asm/unaligned.h 已被替换为 linux/unaligned.h。将 第59行

#include

修改为

#include

重新编译即可。

但是,deepin 25系统文件为只读,无法直接修改,所以就将之前安装时下载的deb包(在此目录下:/var/cache/apt/archives)

复制到桌面,重新解包,修改之后重新打包,重新安装软包,重启系统即可解决。

以下是修改过后重新打包的安装包:

broadcom-sta-dkms_6.30.223.271-24_all.zip

Reply Favorite View the author
All Replies
杀毒软件吧
deepin
2025-07-09 02:47
#1

网卡这种驱动其实应该优先集成到安装镜像里。

Reply View the author
jjcui8595
deepin
Resources Team
2025-07-09 08:30
#2

感谢分享like

Reply View the author
137******71
deepin
2025-10-05 01:07
#3

小白一枚,请问是安装包怎样去使用呀

Reply View the author