Angelo’s Notepad

Cogito ergo sum.

Angelo’s Notepad header image 5

ndiswrapper

June 28th, 2005 by Angelo · 4 Comments

Yesterday I got a Belkin notebook wireless card [Belkin F5D6020 (Version 3.0) 802.11b wireless PCMCIA] for my laptop that runs Debian. I spent the entire evening, but I eventually got it to work using a wonderful tool called ndiswrapper which allows you to use Windows network drivers in Linux. The version numbers are important because they correspond to different chipsets that are on the card. I started by doing an apt-get install ndiswrapper\* but you should see below that the current version for Debian doesn’t work.

Getting the Windows Drivers:
The first issue I had was with the CD that came with the card. I haven’t tested the CD on Windows, but it had I/O errors when trying to read it from Linux. I wonder if this is a Windows vs Linux CD format issue, or if it’s just a bad CD. I have to think it’s the latter. So I went to the Belkin site and downloaded the driver .exe file for Windows 98. (In this case, I pretty much believed that all of the drivers for Windows were the same file, but usually Windows 98 is the safest to try.) Unfortunately this .exe is an installer for the software, so I had to use wine to run it, install it in my fake windows, and copy the drivers out. After using wine to install, the drivers can be found in ~/.wine/fake_windows/windows/OPTIONS/CABS/ and they are called bel6020.inf and Bel6020.sys. You can copy these files anywhere (such as to your home directory) or you can use them directly from this directory because when you install them into ndiswrapper, it will make a copy for itself under /etc/ndiswrapper

ndiswrapper:
The next problem I had was with the version of ndiswrapper that comes with Debian. Despite following the steps (see links below) I had found online, the driver simply wouldn’t work. ndiswrapper -l reports that everything is fine, but if you use dmesg, you will see that something doesn’t work–in my case at least that it could not allocate the memory for this driver. I downloaded the source and compiled the latest version (0.12) which solved the problem. (You should use dmesg and lspci to make sure the install went well.)

$ /usr/sbin/ndiswrapper -i bel6020.inf
$ /usr/sbin/ndiswrapper -l
$ /sbin/modprobe ndiswrapper
$ dmesg
$ lspci
$ /usr/sbin/ndiswrapper -m

Creating the wireless interface:
Since my first attempts to use the older version of ndiswrapper didn’t work, I struggled with trying to figure out why I couldn’t set up the wireless interface. After I used the newer version, it worked, but still doesn’t bring up the interface automatically on boot. It doesn’t remember the essid. (This is still unresolved.) But the good news is, I can configure and bring up the interface by hand after boot. You need to install wireless-tools. Use iwgetid to get an essid, and iwconfig to set up the interface.

$ /sbin/iwconfig wlan0 essid default
$ /sbin/ifup wlan0

Links:
http://www.linuxgazette.com/node/9758

Share and Enjoy:
  • Digg
  • del.icio.us
  • MisterWong
  • Haohao
  • NewsVine
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

Tags: Computer

4 responses so far ↓

  • 1 Angelo // Aug 28, 2005 at 2:35 pm

    I spent over a day trying to get ndiswrapper to work again after reinstalling Sarge with the net install CD. Finally, figured out the problem: gcc4 vs gcc3. The best way around this is to just rename the symbolic link /usr/bin/gcc to 3 temporarily to compile ndiswrapper and install it.

    This is for kernel 2.6.8

  • 2 Jens // Jul 27, 2007 at 6:41 am

    Hi,
    nice Page. I am searching the file “Bel6020.sys”. Can´t find it in the net. Would be nice if you could send it to me by mail. thanx.
    Jens

  • 3 Angelo // Jul 27, 2007 at 3:05 pm

    I don’t have the file with me right now. I tried getting the file from here:
    http://web.belkin.com/support/download/downloaddetails.asp?file_id=1431 but unfortunately, when I run the exe, it seems I can’t find the contents.

    You can try it for now, or wait until I can find the files later tonight.

  • 4 Angelo // Jul 31, 2007 at 1:41 pm

    I don’t have that wireless card anymore, and I can’t find the file. I tried to download the file from the belkin website, but it won’t unpack without windows. Even using wine, their new .exe file doesn’t seem to work well with wine.

Leave a Comment