Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old June 22nd, 2006   #1
ubunturules
Way Too Much Ubuntu
 
Join Date: Dec 2005
Location: Wendell, NC
Beans: 221
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to ubunturules
HOWTO: Broadcom 4306 With Ndiswrapper 54 Mbps

If you used my guide I would like to hear from you to know how it went and if you're having any problems. I just updated it a little bit and I want to know if everything still works. Please let me know.

I just worked on the guide for a little bit. Changed a couple things to make it a little less confusing. My website that I was using to host the drivers and pictures got shut down so now I am hosting my drivers on rapidshare. Please note that if you are getting errors there is 5 problems fixes at the end of the guide.

This is the easiest way to get your Broadcom 4306 wireless card working in the shortest amount of time. I wouldn't use the firmware cutter because it only allows you to run at 11 Mbps with it. With ndiswrapper you will get 54 Mbps if your router will allow it.

This guide now works with every Ubuntu distro from Dapper to Intrepid!

The Drivers listed below work for most broadcom 4306 wireless cards but not all of them. If you use the drivers below and your card doesn'tshow up under network then you should try using the driver that came with your card or go to the manufacturer's website.

Get the 32 bit drivers from here or the website of the manufacturer of your wireless card.

Get the 64 bit drivers from here. I've heard that you don't change the name .inf file to bcmwl5.inf just keep it the way it is.

Do everything in the order as it is listed.

run the following command to make sure you have a broadcom chipset wireless card.
1.
Code:
lspci | grep Broadcom\ Corporation
2.
Code:
sudo rmmod bcm43xx
If you get an error message saying ERROR: Module bcm43xx does not exist in /proc/modules it is ok and you can move on to the next step.

3.
Code:
echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist
5. You will need the Ubuntu CD to get these packages.
Code:
sudo aptitude install build-essential
6.
Code:
uname -r
Insert the output of the uname -r command into the following 2 commands where the numbers are at

7.
Code:
sudo aptitude install linux-headers-2.6.22-14-generic
Insert the output of the uname -r command into the following 2 commands where the numbers are at

8.
Code:
sudo ln -s /usr/src/linux-2.6.22-14-generic /lib/modules/2.6.22-14-generic/build
Download ndiswrapper
9.
Code:
wget http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.53.tar.gz
Make a folder for ndiswrapper and place it in there
10.
Code:
mkdir ~/ndiswrapper
mv ndiswrapper-1.53.tar.gz ~/ndiswrapper
Install ndiswrapper
11.
Code:
cd ~/ndiswrapper
sudo tar -xvzf ndiswrapper-1.53.tar.gz
cd ~/ndiswrapper/ndiswrapper-1.53
make distclean
sudo make
sudo make install
12 If you are running Dapper or Edgy run this command. Some people say that compiling it works for them and some people say getting it with synaptic so I thought if you just installed both then you'll have some form of ndiswrapper working. If you don't have a working internet connection then you can get these packages off of the Ubuntu CD.
Code:
sudo apt-get install ndiswrapper-utils-1.8
If you are running Feisty or any version higher than Feisty run this command. You might need the Ubuntu CD to get these packages.
Code:
sudo apt-get install ndiswrapper-utils-1.9
If you can't get ndiswrapper from any of the sources above you can get it from the Ubuntu CD.

13.
Code:
sudo ndiswrapper -i ~/folder where driver is/bcmwl5.inf
If you are using the 64 bit drivers run this command
Code:
sudo ndiswrapper -i ~/folder where driver is/netbc564.inf
Make sure the .sys file is in there also, without it, it won't work


14.
Code:
ndiswrapper -l
To make sure the hardware is present


15.
Code:
sudo ndiswrapper -m
To load ndiswrapper automatically when the wlan0 interface is used


16.
Code:
echo 'ndiswrapper' | sudo tee -a /etc/modules
16. B
Code:
sudo gedit /etc/init.d/wirelessfix.sh
Paste this into that file
Quote:
#!/bin/bash

modprobe -r b44
modprobe -r b43
modprobe -r b43legacy
modprobe -r ssb
modprobe -r ndiswrapper
modprobe ndiswrapper
modprobe b44
Close and save that file
Code:
cd /etc/init.d/ && sudo chmod 755 wirelessfix.sh
Code:
sudo update-rc.d wirelessfix.sh defaults
17.
Code:
sudo iwconfig wlan0
If you are running Gutsy or any version higher than Gutsy restart your computer and skip to step 26.
Enable the Connection

18. Go to System -> Administration -> Networking

19. If you don't see any wlan0 connections in Networking then you should restart your computer.

20. Go to your eth0 connection and disable the connection.

21. Now go to your wlan0 connection and enable it.

Network Manager

If you need WPA or WEP encryption do the following:

Note: If you are running Feisty or any version higher than Feisty you can skip steps 22 through 25.

22.
Code:
sudo apt-get install network-manager-gnome
23.
Code:
sudo gedit /etc/network/interfaces
24. Comment out anything in there at the bottom that has to do with your wireless essid. You need to also comment out anything that says eth1, eth2, or atho. When I say comment out that means put a # in from of it. You can leave all of the eth0, wlan0, lo, inet, and auto stuff.

25.
Code:
nm-applet
26. Now click on the applet that is in the top right corner and you should see all of the available connections. Click on yours and set it up.

SOLUIONS TO PROBLEMS

Problem 1

