Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a driver file wl.ko. How can I install it or where should I put it that my wifi works on my Asus 1018?

Network controller: Broadcom Corporation BCM4313 802.11b/g LP-PHY

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Only load the kernel module if it was compiled for it. You can check that by running modinfo -F vermagic /path/to/wl.ko. It's output would look like:

2.6.35-28-generic SMP mod_unload modversions 

The 2.6.35-28-generic part is the kernel version for which the module was compiled. It should match the output of uname -r. If these versions do match, proceed. Otherwise, stop.

Before following the next steps, test whether the module would load:

modprobe -nv wl

If the module would load, it shows something like:

insmod /lib/modules/2.6.35-28-generic/kernel/net/wireless/wl.ko
  1. Copy the module to the modules directory by running:

    sudo install -m 644 /lib/modules/$(uname -r)/kernel/net/wireless/wl.ko
    
  2. Update the module dependencies map for all modules by running:

    sudo depmod -a
    
  3. Load the kernel module in the current session:

    sudo modprobe wl
    

    If you get any errors, do not proceed, remove the module by running:

    sudo rm /lib/modules/$(uname -r)/kernel/net/wireless/wl.ko
    sudo depmod -a
    
  4. Add wl to /etc/modules by running:

    echo wl | tee -a /etc/modules
    
  5. Update your initial ramdisk with the kernel module by running:

    sudo update-initramfs -u
    
share|improve this answer
    
I write this comment on my asus per wifi :) –  vrcmr Apr 14 '11 at 21:04
add comment

It goes in /lib/modules/<kernel-version>/kernel/net/wireless where is most likely 2.6.35-22-generic, to make sure of it do:

$ ls /lib/modules/

And see the highest entry there.

Make sure to make a modprobe wl after you got that file copied

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.