Showing posts with label ndiswrapper. Show all posts
Showing posts with label ndiswrapper. Show all posts

Friday, April 11, 2008

NDISwrapper In Hardy Heron

When the Dell 1501 first came out there were no native wireless drivers for the internal Broadcom chipset, so NDiswrapper was the only way to get wireless working. NDiswrapper uses a wireless devices' Windows driver in Linux. It works surprisingly well. Using NDiswrapper allows you to run the Broadcom card in your Dell 1501 at full speed and connect to certain networks that the native Broadcom driver can't. In Hardy Heron there was a slight problem with NDiswrapper. I found the fix to get ssb from loading before NDiswrapper from this forum post. Thanks to Ubuntu Forum user Mazza558, NDiswrapper is working again on the Dell 1501.

If you are using the native Broadcom driver via the Driver Manager and it's working for all your day to day needs, I wouldn't recommend taking the time to change drivers.

If you have already enabled the Broadcom restricted driver, uninstall it before attempting this guide.


Step 1: Stop ssb From Loading Before NDISwrapper
Make a script for NDISwrapper's fix
In a terminal type:
sudo gedit /etc/init.d/wirelessfix.sh

Paste this into the file:
#!/bin/bash

modprobe -r b44
modprobe -r b43
modprobe -r ssb
modprobe -r ndiswrapper
modprobe ndiswrapper
modprobe b44

Point the terminal to your init.d file and make your script exectuable:
In a terminal type:
cd /etc/init.d/ && sudo chmod 755 wirelessfix.sh

Update and make it stick:
In a terminal type:
sudo update-rc.d wirelessfix.sh defaults

Then reboot
In a terminal type:
sudo reboot


Step 2: Get Needed Packages
To install ndiswrapper
In a terminal type:
sudo apt-get install ndiswrapper-utils-1.9 ndiswrapper-common

or you can also try:
sudo apt-get install ndiswrapper-utils-1.9* ndiswrapper-common

***If the terminal outputs an error message, telling you NDISwrapper could not be found, insert the Ubuntu disc you used to install Hardy Heron and manually search for the file.



Get the Windows driver for your Dell 1501
In a terminal type:
wget http://ftp.us.dell.com/network/R140747.EXE


Step 3: Get Everything Ready
Now we will make a folder.
In a terminal type:
mkdir ~/.drivers

Now we will move R140747.EXE (the Dell driver), to the folder we just made.
In a terminal type:
mv ~/R140747.EXE ~/.drivers


STEP 4: Driver Setup
In order for us to unzip the R140747.EXE driver we need to point your terminal to the /.driver folder.
In a terminal type:
cd ~/.drivers

Unzip the R140747.EXE driver
In a terminal type:
unzip -a R140747.EXE

We need to point your terminal to the DRIVER folder we just unzipped
In a terminal type:
cd ~/.drivers/DRIVER


Step 5: Configure The Windows driver With NDISwrapper
Now install the Windows driver
In a terminal type:
sudo ndiswrapper -i bcmwl5.inf
Then:
sudo ndiswrapper -l (that is a lowercase L)

You should see a message that says driver present, hardware detected.

Now finish installing the driver
In a terminal type:
sudo ndiswrapper -m
Then:
sudo modprobe ndiswrapper

YOU MUST REBOOT NOW!
In a terminal type:
sudo reboot

STEP 6: TEST WIRELESS
Your wifi light on your laptop should be illuminated. If not, you can always turn it on and off with the Fn+F2 (Function & F2 Key) and you're all set! Try running this to see if your wireless card is functioning properly.

In a terminal type:
sudo iwlist scanning
edited by pHreaksYcle

Friday, April 4, 2008

Why NDISwrapper Didn't Work in Heron

The article doesn't apply anymore, NDISwrapper does work in Hardy Heron, you can find the fix here.

NDISwrapper is a free software driver wrapper that enables the use of Microsoft Windows drivers for wireless network devices (cards, USB modems, and routers), on Unix-like operating systems. Ndiswrapper works by implementing the Windows kernel and NDIS APIs, and dynamically linking the driver to this implementation.

With the release of Hardy Heron, I tried getting NDISwrapper working, as it was my prefered method of wireless on my Dell 1501. I tried a bunch of different methods but nothing worked for me. I was reading linux.slashdot.org today when I came across this article.

It explains why I was unable to get ndiswrapper to work in Hardy Heron. A change in the 2.6.24 kernel broke ndiswrapper by accidentally removing its access to GPL-only symbols. Without access to GPL-only symbols NDISwrapper is unable to implement the Windows kernel and NDIS APIs and link the driver.

Pavel Roskin attempted to patch the kernel to allow NDISwrapper to access those GPL-only symbols but Linus Torvalds shot down his patch. He stated, "I'm not seeing why ndiswrapper should be treated separately. If it loads non-GPL modules, it shouldn't be able to use GPLONLY symbols." He then went on to state, "ndiswrapper itself is *not* compatible with the GPL. Trying to claim that ndiswrapper somehow itself is GPL'd even though it then loads modules that aren't is stupid and pointless. Clearly it just re-exports those GPL ONLY functions to code that is *not* GPL'd."

Linus makes a excellent point, if NDISwrapper is going to abuse the use of GPL-only sysmbols by exporting them to code that is not GPL then they should not have access to GPL code. While it saddens me that the faster method of using the Broadcom card in my Dell Inspiron 1501 is gone, I do believe in the GPL.

Until then there's always:
sudo apt-get install b43-fwcutter
edited by pHreaksYcle

Friday, November 30, 2007

Wireless in Gutsy Gibbon with Ndiswrapper

Back when the Dell 1501 first came out there were no native wireless drivers for the internal Broadcom chipset, so we had to use Nidiswrapper. NdisWrapper uses a wireless devices' Windows driver in Linux. It works surprisingly well. Using ndiswrapper allows you to run the Broadcom card in your Dell 1501 at full speed and connect to certain networks that the native Broadcom driver can't. You won't surf the internet faster but your PC to PC connections will be faster. If you are using the native Broadcom driver via the Restricted Driver Manager and it's working for all your day to day needs, I wouldn't recommend taking the time to change drivers.

If you have already enabled the Broadcom restricted driver, uninstall it before attempting this guide.

Go to System>Administration>Restricted Driver Manager and unselect the enable box.
restricted_ati

Step 1: Get Needed Packages
To install ndiswrapper
In a terminal type:
sudo apt-get install ndiswrapper-utils-1.9 ndiswrapper-common

Get the Windows driver for your Dell 1501
In a terminal type:
wget http://ftp.us.dell.com/network/R140747.EXE

Step 2: Get Everything Ready
Now we will make a folder.
In a terminal type:
mkdir ~/.drivers

Now we will move R140747.EXE (the Dell driver), to the folder we just made.
In a terminal type:
mv ~/R140747.EXE ~/.drivers

Finally, we need to blacklist the broken and useless bcm43xx firmware drivers that try to load in a default Ubuntu install:
In a terminal type:
sudo su
Then type:
sudo echo blacklist bcm43xx >> /etc/modprobe.d/blacklist

YOU MUST REBOOT NOW!
In a terminal type:
sudo reboot

STEP 3: Get The Proper Folder
In order for us to unzip the R140747.EXE driver we need to point your terminal to the /.driver folder.
cd ~/.drivers

Unzip the R140747.EXE driver
In a terminal type:
unzip -a R140747.EXE

We need to point your terminal to the DRIVER folder we just unzipped
In a terminal type:
cd ~/.drivers/DRIVER

Step 4: Configure the Windows driver with ndiswrapper
Now install the Windows driver
In a terminal type:
sudo ndiswrapper -i bcmwl5.inf
Then:
sudo ndiswrapper -l (that is a lowercase L)

You should see a message that says driver present, hardware detected.

Now finish installing the driver
In a terminal type:
sudo ndiswrapper -m
Then:
sudo modprobe ndiswrapper

YOU MUST REBOOT NOW!
In a terminal type:
sudo reboot

STEP 5: TEST WIRELESS
Your WiFi light on your laptop should be illuminated. If not, you can always turn it on and off with the Fn+F2 (Function & F2 Key) and you're all set! Try running this to see if your wireless card is functioning properly.

In a terminal type:
sudo iwlist scanning

If once you get everything working and after a reboot and the wifi light does not come back on, simply repeat Step 4 and wireless will work again.


Step 6: Make it Stick
To autostart the ndiswrapper module
In a terminal type:
sudo gedit /etc/modules

and add this to the end of the file
ndiswrapper
edited by pHreaksYcle

Tuesday, July 10, 2007

akabrek's fix for people having trouble with ndiswrapper

People are reporting that every time at startup they have to do a "sudo modprobe ndiswrapper" to get their WiFi working again when using the ndiswrapper guide. akabrek has come up with a solution.


You could solve this problem by doing as follows:

sudo ndiswrapper -m
gksudo gedit /etc/modules

and simply append the word ndiswrapper at end of file. Then save and reboot.
It will boot ndiswrapper module everytime Ubuntu kernel is loaded.

Thanks redDEAD for your good work, very useful. Don't give up.

__________________________________________________________________

akabrek, thank you for you good work and keep reading!
edited by pHreaksYcle

Wednesday, July 4, 2007

Rewrote the Wi-Fi Guide

Ross has sent me two comments which I have pasted below. He couldn't get the WiFi working on his Dell 1501. He begged and pleaded for me to fix the guide. The guide wasn't very broken, it just required a cognitive ability. I did notice it lacked the polish and feel of my later guides. So for Ross and everyone else who complains that they can't get the WiFi working and my guide isn't working I rewrote the guide. It is truly idiot proof and in my opinion, my best guide yet. It's almost 100% command line meaning you just have to copy and paste. If it doesn't work for you you can always try the alternate native Linux driver, which guide you can find here. Good luck Ross and enjoy the new guide.


Hi
I have tried this like 8 times now. and have just started fresh by reinstalling it and trying again but it won't work for me
I have a dell 1501 same as you. but i got the 1g mem and i have the dvd burner too but this just will not work the light does not come on. even when i restart and all the other lights flash , (the lock with 9 and the A and the down arrow) but no wifi flash , i will attach all my workings on my next post after i try once more. wish me luck!! i realy want my wifi.....
------------------
doesn't WORK!!

I've tried sooo many times i got the same thing as the guy who started this everything seems to work
but in the end nothing is actually installed at all!!
am i doing it the wrong place should i do this entire guide in root. i did it and saved both downloads to a file named .driver(wich i created ) (is there supposed to be one in there allready?)
its a hidden file. anyway inside that folder i created another folder named wifi for my driver download (the zipped one) so after that i un TAR the ndiswrapper file to the .driver folder and do everything as the guide says, thousands of dell owners have. it doesn't work for me.
the guide seems to be a bare skeleton when it comes to the informative and descriptive side...

getting no where and have reinstalled twice can you edit your guide a little, starting at the verry first line,,,,

after you suggest the root folder option you say to enter the 2 previous command's again....

which 2? the first 2 in the guide or the one to become root . there are some other confusing factors too. it seems to work for some people but i am having trouble.

and your guide for the beryl thing dont get me started....

you should tell people what it means to log in as XGL no everyone knows its a profile.. i can proof read your guides to make them idiot proof , I am half idiot after all..
edited by pHreaksYcle

Saturday, February 10, 2007

wi-fi fix

Everytime you update your kernel you're going to have to run my wi-fi guide. You need to just follow the directions as listed. Here are some hints and some special precautions.

1. You're really gonna have to hunt to remove ndiswrapper from your system. Run Find and search your drive for all instances of ndiswrapper. They're not hard to find, but there are about 6 instances.

2. Follow the guide.

3. You do not need to redownload the wi-fi driver from Dell, you can refuse the one from the original install.

4. Reboot when you told too.

5. After rebooting you have to turn on your wi-fi card it the blue Fn key and F2 at the same time. (The wi-fi light won't come on when you hit, so don't sweat it) THEN REBOOT AGAIN.

Friday, January 12, 2007

Fixing WiFi on the Dell 1501 Edgy & Feisty

The best thing you can do is read the complete guide first, then print it out and read it again. You have to do every step right.

STEP 1: CLEAN YOUR SYSTEM - You need to remove any and all versions of Ndiswrapper currently installed on your system.
In a terminal type:
sudo rmmod ndiswrapper
then:
sudo apt-get remove ndiswrapper-utils

