PDA

View Full Version : ndiswrapper update



utu
02-22-2013, 04:47 PM
.
This update may help a few who can't find a linux driver for
their wifi, but have access to a Windows wifi driver.

http://www.phoronix.com/scan.php?page=news_item&px=MTMwNjU

This article has a few additional ideas on the subject, as well.

AndyOpie150
03-27-2013, 06:03 AM
I don't have a wired connection, just my phone as a hot spot. Like to use desktop for as much as possible. I have set up ndiswrapper and ndisgtk on several linux distros
Question: Do you know of all ndiswrapper packages I need, as well as their dependencies. Can't really tell how many dependencies are already installed.
I have seven of the main debian ndiswrapper packages downloaded as well as my wireless card drivers folder with the LSTINDS.INF.

I use my phone to download then transfer everything over to distros. Some have all packages and dependencies, others don't have much of any to speak of. This seems more like the latter as far as I can tell.

A complete list would be much appreciated
Thanks.
AndyOpie150

PS: I think this distro has far greater potential than Puppy Slacko. I have put it on a flasb drive, by the way.

utu
03-27-2013, 03:42 PM
Greetings, AndyOpie150

I have no recent personal experience with ndiswrapper, so all I can offer
is some generalities for you to consider.

1. In regard to dependencies, with Knoppix I usually install things with
Synaptic and it usually guides me through suggesting or requiring the
correct dependencies.

2. I would not use the ndiswrapper approach myself unless I was reasonably
sure Knoppix had no Linux driver. Broadcom, for example, is often a problem
for many distros. Knoppix now has a b43 driver that works for many if not
most Broadcom wifis.

3. It would help if you would use lsusb and/or lspci to tell us what your
wifi is.

klaus2008
03-27-2013, 06:18 PM
@ AndyOpie150

The latest ndiswrapper 1.58 is not available as a Debian package yet. But you can download the source from http://sourceforge.net/projects/ndiswrapper/files/. I had no issues when I tried it on Knoppix 7.0.5 CD with an Edimax 7811Un USB WLAN Adapter.

Save the file ndiswrapper-1.58.tar.gz somewhere, e .g /home/knoppix and open an LXTerminal. Issue the commands
tar xzf /home/knoppix/ndiswrapper-1.58.tar.gz -C /home/knoppix
cd /home/knoppix/ndiswrapper-1.58
sudo make uninstall
make
sudo make install Read the man page of ndiswrapper.

AndyOpie150
03-27-2013, 08:30 PM
I have a Linksys Wireless-G Notebook Adapter model WPC54G version 2.
It's about ten years old.
I havd the driver folder which contains all sorts of goodies including the LINDTS. INF file.

Have been playing around with it a little. I didn't see ndiswrapper, or ndisgtk when I did a package search in synaptic.

I'm going to see if what I have already will do the trick. This will also give me some idea of what new ndiswrapper 1.58 packages to download.

When done I'll post a complete list of the new 1.58 as well as the old 1.57 that are required to get older wireless cards to work.

utu
03-27-2013, 10:28 PM
I didn't see ndiswrapper, or ndisgtk when I did a package search in synaptic.
Here's what I find.

AndyOpie150
03-28-2013, 12:52 AM
I have version 7.0.5 on a CD that I use just to install to flash drive. I'm doing this so all mistakes are easy to rectify.
Every time I put in ndiswrapper or ndisgtk in the synaptic search it comes up blank.

I noticed in one of your other threads you mentioned you have installed Knoppix to a flash drive as well.
The question is why isn't it showing up in my flash drive install.

Have downloaded ndiswrapper 1.58 as suggested, wil play around with it.

I will start a new thread if I run into problems (To keep from derailing thread), results here if positive.

utu
03-28-2013, 01:56 AM
@AndyOpie150

Here's the problem. You need to have ndiswrapper working in your Knoppix.
Ndiswrapper is available to the CD version of Knoppix via Synaptic IF
you already have an internet connection to bring it in. It is, as you
know, not already in the CD version of Synaptic.

One solution would be to connect via a direct ethernet connection to
bring in ndiswrapper and install it.

Another would be to buy or borrow a usb wifi to use temporarily, to
load it in to Synaptic. This, assuming such a wifi that Knoppix already
sets up automatically with a Linux driver.

Another would be to obtain the ndiswrapper file either via e-mail or
download or on some portable medium. I don't think it will matter
whether it's 1-57-1 or the latest version.

AndyOpie150
03-28-2013, 05:04 AM
Tried the ndiswrapper 1.57.
Everything installs great, until i try to install the ndiswrapper-dkms.

I get an error 10 when it tries to create ndiswrapper module.

Just now got done with setting up ndiswrapper on new install of Xubntu to hard drive (had to do something to take brain off of ndiswrapper in Knoppix, but keep it in the game). I'm on that distro now. Not one single error when installing all 7 packages needed. No error installing LSTINDS.INF either. Connected right up to my phones wireless signal.

I'm going to try the ndiswrapper 1.58 tomorrow. Need to sleep.

utu
03-28-2013, 01:18 PM
. Connected right up to my phones wireless signal.

Sounds like you've done it.
ndiswrapper-dkms is source material;
if you aren't compiling your own kernel module, you don't need it.

It may be that the dkms material is more suited to another kernel than that
which is in Knoppix.

Are you on-line and surfing?

AndyOpie150
03-29-2013, 04:54 PM
Prerequisites as listed in the install.txt of the ndiswrapper-1.58.tar.gz
You need a recent kernel, at least 2.6.14, with header files for the kernel. Make sure there is a link in the kernel source from the modules directory.

This is what I get:


knoppix@Microknoppix:~$ ls /lib/modules/`uname -r`/build
arch firmware Kconfig mm security
block fs kernel Module.symvers sound
crypto include lib net tools
debian init linux-headers.revision samples usr
drivers ipc Makefile scripts virt
knoppix@Microknoppix:~$ cd ~knoppix/ndiswrapper-1.58
knoppix@Microknoppix:~/ndiswrapper-1.58$ make uninstall
rm -f /usr/share/man/man8/ndiswrapper.8
rm -f /usr/share/man/man8/loadndisdriver.8
make -C driver uninstall
make[1]: Entering directory `/home/knoppix/ndiswrapper-1.58/driver'
rm -f /lib/modules/3.6.11/misc/ndiswrapper.ko
/sbin/depmod -a 3.6.11
ERROR: openat(/lib/modules/3.6.11, modules.dep.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.dep.bin.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.alias.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.alias.bin.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.softdep.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.symbols.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.symbols.bin.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.builtin.bin.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.devname.tmp, 1101, 644): Permission denied
make[1]: Leaving directory `/home/knoppix/ndiswrapper-1.58/driver'
make -C utils uninstall
make[1]: Entering directory `/home/knoppix/ndiswrapper-1.58/utils'
rm -f /sbin/loadndisdriver
rm -f /usr/sbin/ndiswrapper
rm -f /usr/sbin/ndiswrapper-buginfo
make[1]: Leaving directory `/home/knoppix/ndiswrapper-1.58/utils'
knoppix@Microknoppix:~/ndiswrapper-1.58$

klaus2008
03-29-2013, 06:49 PM
You have to be root if you want to uninstall kernel modules. Therefore issue
sudo make uninstall instead of 'make uninstall'.

AndyOpie150
03-29-2013, 09:52 PM
Per the Install instructions I first typed in:


make uninstall
make
I ignored the error with "make uninstall" then proceeded with instructions.
"Login as root then run"


make uninstall
.

I then followed next instructions "Then install windows driver with"


ndiswrapper -i driver.inf
Returned error "command ndiswrapper not found".
Also tried



ndiswrapper -i Driver/LSTINDS.INF
Got the same error.

Note: "Driver" is the name of the folder with the LSTINDS. INF file.

klaus2008
03-29-2013, 10:49 PM
I would issue
cd /home/knoppix/ndiswrapper-1.58
sudo make uninstall
make clean
make
sudo make install
cd /home/knoppix
sudo ndiswrapper -i Driver/LSTINDS.INF
sudo ndiswrapper -m
sudo modprobe ndiswrapper 'Driver/LSTINDS.INF' is the path of your INF file.

AndyOpie150
03-30-2013, 04:06 AM
Thanks. Will give it a try and edit this post with results.

AndyOpie150
03-30-2013, 06:51 PM
Cant seem to edit my posts now. klaus2008: Was having to many errors with that install to flash drive (-C command not found, /home/knoppix/ndiswrapper-1.58 not a valid directory, etc). Re-installed knoppix 7.0.5 CD version to flash drive and followed advice in post 4. Everything is working great and I'm posting this thru the provided Iceweasel browser. Should have did that before, sorry, thought it was some limitation with the .iso so didn't mention it before. At least we now know that the ndiswraper-1.58 works great on the 7.0.5 CD version. Sorry again about everything else between your 4th post and this one. I don't know a whole lot, just enough to mess things up. Thanks very much for having patience with me and sticking with me, even through my bought of overthinking.

AndyOpie150
03-31-2013, 09:29 PM
The ndiswrapper-1.58 works great, but, every time I boot into the USB drive I have to open up a CLi and type in


sudo modprobe ndiswrapper

to get my wireless card to power up.

I have tried:


sudo su
echo ndiswrapper >> /etc/modules
exit

but this just makes my wireles card power on and off whenever I try to connect to the internet.

I have since re-installed and set up drivers due to lack of knowledge on how to fix my mistake.
What is the command I need to issue to get the ndiswrapper to work without having to type in the above mentioned command every time I boot into Knoppix?