Compile and install the wireless NIC Driver Under Fedora16

Source: Internet
Author: User
I don't know how many open-source enthusiasts in the university are facing headaches for Linux drivers of different versions. Especially when I use the campus network, the junk software "star speed" must be installed for wired Internet access. If you want to use wireless devices, Fedora does not have the default wireless NIC driver as Ubuntu does, so you need to download, compile, and install it yourself. I thought it would be nice to compile it? But it's not that easy. In view of the fact that I have finally put my efforts into practice for several weeks and succeeded in this evening, I will record the installation process. To help

I don't know how many open-source enthusiasts in the university are facing headaches for Linux drivers of different versions. Especially when I use a campus network, wired Internet access is required.

Install the spam software "star speed" to dial the internet. If you want to use wireless devices, Fedora does not have a default wireless NIC Driver like Ubuntu, so you have to download and compile it yourself.

Installation. I thought it would be nice to compile it? But it's not that easy. Since we have finally put weeks of effort into practice and achieved success tonight

People record the installation process. First, we can help the white people who encounter the same situation and develop the spirit of the open-source community. 2. I am so excited that I can access the Internet in linux ..

(Expert Mo spray ....).

OK. Go to the topic after talking nonsense.

First of all, my wireless network card is Broadcom Corporation BCM4313, and the system is a DVD version of Linux fedora 16 3.1.0-7. fc16.i686. PAE completely

Installation version. (It is recommended to install the full version here, because the compiling environment requires GCC, kernel-headers, and kernel-devel. PAE versions also require kernel-PAE-

Devel. If you have installed the desktop version or you have not chosen to install it, you need to install it manually, which is quite troublesome ).

To install the driver on the command line, you should know the basic copy, decompress, and edit the text command. (If you do not know this yet, please first look at the basic commands and then join the internet cafe !)

I. Confirm the wireless network adapter [...] # lspci-vnn | grep 14e4

. 0 Network controller [0280]:BroadcomCorporation BCM4313 802.11b/g LP-PHY [14e4:4727] (Rev 01)

This is my wireless network card information

Ii. install the compiling environment [...] # yum install kernel-headers kernel-devel gcc

The yum installation requires Internet connection. What we are doing is to connect the system to the Internet. So it is better to install the full version of the system, so that the compiling environment is configured. As a exercise machine, it is best to install all the software.

3. Download the driver and decompress it to/usr/local/src/

My driver package is the http://www.broadcom.com/support/802.11/linux_sta.php downloaded from here 

4. Compile and enter the decompressed directory ["here is the decompressed directory"] # make

The following error occurs:

KBUILD_NOPEDANTIC = 1 make-C/lib/modules/'uname-R'/build M = 'pwd'
Make [1]: Enter the directory "/usr/src/kernels/3.1.0-7fc16. i686.PAE"
LD/usr/local/src/hybrid-wl/built-in.o
CC [M]/usr/local/src/hybrid-wl/src/shared/linux_osl.o
CC [M]/usr/local/src/hybrid-wl/src/wl/sys/wl_linux.o
/Usr/local/src/hybrid-wl/src/wl/sys/wl_linux.c: In the 'wl _ attach 'function:
/Usr/local/src/hybridge-wl/src/wl/sys/wl_linux.c: 485: 3: Error: implicit declaration function 'init _ MUTEX '[-Werror = implicit-function-declaration]
: Some warnings are treated as errors.


Make [2]: *** [/usr/local/src/hybrid-wl/src/wl/sys/wl_linux.o] Error 1
Make [1]: *** [_ module _/usr/local/src/hybrid-wl] Error 2
Make [1]: Leave the directory "/usr/src/kernels/3.1.0-7fc16. i686.PAE"
Make: *** [all] Error 2

Solution: [...] # vi/src/wl/sys/wl_linux.c

Go to the text editor and find init_MUTEX (& wl-> sem )..................... this requires you to be patient ....

 Change to sema_init (& wl-> sem, 1)

Add:

# Ifndef init_MUTEX
Sema_init (& wl-> sem, 1 );
# Else
Init_MUTEX (& wl-> sem );
# Endif ...................................... ......................... in addition, you should understand the basics of programming.

Save and exit. Recompile.

After this is done, the compilation should be fine. If there is still a problem, it is estimated that the character above is wrong. Pay attention to the details !!!


V. Go to the directory for subsequent work # insmod wl. ko

The error "error insort 'wl. ko '..." may occur.

Solution: Directory # cp wl. ko/lib/modules/3.1.0-7. fc16.i686. PAE/kernel/net/wireless/

Repeat insmod wl. ko.

Then # depmod-

# Modprobe wl

Restart

# Echo modprobe wl>/etc/rc. local


.............. Surprise !!!!!!!!!!


Postscript: Fedora 15 has an inheritance relationship with 16. In 15, it should also be OK ,,,,,,,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.