If wlan0 isn't showing up under your network connections and you're getting invalid driver errors when you run ndiswrapper -l then go to post #746 on page 75. It helped a bunch of people so maybe it will help you. The following commands are from that post.
Code:
sudo gedit /etc/udev/rules.d/70-persistent-net.rules
Look for the entry for your bcm43xx device and change the NAME at the end to wlan0, example below.

# PCI device 0x14e4:0x4320 (bcm43xx)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:03:c9:70:7b:a9", NAME="wlan0"

Thanks fireant for the fix for problem 1

Problem 2
Totoro found a fix for the eth1 problem. Thank You Totoro!
add ndiswrapper to /etc/modules
change eth1 -> wlan0 in the files below:
Code:
sudo gedit /etc/modeprobe.d/ndiswrapper
sudo gedit /etc/network/interfaces
sudo gedit /etc/iftab
Problem 3
Shaton found a fix for the FATAL: Error inserting ndiswrapper problem. Thank You Shaton!
If you get an error saying

FATAL: Error inserting ndiswrapper (/lib/modules/2.6.17-10-generic/kernel/drivers/net/ndiswrapper/ndiswrapper.ko): Invalid argument

then try this.
Code:
sudo apt-get install ndiswrapper-utils-1.8
sudo rm /usr/sbin/ndiswrapper
sudo ln -s /usr/sbin/ndiswrapper-1.8 /usr/sbin/ndiswrapper
If you are using Feisty then you will need to put a 9 where the 8 is.

Problem 4
If you get a lot of error messages talking about the icon then run this command:

Code:
sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/
Problem 5
If you have to run modprobe ndiswrapper every time you reboot your computer run this command.

Code:
echo 'ndiswrapper' | sudo tee -a /etc/modules
Thanks Phifer for the fix for problem 5

I hope this helps a lot of people!

Last edited by ubunturules; October 1st, 2009 at 05:45 PM..
ubunturules is offline   Reply With Quote
Old June 23rd, 2006   #2
ubunturules
Way Too Much Ubuntu
 
Join Date: Dec 2005
Location: Wendell, NC
Beans: 221
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to ubunturules
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

did this HOWTO help anyone?
ubunturules is offline   Reply With Quote
Old June 23rd, 2006   #3
thinkinvisible
First Cup of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

Worked for me as far as activation. However, upon reboot, none of my network interfaces are recognized in network manager. I'm sure it was something on my end though. Nice guide! Thanks for posting it.

EDIT: Upon a second reboot, wireless is up and running.

Last edited by thinkinvisible; June 23rd, 2006 at 07:21 PM..
thinkinvisible is offline   Reply With Quote
Old June 23rd, 2006   #4
ubunturules
Way Too Much Ubuntu
 
Join Date: Dec 2005
Location: Wendell, NC
Beans: 221
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to ubunturules
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

It's good to know I helped someone because I remember how it was back in the day when I couldn't get my wireless card working and I was tired of reading so many HOWTO's that didn't work.
ubunturules is offline   Reply With Quote
Old June 23rd, 2006   #5
xXx 0wn3d xXx
Dark Roasted Ubuntu
 
xXx 0wn3d xXx's Avatar
 
Join Date: Jan 2006
Beans: 1,113
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to xXx 0wn3d xXx
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

I don't think ndiswrapper works with network-manager but that it just from what I know. And as for deleting your interfaces file, how about commenting it out in case you need it/things don't work out. Nice tutorial by the way.
xXx 0wn3d xXx is offline   Reply With Quote
Old June 23rd, 2006   #6
ubunturules
Way Too Much Ubuntu
 
Join Date: Dec 2005
Location: Wendell, NC
Beans: 221
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to ubunturules
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

ndiswrapper does work with network-manager.
ubunturules is offline   Reply With Quote
Old June 23rd, 2006   #7
xXx 0wn3d xXx
Dark Roasted Ubuntu
 
xXx 0wn3d xXx's Avatar
 
Join Date: Jan 2006
Beans: 1,113
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to xXx 0wn3d xXx
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

Quote:
Originally Posted by ubunturules
ndiswrapper does work with network-manager.
Ok, like I said I wasn't sure. It didn't work with my Broadcom card and ndiswrapper.
xXx 0wn3d xXx is offline   Reply With Quote
Old June 23rd, 2006   #8
ubunturules
Way Too Much Ubuntu
 
Join Date: Dec 2005
Location: Wendell, NC
Beans: 221
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to ubunturules
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

that's weird. Did you follow this guide? Are you sure its a broadcom card? It does work with ndiswrapper though.
ubunturules is offline   Reply With Quote
Old June 23rd, 2006   #9
xXx 0wn3d xXx
Dark Roasted Ubuntu
 
xXx 0wn3d xXx's Avatar
 
Join Date: Jan 2006
Beans: 1,113
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to xXx 0wn3d xXx
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

Quote:
Originally Posted by ubunturules
that's weird. Did you follow this guide? Are you sure its a broadcom card? It does work with ndiswrapper though.
Well I'm using the bcm43xx kernel (2.6.17ck1) module on Archlinux but I tried to get it (Broadcom 4318 + ndiswrapper) to work a long time ago. About 2 months to be exact and it didn't work at all but everything it fine now.
xXx 0wn3d xXx is offline   Reply With Quote
Old June 23rd, 2006   #10
ubunturules
Way Too Much Ubuntu
 
Join Date: Dec 2005
Location: Wendell, NC
Beans: 221
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to ubunturules
Re: Broadcom 4306 With Ndiswrapper 54 Mbps

awesome. good to hear.
ubunturules is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:56 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry