杀毒软件吧
deepin
发表于 2025-07-09 02:47 网卡这种驱动其实应该优先集成到安装镜像里。
回复 点赞0 只看作者
网卡这种驱动其实应该优先集成到安装镜像里。
感谢分享
小白一枚,请问是安装包怎样去使用呀
deepin 25 安装您修改过的还是不太行
Error! Bad return status for module build on kernel: 6.12.65-amd64-desktop-rolling (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
dpkg: 处理软件包 broadcom-sta-dkms (--install)时出错:
已安装 broadcom-sta-dkms 软件包 post-installation 脚本 子进程返回错误状态 10
在处理时有错误发生:
broadcom-sta-dkms
make.log内容如下
DKMS make.log for broadcom-sta-6.30.223.271 for kernel 6.12.65-amd64-desktop-rolling (x86_64)
2026年 04月 07日 星期二 14:34:32 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.65-amd64-desktop-rolling/build M=pwd
make[1]: 进入目录“/usr/src/linux-headers-6.12.65-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-17deepin12) 12.3.0
You are using: gcc (Deepin 12.3.0-17deepin15) 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_cfg80211_hybrid.c:1833:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int, int *)’ from incompatible pointer type ‘s32 (*)(struct wiphy *, struct wireless_dev *, s32 *)’ {aka ‘int (*)(struct wiphy *, struct wireless_dev *, int *)’} [-Werror=incompatible-pointer-types]
1833 | .get_tx_power = wl_cfg80211_get_tx_power,
| ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:1833:25: note: (near initialization for ‘wl_cfg80211_ops.get_tx_power’)
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:
| ^~~~~~~
In file included from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:81:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_iw.h:73: warning: "isprint" redefined
73 | #define isprint(c) bcm_isprint(c)
|
In file included from ./include/linux/string_helpers.h:6,
from ./include/linux/seq_file.h:7,
from ./include/linux/seq_file_net.h:5,
from ./include/net/net_namespace.h:194,
from ./include/linux/netdevice.h:38,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:69,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:27:
./include/linux/ctype.h:30: note: this is the location of the previous definition
30 | #define isprint(c) ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0)
|
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_attach’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:713:70: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
713 | WL_ERROR(("%s: init_rfkill_failure\n", __FUNCTION__));
| ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_open’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1112:38: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
1112 | OLD_MOD_INC_USE_COUNT;
| ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_event’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:2184:79: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2184 | WL_ERROR(("%s: WLC_GET_RADIO failed\n", __FUNCTION__));
| ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_start’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:2259:58: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
2259 | wl->pub->unit));
| ^
In file included from ./include/linux/srcu.h:21,
from ./include/linux/notifier.h:16,
from ./arch/x86/include/asm/uprobes.h:13,
from ./include/linux/uprobes.h:52,
from ./include/linux/mm_types.h:16,
from ./include/linux/mmzone.h:22,
from ./include/linux/gfp.h:7,
from ./include/linux/umh.h:4,
from ./include/linux/kmod.h:9,
from ./include/linux/module.h:17,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:40:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_down’:
./include/linux/workqueue.h:765:9: warning: call to ‘__warn_flushing_systemwide_wq’ declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
765 | __warn_flushing_systemwide_wq();| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1502:25: note: in expansion of macro ‘flush_scheduled_work’
1502 | flush_scheduled_work();
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:229:/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.o] 错误 1
make[2]: *** [/usr/src/linux-headers-6.12.65-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.65-amd64-desktop-rolling”
make: *** [Makefile:183:all] 错误 2
热门活动
查看更多
今天使用华硕 笔记本(型号:FL5600L)按照deepin 25, 正常安装完成。
但是安装完成之后,只有有线网,没有wifi, 在网上搜索到,只需要安装
broadcom-sta-dkms 即可完美解决,结果在安装过程中,出现以下错误:
经查看发现是: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