如何在CentOS 7上构建内核反向端口?

时间:2016-05-03 20:09:24

标签: linux-kernel kernel-module backport

我使用Broadcom BCM43602 wifi芯片在2015年初在Macbook Pro上安装了CentOS 7。我通过挖掘有关wifi设置的CentOS文档尝试了所有其他方法。我终于意识到一个潜在的解决方案是为Linux centos7.localdomain 3.10.0-327.13.1.el7.x86_64 #1 SMP Thu Mar 31 16:04:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux 内核模块编译反向端口。

运行内核

make defconfig-brcmfmac

我做了什么

  • https://www.kernel.org/pub/linux/kernel/projects/backports/stable/
  • 下载并解压缩后端
  • 阅读backport documentation
  • make

  • [admin@centos7 backports-4.0.1-1]$ make mrproper CLEAN /home/admin/Documents/backports-4.0.1-1/.tmp_versions [admin@centos7 backports-4.0.1-1]$ make defconfigs-brcmfmac Generating local configuration database from kernel ... done. make[1]: *** No rule to make target `defconfigs-brcmfmac'. Stop. make: *** [defconfigs-brcmfmac] Error 2 [admin@centos7 backports-4.0.1-1]$ make defconfig-brcmfmac cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c cc conf.o zconf.tab.o -o conf boolean symbol HWMON tested for 'm'? test forced to 'n' boolean symbol HWMON tested for 'm'? test forced to 'n' # # configuration written to .config # [admin@centos7 backports-4.0.1-1]$ make make[5]: `conf' is up to date. boolean symbol HWMON tested for 'm'? test forced to 'n' boolean symbol HWMON tested for 'm'? test forced to 'n' # # configuration written to .config # Building backport-include/backport/autoconf.h ... done. CC [M] /home/admin/Documents/backports-4.0.1-1/compat/main.o In file included from include/linux/rcupdate.h:43:0, from /home/admin/Documents/backports-4.0.1-1/backport-include/linux/rcupdate.h:3, from include/linux/srcu.h:33, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:824, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /home/admin/Documents/backports-4.0.1-1/backport-include/linux/module.h:3, from /home/admin/Documents/backports-4.0.1-1/compat/main.c:1: /home/admin/Documents/backports-4.0.1-1/backport-include/linux/completion.h:14:20: error: redefinition of ‘reinit_completion’ static inline void reinit_completion(struct completion *x) ^ In file included from /home/admin/Documents/backports-4.0.1-1/backport-include/linux/completion.h:3:0, from include/linux/rcupdate.h:43, from /home/admin/Documents/backports-4.0.1-1/backport-include/linux/rcupdate.h:3, from include/linux/srcu.h:33, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:824, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /home/admin/Documents/backports-4.0.1-1/backport-include/linux/module.h:3, from /home/admin/Documents/backports-4.0.1-1/compat/main.c:1: include/linux/completion.h:86:20: note: previous definition of ‘reinit_completion’ was here static inline void reinit_completion(struct completion *x) ^ make[6]: *** [/home/admin/Documents/backports-4.0.1-1/compat/main.o] Error 1 make[5]: *** [/home/admin/Documents/backports-4.0.1-1/compat] Error 2 make[4]: *** [_module_/home/admin/Documents/backports-4.0.1-1] Error 2 make[3]: *** [modules] Error 2 make[2]: *** [modules] Error 2 make[1]: *** [modules] Error 2 make: *** [default] Error 2 并遇到错误。

下面的命令和输出日志。

<updateRequestProcessorChain>

我在这里缺少什么?

1 个答案:

答案 0 :(得分:0)

4.0.1?

centos 7基于3.10内核,除了Red Hat应用了大量自定义补丁并且代码库已经从上游3.10分歧。由于运气和/或kabi保证,上游补丁有可能无论如何都会起作用。

但真正的问题是你为什么试图在dekstop matchine上使用centos 7。如果你想使用与红帽相关的发行版,你可以试试fedora。否则试试ubuntu。