About Me

My photo
Glossop, United Kingdom
You can email me andybleaden@gmail.com ,ICQ 277487048 or contact via twitter @andybleaden and yes I am still here-always will be!

Not f'd

Not f'd — you won't find me on Facebook

Tuesday, March 01, 2011

Learn how to sort your own Broadcom Wifi out in Meego


For as long as I have used Linux on my netbook (ie since I got it as it came with Kubuntu pre installed and windoze free!) the broadcom wireless has always been a pain whether in Ubuntu or Moblin or Meego.




For well over a year now I have followed what was a fool proof method on Slaine.org where Glen has provided an up to date guide and download for people whether on Moblin or Meego. Many thanks once again for this as it has helped me out ever since.



There have been some help on the forums with this and others have kindly provided downloads of one sort or another via the community repo for Meego or individuals uploading their file very kindly.

However all of these leave me reliant and dreading the day (as just happened) when a new kernel arrives and the older wifi wl-ko file becomes obsolete. I have put off learning how to do this so this last time I got a kernel upgrade proving Meego ain't dead (thanks Intel) but rendering my wifi dead. Rather than go back to Slaine I thought I would learn to do it myself.

Several minutes later I had done it and I will show you how to do it yourself so giving you a new skill in Meego.

MOST IMPORTANT OF ALL IF YOU ARE NOT CONFIDENT ON WHAT TO DO AFTER READING THIS STICK TO USING SLAINES GUIDE WHICH IS FOOL PROOF AND UPTO DATE- THIS IS ONLY FOR YOU TO LEARN HOW TO DO IT YOURSELF .

First some facts

1 I had just updated the kernel to a new version (version 14 from 12)after running
sudo zypper dist-upgrade  in a terminal.

2 This rendered the wifi dead and so I needed to rebuild from scratch.

3 I had to be wired in to carry this out (as the wifi was dead)

4 I am not going to give you direct download links as they are constantly updated and therefore become out of date on Broadcoms site

5 I will try to type all terminal commands in italics for you.

6 You will have already have or need to make you netbook ready to do building from source code (if you have not done this already open a terminal and type

sudo zypper install make gcc diffutils kernel-netbook-devel patch

This can/will take a long time but future proofs your netbook for when you need to do stuff like this again.






7 You will need to find the name of the kernel your netbook is using by typing
uname -r









How to do it

First we need to go to Broadcom who do (much to peoples lack of awareness) provide the actual driver for your wireless and update it for new kernels

I could give you the link for the file but this could change tomorrow so go instead to the Broadcom Linux website where the latest driver is there for you.

Broadcom Linux Website 

or if you want to copy and paste to your browser

http://www.broadcom.com/support/802.11/linux_sta.php
First trick, add this website to your bookmarks, when the driver updates ...you will have the link to the latest driver.

Read their read me as it tells you exactly how to compile them but unlike this blog it does not have fancy pictures or nice fonts (as it is just a text file)

So. Now you have read their guide, download the driver which is in a compressed folder and save it in your Download folders

Open a terminal up and move into the Downloads folder by typing
cd Downloads

Find the correct name of the new linux wifi driver by typing
ls 



This will show you the name of the compress file which ever version it is something like linux_sta/hybrid-portsrc_x86_32-v5_NEWVERSION.tar.gz
again it is pointless me giving you a name that will change.

Select and Copy this name in the list on your terminal
Then you need to make a temporary folder to work in
mkdir hybrid_wl

Move into that folder


cd hybrid_wl

Now you will need to extract the folder by typing
tar xzf /home/insertyourusername*/Downloads/rightclickand paste the name your copy of the tar.gz (see  above)


Now you have downloaded and extracted the latest version of the linux broadcom driver you can now build it. It will not take long.Type

make clean

 Then

make

Watch and you will see this will physically BUILD your new wifi driver called wl-ko 

Now you need to copy this into the kernels wireless folders (see point 7 above)
sudo cp wl.ko /lib/modules/(kernel version in use)-netbook/kernel/net/wireless/

This is copying to your new kernels wireless folder

Then type


sudo depmod -a

This sorts your kernel to reflect the new wl.ko driver

Then tell your netbook to use this

sudo modprobe wl

You should notice straight away now in your network panel that you have wifi..go and check.

YOU have successfully built your own wireless and NEXT TIME you can do this quite quickly and easily yourself.

It is actually quite quick to do and I managed it from scratch with not many commands (if you are not sure then either leave it or look at the history of what I did for mine which is here. All the commands I entered are highlighted below from 982 onwards til when I rebooted at 994.



Good luck and let me know how you get on.

What does all of that mean then?

As a summary of what you are doing go back and re read the guide and understand the following quicker guide for when the kernel in use was 2.6.35.3-14.2 and the broadcom wifi was V5_100_82_38

Instructions in italic Explanation in bold

wget http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_32-v5_100_82_38.tar.gz
Downloads the current driver directly from Broadcom

mkdir hybrid_wl
Creates a new folder to dump your built driver into called hybrid_wl
cd hybrid_wl
Gets into that folder

tar xzf /home/insertyourusername*/Downloads/hybrid-portsrc_x86_32-v5_100_82_38.tar.gz
Uncompresses your file


make clean
Sets up the netbook to make some source code


make
Builds your wifi drivers in front of your eyes! 

sudo cp wl.ko /lib/modules/2.6.35.3-14.2-netbook/kernel/net/wireless/
Copies your new wl.ko file (driver!) in the correct kernels wireless folder 

sudo depmod -a
Sets it up



sudo modprobe wl
Switches it on !


AGAIN STICK TO USING SLAINES GUIDE ON SLAINE.ORG IF YOU PREFER A SAFE - FOOLPROOF METHOD OF DOING THIS USING HIS SOURCE CODE RPM.