1. 程式人生 > >linux 無線網絡卡

linux 無線網絡卡

Source RPMs for Broadcom drivers

Please note: The current Broadcom closed-source Linux drivers when built according to the instructions provided here have provided functional wireless capability to some users, but have failed for other users.

Broadcom Corp. provides closed-source IEEE 802.11a/b/g/n Linux drivers for use with Broadcom's BCM4311, BCM4312, BCM4313, BCM4321, BCM4322, BCM4331, BCM4352, BCM4360, BCM43142, BCM43224, BCM43225, BCM43227 and BCM43228 wireless chipsets. We (ELRepo) cannot create and redistribute binary RPMS for these drivers due to the Broadcom licensing restrictions (i.e., liability issues). However, we do make available no-source SRPMS (.nosrc.rpm) which contain the framework required to build the binaries, but lack the proprietary code and are not subject to Broadcom's licensing restrictions.

These no-source SRPMS can be used by the end user to build kABI-compatible binary drivers for local use. These kABI-compatible binaries should be usable after future kernel updates, so there is no need to recompile them for each new kernel. Please note that the nosrc.rpm package does not build kmod-wl for kernel-xen and kmod-wl cannot be built on a system running kernel-xen.

To build a kmod-wl binary, you will need to (1) configure a build tree, (2) download the wl-kmod*nosrc.rpm for your EL release, (3) download the closed-source tarball from Broadcom for your architecture (i.e., 32-bit vs 64-bit) into the build tree and (4) initiate the kmod-wl build. For convenience, the kernel development package for the running kernel will be used in the build process, as opposed to our normal policy of building against an older kernel development package.

The kmod-wl package can be built on any system running the same EL release/architecture as the target system. If you are building on the target system and lack network connectivity, then the downloads can be made onto a USB flash drive and copied onto your system.

Below are the detailed instructions on how to build the binary packages from our no-source SRPM. If you are already familiar with using rpmbuild to build packages, then this process should only take you 5-10 minutes to complete.


Kmod-wl Usability Across EL Point Releases (or ″Why doesn′t my wireless work after the last point release update?″):


If you are only interested in building kmod-wl for the latest kernel, then you do not really need to read this section, but it would not hurt to understand the underlying issues.

The EL6 and EL7 kmod-wl binaries are typically only functional within a range of EL point releases (e.g., 6.7, 7.2) due to changes in the wireless stack-related kernel API of the EL 6 and EL 7 kernels. RHEL 
backports
(external link) components of recent kernels so that more modern kernel features and security fixes are available to the user. These backports become most notable when a new point release becomes available.

Our kmods continue to work after updating the kernel as long as the Kernel Application Binary Interface (kABI) remains unchanged with respect to our packages. EL point releases sometime break this compatibility. For the kmod-wl package, we make changes to the wl-kmod srpm to accommodate these changes. One down side is that the newly built kmod-wl only works within the newest RHEL point release after a wl-kmod srpm update. To maintain backward compatibility of the wl-kmod srpm, we craft it to build slightly different kmod-wl packages depending on the point release kernel used to build it.

If your interest is to only use the newest kernel, then you can just boot to the newest kernel and follow the instructions (below) to build a usable kmod-wl. However, if you need to continue using an older kernel, then you can use the updated wl-kmod srpm to build a kmod-wl package that works with the older kernel.

How to do that:
 If you build kmod-wl from the updated srpm after booting the latest kernel, then you can save that kmod-wl for use with the latest kernel. Likewise, you can build kmod-wl from the updated srpm after booting an older point release kernel and then save that kmod-wl for use with the older point release kernel. (For users familiar with using rpmbuild, you can also use the " --define 'kversion TARGET-KVERSION ' " option to avoid booting different kernels.) Unfortunately, you can only have one of those kmod-wl packages installed at a time, so save both kmod-wl packages, but only install one of them. Note that they have exactly the same version (i.e., their rpm names are identical), so save them in separate folders.

For example, you can build kmod-wl under an EL 7.1 kernel and use it with EL 7.1 kernels, but it will not function when you boot an EL 7.0 kernel. Likewise, you can build kmod-wl under an EL 7.0 kernel and use it with EL 7.0 kernels, but it will not function when you boot an EL 7.1 kernel.

If you need a kmod-wl package that works within one of the following ranges, then boot a kernel in that range and build/install kmod-wl as described below.

   Supported EL 6 Point Release Ranges: (1) 6.3 - 6.4, (2) 6.5 - 6.6, (3) 6.7

   Supported EL 7 Point Release Ranges: (1) 7.0, (2) 7.1, (3) 7.2


Build and install kmod-wl for EL5/6/7

   Please note:

     If your current kmod-wl package works with an older kernel and wireless networking is your only Internet access method,
     then boot the older kernel and download the new srpm and Broadcom source before proceeding.


1) Install needed tools/packages:


   1a) EL5:

     # yum groupinstall 'Development Tools'

     # yum install redhat-lsb

     * Install appropriate kernel*devel

       - For 32-bit:     # yum install kernel-devel-$(uname -r|sed 's/PAE//') kernel-PAE-devel-$(uname -r|sed 's/PAE//')

       - For 64-bit:     # yum install kernel-devel-$(uname -r)

   1b) EL6:

     # yum groupinstall 'Development Tools'

     # yum install redhat-lsb kernel-abi-whitelists

     # yum install kernel-devel-$(uname -r)

       EL 6.4 - 6.6 Note: Due to a bug in redhat-rpm-config-9.0.3-42.el6, a modification is required to fix the
       kabi-whitelist target in /usr/lib/rpm/redhat/find-requires.ksyms before you build kmod-wl.

       Please run as root (as a single copy/paste):

       [[ $(rpm -q redhat-rpm-config|grep 9.0.3-42|wc -l) -gt 0 ]] && sed -i \
       '[email protected]/lib/modules/kabi/[email protected]/lib/modules/kabi-current/[email protected]' \
       /usr/lib/rpm/redhat/find-requires.ksyms

       The above modification is not needed for EL 6.7 or later.


   1c) EL7:

     # yum group install 'Development Tools'

     # yum install redhat-lsb kernel-abi-whitelists

     # yum install kernel-devel-$(uname -r)

       EL 7.0 Note: Due to a bug in redhat-rpm-config-9.1.0-63.el7, a modification is required to fix the
       kabi-whitelist target in /usr/lib/rpm/redhat/find-requires.ksyms before you build kmod-wl.

       Please run as root (as a single copy/paste):

       [[ $(rpm -q redhat-rpm-config|grep 9.1.0-63|wc -l) -gt 0 ]] && sed -i \
       '[email protected]/lib/modules/kabi/[email protected]/lib/modules/kabi-rhel70/[email protected]' \
       /usr/lib/rpm/redhat/find-requires.ksyms

       The above modification is not needed for EL 7.1 or later.




2) As a regular user (not as root), configure a build tree and minimal .rpmmacros:


   $ mkdir -p ~/rpmbuild/{BUILD,RPMS,SPECS,SOURCES,SRPMS}

   $ echo -e "%_topdir $(echo $HOME)/rpmbuild\n%dist .el$(lsb_release -s -r|cut -d"." -f1).local" >> ~/.rpmmacros



3) Download wl-kmod*nosrc.rpm



4) Download the Broadcom driver matching your architecture (i.e., 32-bit vs 64-bit):


   from:   http://www.broadcom.com/support/?gid=1(external link) (scroll down to "Linux® STA 32-bit (or 64-bit) drivers")

   to:      ~/rpmbuild/SOURCES/



5) Build kmod-wl as a regular user (not as root):


   $ rpmbuild --rebuild --target=`uname -m` --define 'packager <your-name>' /<path-to-nosrc.rpm>/wl-kmod*nosrc.rpm
   ...
   Wrote: /home/<user>/rpmbuild/RPMS/x86_64/kmod-wl-<version>.x86_64.rpm
   ...
   + exit 0

     (Note: The rpmbuild option --target=`uname -m` is only required for EL5 32-bit builds.)



6) If ndiswrapper is installed and is no longer needed, then remove it:


     # yum remove \*ndiswrapper\*



7) Install kmod-wl:


   # rpm -Uvh /path-to-rpm/kmod-wl*rpm

   OR

   # yum --nogpgcheck localinstall /path-to-rpm/kmod-wl*rpm

       Please note: It is recommended, but is not critical, that you uninstall any older version of kmod-wl (i.e., rpm -e kmod-wl) before installing the new kmod-wl package.



8) Reboot or to start wireless now:


   8a) EL5:

     * Works immediately after installation without intervention

   8b) EL6:

     # modprobe -r b43 b43legacy ssb wl lib80211
     # modprobe -r bcma (Note: needed for EL 6.4 and later)
     # modprobe lib80211_crypt_tkip
     # modprobe wl

   8c) EL7:

     # modprobe wl



9) Store kmod-wl*rpm for safe keeping


10) Optional - Remove the build tree:


   $ rm -rf ~/rpmbuild



相關推薦

Linux 無線連線 WIFIWPA-PSK

Linux 無線網絡卡連線 WIFIWPA-PSK //編輯/etc/wpa_supplicant/wpa_supplicant.conf 檔案,內容如下 ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=whe

linux 無線的安裝

隨著 Wi-Fi 的普及,Linux系統對無線網路裝置的支援也日臻完善,但相對於Windows系統來說還稍顯不足。尤其是很多采用新式晶片而廠商又沒有提供針對Linux系統的驅動程式的情況下,這種狀況變得更為突出,在Windows系統下執行正常的無線裝置在Linux系統中卻無

linux 無線

Source RPMs for Broadcom drivers Please note: The current Broadcom closed-source Linux drivers when built according to the instructions provided here ha

linux 無線的連線(命令列) Part1 —— wpa_supplicant

如果是 ubuntu 系統的話,直接使用 network-manger 就可以連線了,使用 network-manager 是最簡單最方便連線網路的方法: 如果不是使用圖形介面,是命令列,則使用 network-manager 的命令列工具: nmcli

