Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Ndiswrapper error: No rule to make target `WLAN/ndiswrapper
Hello all,
I am trying currently to get Ndiswrapper working in order to use my wireless internet usb key. Unfortunately, I have encountered some technical difficulties when I compile it. (Also, I am new to linux)
After following the INSTALL instructions for the ndiswrapper-1.53 software, I obtain the following error:
Code:
[root@localhost ndiswrapper-1.53]# make
make -C driver
make[1]: Entering directory `/dl/Linux WLAN/ndiswrapper-1.53/ndiswrapper-1.53/driver'
*** WARNING: This kernel uses 4K stack size option
(CONFIG_4KSTACKS); many Windows drivers will not work
with this option enabled. Disable CONFIG_4KSTACKS
in kernel's .config file, recompile and install kernel
make -C /usr/src/kernels/2.6.18-53.el5-i686 M=/dl/Linux WLAN/ndiswrapper-1.53/ndiswrapper-1.53/driver
make[2]: Entering directory `/usr/src/kernels/2.6.18-53.el5-i686'
make[2]: *** No rule to make target `WLAN/ndiswrapper-1.53/ndiswrapper-1.53/driver'. Stop.
make[2]: Leaving directory `/usr/src/kernels/2.6.18-53.el5-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/dl/Linux WLAN/ndiswrapper-1.53/ndiswrapper-1.53/driver'
make: *** [all] Error 2
I have googled this error and although I found some mention of it, I have yet to find a solution that I can apply.
Linux distro: RHEL 5.1
Wireless USB key: Dlink DWL-G122 rev A2
First, RHEL is not the most wireless friendly distro. If you don't have to use it, but want a Red Hat based distro, use Fedora instead.
I would try to use a Linux native driver, before using NDISwrapper. I would first like to know what type of chip the wireless has. Please post the output of the following commands.
Code:
/sbin/lsusb
And just to check for wireless drivers.
Code:
lsmod
Some wireless drivers can be installed using the compat-wireless package, but not all. That is why I needed more info on the chip.
One thing that I see, there is a space in your make command. You can't have any spaces, or it will interpret it as another command. I am referring to this command, the part with the space is in red.
Code:
make -C /usr/src/kernels/2.6.18-53.el5-i686 M=/dl/Linux WLAN/ndiswrapper-1.53/ndiswrapper-1.53/driver
I don't know if that is a command that you entered, or if it was automatically entered. A space can sometimes be entered with a backslash, to get it to work.
Code:
/Linux\ WLAN/
Edit: It looks to me that Linux WLAN is a folder in your directory. Just change the name to eliminate the space.
I just tried to compile ndiswrapper on Fedora 10, and it failed for different reasons. Good luck!
__________________
Paul
Please do not PM me with requests for help. I will not reply.
Last edited by waterhead; 12-13-2008 at 02:22 PM..
ndiswrapper error fixed. However I have now more choices than I expected
Hello again,
Quote:
I don't know if that is a command that you entered, or if it was automatically entered. A space can sometimes be entered with a backslash, to get it to work.
Code:
/Linux\ WLAN/
Edit: It looks to me that Linux WLAN is a folder in your directory. Just change the name to eliminate the space.
Good eye. Yes, in fact the mistake was that a folder (Linux WLAN) had a space in it causing a command to break in 2. I feel like an idiot.
After the space was removed, ndiswrapper compiled like a charm.
However, once ndiswrapper installed I did not proceed with the driver installation as I first wanted to list the device ID info:
a list should be available informing if my *.inf/*.sys driver files would function with the ndiswrapper. However the link is broken. Thus I do not know for sure if my windows driver is compatible with ndiswrapper but I am keeping my fingers crossed.
Also, like you mentioned earlier, I did find a linux driver that should work for my DWL-G122 rev A2 wireless usb key. However it is only source code, so I had opted to install ndiswrapper since it sounded easier as there was more internet feedback on this topic.
Linux drivers: Downloads - Rt2x00Wiki
(The rt2570 (USB) version)
Also according to an unbuntu forum post, this driver should work for my device: Prism54 softmac linux driver
And lastly, I looked on my installation cds for the compat-wireless.rpm package. I did not find it. However I did find the following package which seems to have potential:
wireless-tools-28-2.el5.i386.rpm
So now, I have 3 choices:
1) Continue with the ndiswrapper approach
2) Compile the source code for the linux driver I found. (It does not seems as daunting as it originally did after spending an evening installing the missing packages needed to compile ndiswrapper)
3) Install the wireless-tools-28-2.el5.i386.rpm package and see what happens.
So I think that the native driver is the prism one, not the rt2570. If this were a regular Linux distro, the driver p54 driver would automatically load. You would still need to install firmware before it would work. It has full support in Linux, something that using NDISwrapper may not have (and you may not need).
I Googled the device ID [2001:3704] and got this page.
Linux Kernel Driver Database: CONFIG_P54_USB: Prism54 USB support
So I think that the native driver is the prism one, not the rt2570. If this were a regular Linux distro, the driver p54 driver would automatically load. You would still need to install firmware before it would work. It has full support in Linux, something that using NDISwrapper may not have (and you may not need).
You are correct. The rt2570 driver should not work.
According to: https://help.ubuntu.com/community/Ha...CardsDlink#USB
It seems that the Dlink DWL-G122 rev A2 usb key requires a prism driver or ndiswrapper - ralink drivers are not mentioned to function for A2. Rev B1, C1 require a ralink driver. Rev D1 requires a marvel chipset driver or ndiswrapper.
Thanks for all your help. Will probably try ndiswrapper.
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe