Click to See Complete Forum and Search --> : ndiswrapper cannot dhcpcd


prurigro
08-14-2005, 08:31 PM
this is a series of posts I've made on the ndiswrapper forum after much searching for answers.. I'm reposting them here because of two reasons-- this might not be an ndiswrapper problem, and because the ndiswrapper forums havne't moved in almost a week.. so I'm thinking they're pretty unmonitored, anyway, I cant get online through wireless without this and I really wouldn't wanna add a windows partition just so I can go online at school or my other house., especially when I'm so close.. If anyone could help it would be much appreciated in anycase :)

-----------------------------------------------------------------------

Hi, I've been running linux on my laptop for quite a while now and had been wired up to the house router so I didn't need to take advantage of wireless-- recently tho I've been taking my laptop other places and attempted to get ndiswrapper working so I could take advantage of wireless...

I have a compaq presario r3000 with a Broadcom 54g Built-in Wifi

ndiswrapper -l displays :
Installed ndis drivers:
bcmwl5a driver present, hardware present

when I modprobe ndsiwrapper the light on the computer turns on for networking and the kdewifi app lights up-- so far so good right? heres where the trouble starts

I can view both adhoc and my home wireless signals-- get the name and everything with the scan feature of both wlist and kwifi, but I cant connect to them for some reason, dhcpcd just sits there until I ctrl-c and putting the information to kwifi does absolutely nothing... I'm wondering if maybe certain features aren't available with the ndiswrapper emulation, or if (hopefully) I'm just missing a big step or something, I googled around for hours and couldn't find anything that got me fixed up.. so I guess this is my last chance at wireless linux Smile

any help would be greatly appreaciated, thanks

Kevin

-----------------------------------------------------------------------

wlan0

IEEE 802.11g ESSID:"KTCTechnologies"
Mode:Managed Frequency:2.457Ghz Access Point : 00:0C.41.83.A9.C2
Bit Rate:11Mb/s Tx-Power:25dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX Security mode:restricted
Power Management min timeout 0us mode:All packets recieved
Link Quality:100/100 Signal level:-66 dBm Noise level: -256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:982 Missed beacon:0

hope this helps with things... I went through as many of the iwconfig options as I could and applied them to the iwlist scan readings and the key I grabbed from the router.. dhcpcd hangs for about 30 seconds and falls through, ifconfig shows nothing but lo

still trying to figure this out alas Sad

thanks in advance,
Kevin

-----------------------------------------------------------------------

ok, I setup gentoo's internet connection script deal for wireless and saw how that went, it basically shows that everything connects, like I'm in the router with everything running fine-- and it just hangs on the dhcpcd, so basically I'm 100% now that the only thing that doesn't work is getting an ip... I have no idea why, but I also 'know' its a bug/config problem ([edited] and not an iw command I'm forgetting to input), right before this I updated ndiswrapper to the latest version and reinstalled my driver just to double check... so yea, if anyone knows why I wouldn't be able to get an ip after connecting to a server, then thats basically the problem and you'd have an answer =D

thanks

Kevin

-----------------------------------------------------------------------

thats it for the posts.. I forgot to add in them that my ndiswrapper version is 1.2, and the driver I'm using I got from a website for my specific laptop and linux, I got the official driver but the light doesn't go on on my computer so I figure it to not be working...

anyway, thanks if anyone can help-- if not then I'm not sure what to do... maybe go amd64 + windows since the only reason I'm 32 bit is for networking... I'd really prefer to get wireless up in linux tho since I love it so much ;)

Kevin

Hayl
08-14-2005, 08:42 PM
first, I noticed that you said that you were keeping it 32-bit for networking... there is a 64-bit version of that windows driver if you want to run totally 64-bit.

i use the same driver as you and it works for me, and i have the exact same laptop.

you can actually just use the inf file from the compaq discs that came with the laptop.

are you still at the point where modprobing ndiswrapper does nothing?

are you still running gentoo? (i run it as well if you do so we should be able to get this working).

what router do you have? are you using no-encryption, WEP, or WPA?

[ root@laptoplinux01 /home/ddicks ] # ndiswrapper -l
Installed ndis drivers:
bcmwl5a driver present, hardware present
[ root@laptoplinux01 /home/ddicks ] # ifconfig
wlan0 Link encap:Ethernet HWaddr 00:90:4B:AB:E0:25
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10937017 errors:0 dropped:0 overruns:0 frame:0
TX packets:11834848 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4158215135 (3965.5 Mb) TX bytes:250425964 (238.8 Mb)
Memory:e0104000-e0105fff

prurigro
08-14-2005, 08:46 PM
that was pretty quick lol- thx for the reply :)

I am still running gentoo... modprobbing ndiswrapper actually seems to work perfectly, like the light in the corner turns on and I can connect to my home network using all the iwcommands... when it comes to obtaining an IP tho is when I run into troubles, dhcpcd simply times out using both

dhcpcd wlan0

and ./net.wlan0 start in the init.d network scripts (set it up to work and everything says [ok] till dhcpcd when it just times out like when you do it manually)

Kevin

Hayl
08-14-2005, 08:51 PM
can you post your /etc/conf.d/wireless?

also - what is your /etc/init.d/net.wlan0 symlinked to?

are you using the latest baselayout? (1.11.13)

(PS: I added a couple questions to my first post as well)

prurigro
08-14-2005, 09:05 PM
net.wlan0 is symlinked to net.eth0- once run I'm connected to my router which is a lynksys using WEP-- I can connect and have my router name show up in iwconfig (as soon as the WEP key is put in) with both the net.wlan0 script and working manually

the output from net.wlan0 is

wlan0 connected to "KTCTechnologies" at 00:0C:41:83:A9:C2
in managed mode (WEP Enabled - restricted)
Brining up wlan0
dhcp
Running dhcpcd [ !! ]

and then it exits out, if i run dhcpcd wlan0 it just goes straight to exiting out

baselayout is 1.11.13 (latest)

and /etc/wireless is (sorry if theres errors, theres no web here asside from wireless so I'm copying over)

essid_wlan0="KTCTechnologies"
mode_wlan0="managed"
channel_wlan0="3"
key_KTCTechnologies="XXXXXXXXXXXXXXXXX" #not actually Xs in my config
config_KTCTechnologies=("dhcp")
return 0

I also wanna add that dhcpcd works fine on eth0 (at my other house)

Hayl
08-14-2005, 09:11 PM
mine is symlinked to /etc/init.d/net.lo

try resymlinking.

lrwxrwxrwx 1 root root 6 Jul 20 09:14 net.eth0 -> net.lo
-rwxr-xr-x 1 root root 24323 Jul 20 09:14 net.lo
-rwxr-xr-x 1 root root 2767 Jul 20 09:14 netmount
-rwxr-xr-x 1 root root 4408 Jul 9 15:08 net.ppp0
lrwxrwxrwx 1 root root 6 Jun 9 17:19 net.wlan0 -> net.lo

also, have you grepped the logs for DHCP error messages?

prurigro
08-14-2005, 09:30 PM
kk, I tried resymlinking- but net.lo does the same (I assume its the same deal since eth0 went to net.lo and thats what I was symlinked to before), anyway, these dhcpcd error logs... where do you think they'd be kept? /var/log doesn't have anything that says dhcp or anythign similar in it..

thanks for the help btw

prurigro
08-14-2005, 09:43 PM
dmesg:

ndiswrapper version 1.2 loaded (preemp=yes,smp=yes)
ndiswrapper: driver bcmwl5a (Broadcom,10/28/2003, 3.40.25.3) loaded
ACPI: PCI interrupt link [LNK3] enabled at IRQ 17
ACPI: PCI Interrupt 0000:02:02.0[A] -> Link [LNK3] -> GSI 17 (level, low) -> IRQ 17
ndiswrapper: using irq 17
wlan0: ndiswrapper ethernet device 00:90:4b:b8:ac:d8 using driver bcmwl5a, configuration file 14E4:4320.5.conf
wlan0: encryption modues supported: WEP
ndiswrapper (iw_set_encr:759): removing encryption key 0 failed (C0010015)

Hayl
08-14-2005, 10:00 PM
I don't like the looks of the following error:

"ndiswrapper (iw_set_encr:759): removing encryption key 0 failed (C0010015)"

turn off WEP on the router and then see if you can connect without it first.

(but for logs I more meant to look in /var/log) :)

prurigro
08-14-2005, 10:09 PM
yea, /var/log didn't have anything that really looked like it'd be talking about a dhcp error... I will try without WEP tho, mind you as soon as I enter the WEP key all the other stuff lights up

Kevin

prurigro
08-14-2005, 10:33 PM
OHHH DAMN-- ok, using no web did absolutely nothing, but I found out that its definitely the router, because when I tried again after setting WEP back up it worked perfectly =D, thanks a ton for the help-- I definitely never thought it would be ther router's fault (because I have other computers hooked up fine to the wireless) so you definitely get the win for this one :)

thanks again :)

Kevin

Hayl
08-14-2005, 10:50 PM
what brand/model of router is it?