kali linux 無線驅動

8187的無線網絡卡驅動在kali linux中始終裝不成功,原因是沒有安裝核心標頭檔案,但是我在apt-get install的時候始終顯示找不到,在/etc/apt/soucelist裡面添加了好多源,apt-ge

Linux中USB無線實現AP模式(hostapd交叉編譯環境下)

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

Kali Linux ——在無網路情況下安裝無線驅動

1、背景:   今日剛剛開始學習kali linux,眾所周知,安裝完成後,系統是沒有無線網絡卡驅動的,這就對學生黨造成相當的困擾:校園網要連線有線是需要認證客戶端的,而認證客戶端只有windows端,如此一來,無線網也連不上,有線網也連不上,這就......很尷尬。   因此我走訪各大部落格,雖然沒能直接解

linux deepin 無線不能用,打不開

今天安裝了NVIDIA的大黃蜂驅動,重啟,開機,無線網打不開了, (後來又看到藍芽功能沒了,忙碌中知道了wifi和藍芽是在一起的,一損俱損!) 折騰了一下午 首先,我上deepin官網找了一圈,沒解決 然後搜尋網絡卡對應的無線網絡卡驅動,糾結著用【lspci】裡的Realtek Semiconduct

Centos&Redhat下bcm43142博通無線linux驅動之二

上次通過更換核心實現成功編譯驅動無線網絡卡,但是啟動到系統原核心下依然沒有bcm43142的驅動,遂準備在原核心下編譯驅動,記錄一下 ps:更推薦這種方法,避免因更換核心出現其他相容性問題 1.準備驅動包 hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz 點我下載

linux無線變身隨身wifi----iptables移植--結束

前面已經能夠連線上熱點了,ip也能獲取到了,可是,上不了網,為什麼呢??你會發現只有上傳的資料,沒有下載的資料,那是因為我們沒有做地址轉換,當資料包經過路由器的時候,他的MAC地址是會變得哦(這個文章有空會寫寫,最近不知道這麼的,突然喜歡上了寫部落格) 來看看地址轉換 使

Linux USB無線驅動相關資料收集

Linux下USB無線網絡卡驅動程式移植的實現 http://www.docin.com/p-297997312.html linux下安裝USB無線網絡卡驅動 http://wenku.baidu.com/view/fac9bb6da45177232f60a2e

linux下將無線工作模式切換為監聽模式

網上的辦法有些遺漏,根據它的方法會報錯如下: 即裝置忙,因此需要先關閉無線網絡卡,在無線網絡卡關閉狀態下改變工作模式: 關閉後執行如下命令 將工作模式切換到監聽模式之後再開啟無線網絡卡 成功: 輸入iwconfig即可看見mode變成了Monitor 完畢。 注意:

安裝 Realtek 系列無線 Linux 驅動

在Terminal,先檢視自己的無線網絡卡的usb id。 lsusb 示例輸出: Bus 002 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. Bus 002 Device 004: ID 0b

arm9+linux fl2440 實現RT3070無線AP模式並使開發板接入Wifi上網

----------------------------------------------------------------------------------------------------

linux啟用無線上網

1、使用cat /proc/version檢視linux核心版本號,我的系統是Linux version 2.6.32-220.el6.i686 2、使用cat /etc/issue檢視linux發行版本號,我的系統是Red Hat Enterprise Linux Ser

聯想筆記本linux不能啟動無線解決方法

1.每次開機不能使用無線網,輸入命令#sudo modprobe -r ideapad_laptop  //解除安裝ideapad_laptop模組,啟用無線網絡卡但是每次開機到要輸入一次這個命令,有點麻煩。2.進入/etc/modprobe.d/資料夾下建立.conf檔案,

Linux 下小米WIFI 的無線驅動

在小米的罈子裡看到了大神發的 小米WIFI 驅動 for Linux。於是就下載下來為自己的linux(Fedora 21 ,  kernel:3.17.8-300 )安裝小米WIFI 驅動。 過程記錄如下(其實也適用於 小度WIFI 和 360 WIFI ,只要用的是晶

Linux下開啟無線監聽模式

檢視通道 輸入即可檢視當前通道 sudo iwlist wlan0 channel 無線網絡卡開啟監聽模式 首先輸入 iwconfig 檢視無線網絡卡狀態, 大致可以看到以下情況 eth0 no wireless extensions. lo no

小米和360隨身wifi在linux(Ubuntu)下作無線教程

平臺: Ubuntu12.04  Ubuntu 13.04 說明: 隨身wifi本身無線網絡卡,但是廠商修改了PID,使其系統無法自動識別驅動。而改用他自帶的驅動軟體作為Ap來使用。 在裝置驅動管理,小米的晶片是ralink的MT7601U,去官網下載最新linux驅動就

linux-redhat6.4驅動無線rtl8188eu

無線網絡卡Realtek Semiconductor Cop. RTL8188EUS  首先下載安裝包: ​其中的0BDA是Realtek的程式碼,8179是裝置程式碼。從網上查到這個裝