forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Install guide for ndiswrapper

 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Network Devices
View previous topic :: View next topic  
Author Message
jamov
Xplorer


Joined: 31 Jul 2004
Posts: 22

PostPosted: Thu Aug 19, 2004 12:49 pm    Post subject: Install guide for ndiswrapper Reply with quote

Installing ndiswrapper 0.9 on Xandros 2.01 OCE (kernel 2.4.24)
most of this is taken from other helpful user's posts and the ndiswrapper install file

From a clean install with the C/C++ development tools installed (can be installed from XN)

Put your XP inf files for your wireless card somewhere on your computer (home directory for me)

Open Xandros Networks

Search for "source", then install the kernel source for you kernel version.
unpack the source tar file using your preferred method (console or file manager)

Download the source for ndiswrapper 0.9 from http://ndiswrapper.sourceforge.net (I put it in my home directory)
(I have tested with .10rc1 and it works as well)

unpack it using your preferred method (console or file manager)

Open terminal and log in as root
cd /usr/src/xandros-kernel-source-[your version]

cd /usr/src/xandros-kernel-source-2.4.24
make EXTRAVERSION=-x1 mrproper
cp /boot/config-2.4.24-x1 .config
make EXTRAVERSION=-x1 oldconfig
make EXTRAVERSION=-x1 dep


cd /home/[user name]/ndiswrapper-0.9 (or wherever you unpacked the ndiswrapper source)

make install
ndiswrapper -i [path/to/inf/file]
ndiswrapper -l (this should display the driver you load and say present)
modprobe ndiswrapper


iwconfig (the output should have something like wlan0 in it, in following steps I assume wlan0)

use iwconfig to set key and essid
root console: iwconfig wlan0 enc yourhexkey (or s:yourasciikey)
root console: iwconfig wlan0 essid "" (or specify your APs ESSID)

you may need to specify more settings than this for your environment

edit /etc/network/interfaces and add the following lines (assuming dhcp)
auto wlan0
iface wlan0 inet dhcp (then save) (look below for bold text there may be more you need to do here)

root console: ifup wlan0
root console: ifconfig (check to see if the wlan0 interface has an IP address)

At this point you should be able to surf or whatever, but the settings are not saved, so a reboot will loose them

Here is what I did to get the interface to come up, on its own, at boot, there are probably better ways

root console: ndiswrapper -m
modify the /etc/devices/drivers file and add to the bottom 20 ndiswrapper (99 didn't seem to work for me)
root console: xangenmodules
verify that the file /etc/modutils/ndiswrapper exists (should have been created by ndiswrapper -m)
root console: update-modules

I not sure that the rest of this is necessary if you are not using wep, the xandros control center wireless settings
didn't seem to be able to set the key so I did it this way.

Add these lines to the /etc/network/intrfaces file
below the
auto wlan0
iface wlan0 inet dhcp

pre-up if grep -q ndiswrapper /proc/modules; then :; else modprobe ndiswrapper; fi
wireless_keymode restricted
wireless_key <KEY>
wireless_essid <SSID>


save

reboot with fingers crossed Smile

Hopefully this will help someone and hurt no one

Jamov
Back to top
View user's profile Send private message
zadok2k
Xplorer


Joined: 13 Nov 2004
Posts: 2

PostPosted: Sun Nov 14, 2004 6:13 pm    Post subject: modprobe ndiswrapper Reply with quote

did everything in your instructions, all went well until i modprob! out put says that I have bad symballs or no symballs and then say isnmod failed!
have any idea why or what could have went wrong, I have re-installed ndiswrapper 0.11 several times but get the same output.

Jason
Back to top
View user's profile Send private message AIM Address
scarymonkey
Xplorer


Joined: 31 Dec 2004
Posts: 9

PostPosted: Fri Dec 31, 2004 10:03 pm    Post subject: modprobe ndiswrapper Reply with quote

I am having a similar problem. I have follwed the instructions and got no errors until I run modprobe.

Quote:
/lib/modules/2.4.24-x1/misc/ndiswrapper.o: unresolved symbol netdev_priv
/lib/modules/2.4.24-x1/misc/ndiswrapper.o: insmod /lib/modules/2.4.24-x1/misc/ndiswrapper.o failed
/lib/modules/2.4.24-x1/misc/ndiswrapper.o: insmod ndiswrapper failed


I am running a Belkin F5D7010 PCMCIA nic using a Broadcom chipset on a Dell Lattitude 850MHz. The hardware is detected when running ndiswrapper -l.

Does anyone have any other ideas please?

Vince Marsters
Back to top
View user's profile Send private message
scarymonkey
Xplorer


Joined: 31 Dec 2004
Posts: 9

PostPosted: Sat Jan 01, 2005 12:24 am    Post subject: Sorted Reply with quote

Very Happy

If fixed the problem. I went from using 1.0rc1 to using 0.10 and nearly everything works fine now.

I can't use DHCP for the card as the gateway doesn't get sent properly. I can access any LAN devices but nothing outside of the router. For the time being I have set a static IP and will have a better look some other time. At the moment I am going to play with Xandros and see if it suits my needs on this laptop.
Back to top
View user's profile Send private message
pezzer442
Xplorer


Joined: 17 Jan 2005
Posts: 1
Location: Southampton, UK

PostPosted: Mon Jan 17, 2005 5:38 pm    Post subject: Reply with quote

Great post thanks got this newb 95% of the way there !
One thing I had to do was use the Dell Driver (mentioned in another thread) rather than the Belkin one as soon as I used it things fell into place. Although I still cant get the encryption key to set at startup despite a bit of fiddling with /etc/network/interfaces

Bye bye windows ! Laughing
Back to top
View user's profile Send private message
bcmc
Xplorer


Joined: 18 Sep 2004
Posts: 50
Location: Maple Creek Canada

PostPosted: Sun Feb 06, 2005 9:04 pm    Post subject: the install did not work Reply with quote

I can not install the drivers. See below , this is from the console
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# make install
install -D -m 755 loadndisdriver /sbin/loadndisdriver
install -D -m 755 ndiswrapper /usr/sbin/ndiswrapper
install -D -m 755 ndiswrapper-buginfo /usr/sbin/ndiswrapper-buginfo

NOTE: Windows driver configuration file format has changed since 1.0-rc2. You must re-install Windows drivers if they were installed before.
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# ndiswrapper -i /root/WPC54Gv2_40826/lsbcmnds.inf
lsbcmnds is already installed. Use -e to remove it
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# ndiswrapper -e lsbcmnds
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# ndiswrapper -l
Installed ndis drivers:
bcmwl5.sys invalid driver!
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# ndiswrapper -e bcmwl5
Driver bcmwl5 is not installed. Use -l to list installed drivers
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# ndiswrapper i /root/wpc54gv2_40826/lsbcmnds.inf/bcmwl5.sys
Usage: ndiswrapper OPTION

Manage ndis drivers for ndiswrapper.
-i inffile Install driver described by 'inffile'
-d devid driver Use installed 'driver' for 'devid'
-e driver Remove 'driver'
-l List installed drivers
-m Write configuration for modprobe
-hotplug (Re)Generate hotplug information


where 'devid' is either PCIID or USBID of the form XXXX:XXXX
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# ndiswrapper -i /root/wpc54gv2_40826/lsbcmnds.inf/bcmwl5.sys
bcmwl5.sys is already installed. Use -e to remove it
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# sudo modprobe
bash: sudo: command not found
XANPWB58M49:/usr/src/modules/ndiswrapper/utils# modprobe ndiswrapper
modprobe: Can't locate module ndiswrapper
XANPWB58M49:/usr/src/modules/ndiswrapper/utils#

What did I do wrong.
Back to top
View user's profile Send private message
MMfreak
Xplorer


Joined: 15 Feb 2005
Posts: 3
Location: holland

PostPosted: Tue Feb 15, 2005 6:41 pm    Post subject: Reply with quote

hello,

i cant go furthur than

make install because i get an great list of errors and we ca't fix it!Sad
does someoneknows how to fix it??????? Smile Shocked Confused
_________________
HELP RazzVery Happy:S:S:S
Back to top
View user's profile Send private message MSN Messenger
Ghostbone
Xplorer


Joined: 18 Feb 2005
Posts: 7

PostPosted: Fri Feb 18, 2005 11:30 am    Post subject: Reply with quote

For some unknwon reason you cannot run "make dep" with the new kernel in version 3.0 (2.6.9) so you have to run instead of that step "make prepare-all"

Hope I helped Smile
GB.
Back to top
View user's profile Send private message
Joey
Xplorer


Joined: 22 Feb 2005
Posts: 2

PostPosted: Thu Feb 24, 2005 2:27 pm    Post subject: Can't get it to startup on reboot Reply with quote

I'm having problems getting the interface to come up on it's own at bootup so I have to redo modprobe, etc. So here's the current problems I'm having, hopefully, someone can help:

1. When I type in "ndiswrapper -m" I get a message saying that "modprobe config alreay contains an alias directive."
2. I'm working in Xandros 3.0 so I think some of the file structure may have changed now because I don't have a /etc/devices/drivers file so I can't add the "20 ndiswrapper" line to it. I noticed that the ndiswrapper website said to add the line to /etc/modules although the ndiswrapper website says to only type in "ndiswrapper."
3. I get a "command not found" when I type in xangenmodules.
4. This may have to do with #1 but the /etc/modutils/ndiswrapper file doesn't exist on my system.
Back to top
View user's profile Send private message
The_Darkside
Xplorer


Joined: 10 Apr 2004
Posts: 23

PostPosted: Tue Mar 01, 2005 12:49 pm    Post subject: Reply with quote

I have managed to get this working on Xandros 3 so I hope this helps you Smile
1 - saying it already contains an alias is because you have already ran the command once before (confirmed by trial)

2 - add ndiswrapper (without the 20) to /etc/modules

3 - the command xangenmodules is unnecessary on Xandros 3

Mine is now working perfectly although it took a few minutes to detect the network and connect. I can now browse the local network and the net via a windows gateway Smile
_________________

Founder of The Darkside Project
Back to top
View user's profile Send private message
superbnerb
Xplorer


Joined: 23 Mar 2005
Posts: 43

PostPosted: Sat Mar 26, 2005 11:02 am    Post subject: Reply with quote

i am using the xandros 3.0 version and do not see this etc module folder that you men speak of. i therefore cannot add the ndiswrapper line to my interface.

i am going to reboot. i also have to fix this lx700 keyboard i am working on (logitech) it gives me a weird symbol when i try to hit the slash and appostrophe key. èé see. or at least i see it.
_________________
>>Football commentator and former player Joe Theismann, 1996: "Nobody in football should be called a genius. A genius is a guy like Norman Einstein."<<
Back to top
View user's profile Send private message
Piledriver
Xplorer


Joined: 26 Mar 2005
Posts: 1
Location: Texas

PostPosted: Sat Mar 26, 2005 2:50 pm    Post subject: Reply with quote

It's NOT a folder, it's a file.

On Xandros 3, it's /etc/modules

Add the name of modules you want loaded on boot to the list.
(one can add args, but that's best done in /etc/modules.conf

I just installed Xandros3 last night on my old Compaq laptop, and
the ACX111 wifi card is found, but I haven't gotten it working yet.

(some driver IS loaded, but I haven't figured out how to configure it yet,
will go thru the above listed procedure as soon as she goes shopping)

(It's for the Wife, a simple setup is a good thing, Mandrake Cooker was
too much for her)

Absolutely everything else seems to work, including the lucent winmodem.

Works fine under Knoppix though... but the config tools are all
available right on the panel...

UPDATE: All I had to do was 1 step from the above, as the driver included in Xandros 3 worked out of the box:

edit /etc/network/interfaces and add the following lines (assuming dhcp)
auto wlan0
iface wlan0 inet dhcp (then save) (look below for bold text there may be more you need to do here)
_________________
Everything is just like everything else, only different
Back to top
View user's profile Send private message
bgblanch
Xplorer


Joined: 24 Apr 2005
Posts: 1

PostPosted: Sun Apr 24, 2005 4:57 am    Post subject: Almost there?!? Reply with quote

I need some help finishing up getting my wlan (broadcom using ndiswrapper) working. I can see my wlan (eth1) in the Control Center under Network Connection. I'm not able to renew the IP address or actually connect with the wlan. I have the wireless info in the wireless tab of the Network Connections but still can't get the last little bit working.
Back to top
View user's profile Send private message
nikdc5
Xplorer


Joined: 26 Apr 2005
Posts: 2

PostPosted: Tue Apr 26, 2005 2:22 am    Post subject: Reply with quote

Hi, I have been desperately trying to follow these instructions to get my Linksys PCMCIA wireless thingy working under xandros 3 (deluxe ed I think), however I get stuck at the 'iwconfig' command, which produces the following, unexciting result:
Quote:

XANWPBHBD31:/usr/src/modules/ndiswrapper/utils# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.


'eth0' being my wired network point. After this point I don't seem to able to do much, so I fear I am thoroughly stuck. I've only been doing this linux thing for a day, so if I have said anything that doesn't make sense, it is because I don't know what I'm talking about. Can anyone help at all?
Back to top
View user's profile Send private message
ripdemon
Xplorer


Joined: 25 Apr 2005
Posts: 4
Location: USA

PostPosted: Tue Apr 26, 2005 3:28 pm    Post subject: Reply with quote

I did all of the steps above.
the error I am getting is.

dogbert2:/usr/src/ndiswrapper/modules/ndiswrapper#ndiswraper -l
Installed ndis drivers:
driver invalid driver:
driver invalid driver:
lstinds driver present, hardware present

so i do a " modprobe ndiswrapper "
out-put
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.9-x1/mis/ndiswrapper.ko): Operation not permitted

what am I doing wrong?
or what didnt I do right?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Network Devices All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group