Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Ndiswrapper the easy Debian way...
Hope this helps everyone...
For those who have ndiswrapper working with an earlier kernel (ie. with bcm43xx driver) that upgraded to a kernel with b43, try this:
If your ndiswrapper -l reads that the device is present, thenyou know the windows driver is correct, but the ssb module is still using the wireless device.
Make sure your blacklist includes b43, ssb, (and bcm43xx if you still load an earlier kernel from grub) some systems will also need b44, mac80211, cfg80211 blacklisted (mine did not).
In a terminal:
ifconfig
If the eth0 is NOT listed, then...
In a terminal:
rmmod ndiswrapper
rmmod ssb
depmod -a
modprobe ndiswrapper
Then check ifconfig to see if eth0 is now present.
If so, edit your /etc/rc.local file to read:
rmmod ndiswrapper
rmmod ssb
modprobe ndiswrapper
exit 0
Make sure that you have a wlan0 alias in terminal:
ndiswrapper -m
Disable your other scripts you used, and reboot.
Since ndiswrapper is starting before your scripts disable the ssb module, this will restart ndiswrapper after the ssb has been disabled.
If your ndiswrapper -l reads that the device is present, thenyou know the windows driver is correct, but the ssb module is still using the wireless device.
Make sure your blacklist includes b43, ssb, (and bcm43xx if you still load an earlier kernel from grub) some systems will also need b44, mac80211, cfg80211 blacklisted (mine did not).
In a terminal:
ifconfig
If the eth0 is NOT listed, then...
In a terminal:
rmmod ndiswrapper
rmmod ssb
depmod -a
modprobe ndiswrapper
Then check ifconfig to see if eth0 is now present.
If so, edit your /etc/rc.local file to read:
rmmod ndiswrapper
rmmod ssb
modprobe ndiswrapper
exit 0
Make sure that you have a wlan0 alias in terminal:
ndiswrapper -m
Disable your other scripts you used, and reboot.
Since ndiswrapper is starting before your scripts disable the ssb module, this will restart ndiswrapper after the ssb has been disabled.
This bug might never get fixed
From what I read in the Linux Kernel development forums, this bug might never get fixed. Linus Torvalds HATES ndiswrapper (because the Windows driver eats a lot of stack space, introduces various stability issues, and technically violates the GPL) and is basically resisting any kernel patches intended solely to fix ndiswrapper-related problems, instead insisting that efforts be focused on making the native drivers work.
Only one driver can control your wireless device at any one time, either ndiswrapper (leading to a wlan0 interface) or madwifi (probably ath0). If they are both installed, then the one to load first will probably control the device. Reversing this will require unloading them first,cb474 wrote:Thanks for the howto. If I want to try ndiswrapper, do I have to remove madwifi first (and how would I do that)? Or can I have the two side-by-side and switch between them, depending on which seems to work better with a particular access point?
Code: Select all
rmmod ndiswrapper madwifi
Code: Select all
modprobe madwifi
That said, it would probably be less trouble to stick with madwifi (or ath5k or ath9k), since ndiswrapper is known to have problems with WPA/WPA2 Personal security.
Real Debian users don't do chat...
Thanks. I have one particular access point that I need to use a lot, that madwifi seems unable to connect to. But I can connect in windows (on the same laptop), so that's why I thought ndiswrapper might be the solution. But I intend to try ath5k too (although I'm also having a little trouble figuring out how to use ath5k).
Your how-to is awesome and was immensely helpful. I'm neither virgin to nor proficient at module-assistant, so when my Debian sid (2.6.26 kernel) system was unable to load the ndiswrapper module, I assumed m-a was where to turn, but wasn't completely comfortable going the path alone.
After following your how-to (and reading they why, not just the cut-n-paste ) I am happy to say the little blue light on my airlink usb lit right up. Yay!
Not yet sure if it will actually talk to my wireless router, as it's at work and I can't test that until the morning. Anyway, I'm well pleased so far.
BTW, in answer to the "what to do if I need to bootstrap this thing" question... I found out about ndiswrapper because of this post, which is also where I found out about Puppy Linux, which oddly enough has just about won me over from knoppix. And this from a guy who has mastered his own knoppix CDs for a homeschool education curriculum! In fact, it's the remastering that won me over. Anyway, fwiw, turns out Puppy is an incredibly simple solution to a live CD boot with built-in ndiswrapper support. Assuming you have the windows drivers somewhere local, Puppy can get you online painlessly so you can download whatever .deb files you need... or am I oversimplifying in my head?
After following your how-to (and reading they why, not just the cut-n-paste ) I am happy to say the little blue light on my airlink usb lit right up. Yay!
Not yet sure if it will actually talk to my wireless router, as it's at work and I can't test that until the morning. Anyway, I'm well pleased so far.
BTW, in answer to the "what to do if I need to bootstrap this thing" question... I found out about ndiswrapper because of this post, which is also where I found out about Puppy Linux, which oddly enough has just about won me over from knoppix. And this from a guy who has mastered his own knoppix CDs for a homeschool education curriculum! In fact, it's the remastering that won me over. Anyway, fwiw, turns out Puppy is an incredibly simple solution to a live CD boot with built-in ndiswrapper support. Assuming you have the windows drivers somewhere local, Puppy can get you online painlessly so you can download whatever .deb files you need... or am I oversimplifying in my head?
Re: Ndiswrapper the easy Debian way...
I had to manually add "ndiswrapper" to /etc/modules as doing "ndiswrapper -m" was was returning "module configuration already contains alias directive" even though it wasn't present. Once I'd added it and rebooted it was all good.
I am using the latest WinXP net8185.inf (Realtek) driver, Debian 5, 2.6.26-2-686. The Win98 driver did not work. Strangely enough I've blacklisted the rtl8180 driver but it's still showing up as an alternative:
This thread is probably the best guide to Ndiswrapper I've seen.
I've come back to Debian again after a stint with the bug ridden mish mash that is Ubuntu (the latest release is even worse). So far I'm not disappointed. One of my main issues was wireless. Now that I've got this working I see no reason to change distro again (though I will probably be reinstalling at some point soon as I think my hard drive is about to die....).
Many thanks
Cynwulf
I am using the latest WinXP net8185.inf (Realtek) driver, Debian 5, 2.6.26-2-686. The Win98 driver did not work. Strangely enough I've blacklisted the rtl8180 driver but it's still showing up as an alternative:
Code: Select all
net8185 : driver installed
device (10EC:8185) present (alternate driver: rtl8180)
I've come back to Debian again after a stint with the bug ridden mish mash that is Ubuntu (the latest release is even worse). So far I'm not disappointed. One of my main issues was wireless. Now that I've got this working I see no reason to change distro again (though I will probably be reinstalling at some point soon as I think my hard drive is about to die....).
Many thanks
Cynwulf
Re: Ndiswrapper the easy Debian way...
Awesome!
first time i type something into a terminal window (its all chinese to me 'cause i have zero linux experience) and it works woohoo
i did it the short way and everything went fine (i guess, because i had already been trying to installand use ndiswrapper before -graphically- but this didn't work so well; hope this doesn't affect anything)
have a TRENDnet TEW-643pi wireless pci card
boy, am i a happy user... now i don't have to boot to winows anymore to access internet
great post!
a new Debian user
first time i type something into a terminal window (its all chinese to me 'cause i have zero linux experience) and it works woohoo
i did it the short way and everything went fine (i guess, because i had already been trying to installand use ndiswrapper before -graphically- but this didn't work so well; hope this doesn't affect anything)
have a TRENDnet TEW-643pi wireless pci card
boy, am i a happy user... now i don't have to boot to winows anymore to access internet
great post!
a new Debian user
Re: Ndiswrapper the easy Debian way...
hkoster1,
May I suggest a little more detail for your ndiswrapper tutorial?
Immediately before your ndiswrapper command, there could be a statement about using
32Bit Windows Drivers for a 32Bit Debian install, and likewise for 64Bit Windows Drivers for a 64Bit Debian install......
Plus the following commands can be used to get more information
on your hardware, wireless, Windows loaded drivers, and Linux drivers.
Copy & Paste to prevent errors!
Last please add information on how to remove Drivers & ndiswrapper, if needed.
Something in the order of:
REMOVE WINDOWS DRIVERS:
If you want to REMOVE the Windows Drivers:...............
If the output of ndiswrapper -l shows any drivers loaded,
remove ALL of them. If memory serves me correctly the command is:
This should clean up nidswrapper & drivers and:
should return nothing as being loaded.
Then remove ndiswrapper:
Remove from startup file by editing:
to remove ndiswrapper.
Thanks.
Larry
May I suggest a little more detail for your ndiswrapper tutorial?
Immediately before your ndiswrapper command, there could be a statement about using
32Bit Windows Drivers for a 32Bit Debian install, and likewise for 64Bit Windows Drivers for a 64Bit Debian install......
Plus the following commands can be used to get more information
on your hardware, wireless, Windows loaded drivers, and Linux drivers.
Copy & Paste to prevent errors!
Code: Select all
lspci
lsusb
dmesg |tail
lsmod
ndiswrapper -l
Something in the order of:
REMOVE WINDOWS DRIVERS:
If you want to REMOVE the Windows Drivers:...............
If the output of ndiswrapper -l shows any drivers loaded,
remove ALL of them. If memory serves me correctly the command is:
Code: Select all
sudo ndiswrapper -e bcmwl5
sudo ndiswrapper -e ssb
Code: Select all
ndiswrapper -l
Then remove ndiswrapper:
Code: Select all
sudo modprobe -r ndiswrapper
Code: Select all
sudo nano /etc/modules
Thanks.
Larry
Re: Ndiswrapper the easy Debian way...
You may, but I don't think your comments add much (if anything) that a Debian user doesn'tlkraemer wrote: May I suggest a little more detail for your ndiswrapper tutorial?
already know, or that couldn't be found by perusing a man-page or two. Your warning about
64- and 32-bit drivers is already prominently displayed in the Howto, adding it once more runs
the risk of annoying your typical Debian user, as does adding a lot of clutter. And what's about
this "sudo" thing...? Geez...
Real Debian users don't do chat...
Re: Ndiswrapper the easy Debian way...
+1hkoster1 wrote:And what's about
this "sudo" thing...? Geez...
Just follow this kind of format and everyone is happy, e.g.:
Run the following as root:
Code: Select all
aptitude update
aptitude safe-upgrade
Re: Ndiswrapper the easy Debian way...
easy? it took me 12 hours to get wireless going this weekend, and it's only Lenny Live CD, thanks for the helpful post. Maybe in a little while I will try Squeeze I think it might support the RTL8187B now.
If I get the Squeeze CD1, will I have to go through the whole thing over again trying to build ndiswrapper.ko without make and gcc? Will I even be able to use wireless during the install, my inquiring mind wants to know. Nice trick to leave ndiswrapper out, and also any tools to make it, if I wasn't a redneck from TN I would say 'HAVE A NICE DAY!'
If I get the Squeeze CD1, will I have to go through the whole thing over again trying to build ndiswrapper.ko without make and gcc? Will I even be able to use wireless during the install, my inquiring mind wants to know. Nice trick to leave ndiswrapper out, and also any tools to make it, if I wasn't a redneck from TN I would say 'HAVE A NICE DAY!'
resigned by AI ChatGPT
Re: Ndiswrapper the easy Debian way...
Just completely forget ndiswrapper and look at http://wiki.debian.org/rtl818xbw123 wrote:easy? it took me 12 hours to get wireless going this weekend, and it's only Lenny Live CD, thanks for the helpful post. Maybe in a little while I will try Squeeze I think it might support the RTL8187B now.
If I get the Squeeze CD1, will I have to go through the whole thing over again trying to build ndiswrapper.ko without make and gcc? Will I even be able to use wireless during the install, my inquiring mind wants to know. Nice trick to leave ndiswrapper out, and also any tools to make it, if I wasn't a redneck from TN I would say 'HAVE A NICE DAY!'
Re: Ndiswrapper the easy Debian way...
no drivers, notice all the dead links, can't completely forget ndiswrapper until i find something else that works.Roel63 wrote:bw123 wrote: Just completely forget ndiswrapper and look at http://wiki.debian.org/rtl818x
resigned by AI ChatGPT
Re: Ndiswrapper the easy Debian way...
ok, looks like that project got eaten by compat-wireless I will try it out and see if rtl8187b is in the list, thanks.
http://wireless.kernel.org/en/users/Download/stable/
*Later: The compat-wireless is working for me on the rtl8187b with kernel 2.6.32-5-AMD64. I downloaded the 05-05-2011 source and it ran make a pretty good long time, even with only my driver selected. Had to comment out a little code but Hey! is this still kernel taint? or am i running good clean healthy linux drivers? 54Mb/s and low ping times, looks good to me.
Ndiswrapper got me connected long enough to get it done and for that I say thanks.
Last edited by bw123 on 2011-05-12 06:55, edited 7 times in total.
resigned by AI ChatGPT
Re: Ndiswrapper the easy Debian way...
I finally got ndiswrapper going on the Squeeze, at bootup the
rtl8187 driver fires up my little usb Netgear WG111v3, which
has a realtek rtl8187b chipset, but it does not work correctly.
The original wg111v3 driver doesn't work well either, rate is
about 1M and it's a 11g 54M adapter. I found an updated driver
named net8187b from Realtek, it does not work correctly in WinXP
but it is humming right along on debian, after adding it's VID string
to the .inf file USB\VID_0846&PID_4260&REV_0200
I have net8187b.inf net8187b.cat and rtl8187B.sys and ndiswrapper
builds for both 2.6.32-5-486 and 2.6.32-5-686 these devices are in
several laptops, and cheap plug in usb. It is real diappointing
there are no linux drivers anywhere, and from what I have read the
whole ndiswrapper idea may be broken soon, but I am new and I had
some fun figuring out how to get it working, thanks for the Squeeze!
rtl8187 driver fires up my little usb Netgear WG111v3, which
has a realtek rtl8187b chipset, but it does not work correctly.
The original wg111v3 driver doesn't work well either, rate is
about 1M and it's a 11g 54M adapter. I found an updated driver
named net8187b from Realtek, it does not work correctly in WinXP
but it is humming right along on debian, after adding it's VID string
to the .inf file USB\VID_0846&PID_4260&REV_0200
I have net8187b.inf net8187b.cat and rtl8187B.sys and ndiswrapper
builds for both 2.6.32-5-486 and 2.6.32-5-686 these devices are in
several laptops, and cheap plug in usb. It is real diappointing
there are no linux drivers anywhere, and from what I have read the
whole ndiswrapper idea may be broken soon, but I am new and I had
some fun figuring out how to get it working, thanks for the Squeeze!
Last edited by bw123 on 2011-05-10 17:04, edited 1 time in total.
resigned by AI ChatGPT
Re: Ndiswrapper the easy Debian way...
Indeed disappointing, seems Marvell has some really nasty chips