Now you need to hunt down and find all instances of ndiswrapper left on your file system.
The easiest way to do this is to run a search. To find Ubuntu's search function, look under the Places entry on the top left corner of your computer. Type in ndiswrapper and look in folder : file system.

before_search

Now once you actually searched your file system to you should see results similar to the ones pictured below.

after_search

The files paths outlined by the red box tell you exactly where to look to file the old unneeded ndiswrapper files you must delete. Many of these files require you to be root (have administration access) to delete them.

To become root and look for these files you need.
In a terminal type:
sudo nautilus

You should see this:
sudo_nautilus

In this newly opened /root window you can search and delete all instances of ndiswrapper. Take the file pates the search function gave you and type them in to the location box highlighted in red. If you don't have the location box, click the button in highlighted in blue to change views.

Delete all instances of ndiswrapper. Then run the two previous commands over again.
In a terminal type:
sudo rmmod ndiswrapper
Then:
sudo apt-get remove ndiswrapper-utils

STEP 2: GET NEEDED PACKAGES - We'll need to install compiling tools, the latest kernel headers, and then the source code for the latest ndiswrapper, and the wireless drivers from Dell.com

Get your compiling tools & kernel headers
In a terminal type:
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`

Download Ndiswrapper
In a terminal type:
wget http://easynews.dl.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-1.47.tar.gz
If that doesn't work use this link.
Since writing this guide newer versions of ndiswrapper have been released on sourceforge. If you decide to download a newer release just change the version number to one you downloaded. If you download 1.50 instead of 1.47 you should change the command to ...ndiswrapper-1.50.tar.gz

Get the Windows driver for your Dell 1501
In a terminal type:
wget http://ftp.us.dell.com/network/R140747.EXE

Now we will make a folder store your drivers in.
In a terminal type:
mkdir ~/.drivers

Now we will move the files we downloaded, ndiswrapper & R140747.EXE (the Dell driver), to the folder we just made.
In a terminal Type:
mv ~/ndiswrapper-1.47.tar.gz ~/.drivers
Then:
mv ~/R140747.EXE ~/.drivers

Now we are going to to untar/uncompress the ndiswrapper.
In a terminal type:
cd ~/.drivers
Then:
tar -xzvf ndiswrapper-1.47.tar.gz

Finally, we need to blacklist the broken and useless bcm43xx firmware drivers that try to load in a default Ubuntu install:
In a terminal type:
sudo su
Then type:
sudo echo blacklist bcm43xx >> /etc/modprobe.d/blacklist

YOU MUST REBOOT NOW!

STEP 3: COMPILE PROGRAM - Now we'll complile the Ndiswrapper program

Point your terminal to the ndiswrapper-1.47 folder.
In a terminal type:
cd ~/.drivers/ndiswrapper-1.47

Now get everything ready for the compiling.
In a terminal type:
sudo make uninstall

Do the above command multiple times, 3 should do it. After running the command continue to the next step. You can stop when you get the message that says something about no files or directories found.

Now we compile ndiswrapper:
In a terminal type:
sudo make
Then:
sudo make install

STEP 4: INSTALL DRIVERS - Use the Windows driver with ndiswrapper to get WiFi working

In order for us to unzip the R140747.EXE driver we need to point your terminal to the /.driver folder.
In a terminal type:
cd ~/.drivers

Unzip the R140747.EXE driver
In a termianl type:
unzip -a R140747.EXE

We need to point your terminal to the DRIVER folder we just unzipped
In a terminal type:
cd ~/.drivers/DRIVER

Now install the Windows driver
In a terminal type:
sudo ndiswrapper -i bcmwl5.inf
Then:
sudo ndiswrapper -l

You should see a message that says driver present, hardware detected.

Now finish installing the driver
In a terminal type:
sudo ndiswrapper -m
Then:
sudo modprobe ndiswrapper

YOU MUST REBOOT NOW!

STEP 5: TEST WIRELESS

Your WiFi light on your laptop should be illuminated, if not you can always turn it on and off with the Fn+F2 (Function & F2 Key) and you're all set! Try running this to see if your wireless card is functioning properly.

In a terminal type:
sudo iwlist scanning
edited by pHreaksYcle