LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   cant get ndiswrapper to work (https://www.linuxquestions.org/questions/linux-hardware-18/cant-get-ndiswrapper-to-work-832429/)

1467 09-15-2010 08:21 PM

cant get ndiswrapper to work
 
i am trying to get may wireless card to work i was following this tutorial http://www.youtube.com/watch?v=v0Ist9aEKEg

output of lspci
---------------
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:02.0 Display controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
00:06.0 System peripheral: Intel Corporation 82865G/PE/P Processor to I/O Memory Interface (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
01:01.0 Ethernet controller: Linksys, A Division of Cisco Systems WMP11v4 802.11b PCI card
01:02.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
01:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02)
---------------
so i went to http://sourceforge.net/apps/mediawik...oadcom_BCM4318 to get my driver
then after installing ndiswrapper and downloading the inf and sys files i entered
----------
# ndiswrapper -i BCMWL5A.INF
driver bcmwl5a is already installed
# ndiswrapper -m

WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.
module configuration already contains alias directive

# /etc/rc.d/rc.inet1 wlan0_restart
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:20:00:06:27
inet addr:192.168.1.72 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::213:20ff:fe00:627/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59693 errors:0 dropped:0 overruns:0 frame:0
TX packets:39543 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79478715 (75.7 MiB) TX bytes:3197353 (3.0 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4080 (3.9 KiB) TX bytes:4080 (3.9 KiB)

----------
i am using slcakware 13.1
ty for any help

onebuck 09-16-2010 08:19 AM

Hi,

Welcome to LQ!

Why do you want to use 'ndiswrapper' for the Broadcom wireless? Most likely you just need to get the 'firmware' for the device.

On a fresh boot what does 'ifconfig -a' show?

b43-fwcutter from http://slackbuilds.org/repository/13.1/network/ will provide the means to create the firmware.

Once you build the package you can install, restart inet and then things should be good to go. This subject has been covered many times here on LQ so a Search in the Slackware forum will provide a lot of useful information.

After you have the firmware installed then look at Configuring your network in Slackware which is Alien_Bob's excellent article on the way network cards are configured in Slackware. You will find loads of internal reference links for Ethernet & Wireless .

Just a few more useful links;

SlackwareŽ Essentials
SlackwareŽ Basics
Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

1467 09-16-2010 07:01 PM

well i got the firmware so far Thank you for the help i have not gotten it to work yet but i am still working on it not sure what to do now tho

ifconfig -a
--------------
eth0 Link encap:Ethernet HWaddr 00:13:20:00:06:27
inet addr:192.168.1.72 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::213:20ff:fe00:627/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5185 errors:0 dropped:0 overruns:0 frame:0
TX packets:4160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4017053 (3.8 MiB) TX bytes:549111 (536.2 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2080 (2.0 KiB) TX bytes:2080 (2.0 KiB)
--------------

onebuck 09-17-2010 07:54 AM

Hi,

You do have a IP for the wired. So the '/etc/rc.d/rc.inet1.conf' is configured for the wired. Unless you want to use this device then comment out within '/etc/rc.d/rc.inet1.conf' eth0 information. Then configure for the wireless. Configuring your network in Slackware is very useful. If you decide you need the choice between networks then after you get things working you can install 'wicd' from '/extra'. Get things working first!

If you use 'ifconfig -a' the output is for available device;
Quote:

excerpt from 'man ifconfig';
-a display all interfaces which are currently available, even if down
You did remove any 'ndiswrapper' scripting or init that you placed?

Be sure to check '/etc/modprobe.d/blacklist.conf' for blacklist attachment/insertion for the device. Comment references out for this broadcom device.

You restart the inet or reboot? To restart inet from the cli: /etc/rc.d/rc.inet restart.

What does the '/etc/udev/rules.d/70-persistent-net.rules' show after the re-boot? You can remove this file then re-boot and see if the device is handled.

What does 'lsmod' show for the bcm43xx (b43) since the firmware should now be in '/lib/firmware/'. The device should be recognized and initialized.

What do you see for the modules in the output for Broadcom BCM4318 from 'lspci -vvk' now/after re-boot?

I do suggest that you 'man command' to understand things better.

:hattip:

1467 09-17-2010 04:54 PM

i followed the instructions at http://linuxwireless.org/en/users/Drivers/b43 but in the install part when it says
export FIRMWARE_INSTALL_DIR="/lib/firmware"
so i enter ?
export /lib/firmware="/lib/firmware"
whats that command do ?
but other then that i think i did every thing it asked but ifconfig has the same out put as ifconfig -a for me so i must not have done something right

did not remove all of the ndiswrapper stuff tho i tryed it a bunch of times with different versions in different locations i don't think i got it all spent 3 days trying to get that to work before i posted this

1467 09-19-2010 12:39 PM

ok i got wlan0 to show up in ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:13:20:00:06:27
inet addr:192.168.1.72 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::213:20ff:fe00:627/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26518 errors:0 dropped:0 overruns:0 frame:0
TX packets:15825 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35678603 (34.0 MiB) TX bytes:1412405 (1.3 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1240 (1.2 KiB) TX bytes:1240 (1.2 KiB)

wlan0 Link encap:Ethernet HWaddr 00:14:a5:d3:57:78
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
woot now what?

1467 09-19-2010 02:07 PM

ok now i get this when i try /etc/rc.d/rc.inet1 wlan0_restart
/etc/rc.d/rc.inet1: wlan0 information: 'Any ESSID'
Error for wireless request "Set Nickname" (8B1C) :
SET failed on device wlan0 ; Operation not supported.
Polling for DHCP server on interface wlan0:
dhcpcd: version 5.2.2 starting
dhcpcd: wlan0: waiting for carrier
dhcpcd: timed out
dhcpcd: allowing 8 seconds for IPv4LL timeout
dhcpcd: timed out

onebuck 09-19-2010 03:45 PM

Hi,

Show the '/etc/rc.d/rc.inet1.conf' file. No need to include any keys.

'Configuring your network in Slackware' is a good reference.

As root you can use the below to configure a static IP for your wlan device on the LAN;

Code:

~#ifconfig wlan0 192.168.1.18    #<<< available IP
 ~#route add default gw 192.168.1.1 #<<your gateway
 ~#iwlist wlan0 scan #<< use information to fill in for essid & ap information
 ~#iwconfig wlan0 essid "Your Wireless"
 ~#iwconfig wlan0 key your_key_here
 ~#iwconfig wlan0 ap xx:xx:xx:xx:xx:xx #<<Your _ap_from iwlist

I use the script below to setup my wireless while experimenting.

Code:


 wlan.sh;
 
 #!/bin/bash
 #Don't forget to make it executable.
 #10-26-09 13:30 gws
 #setup the wlan0 device
 #
 /sbin/ifconfig wlan0 192.168.1.18
 /sbin/route add default gw 192.168.1.1
 /sbin/iwconfig wlan0 essid "Your_Wireless_Access"
 /sbin/iwconfig wlan0 key Your_key
 /sbin/iwconfig wlan0 ap 00:00:00:00:00:00 << your AP HW address from above iwlist scan

Try the above to setup a static IP. See if that works for you.
I suspect something is not right in the '/etc/rc.d/rc.inet1.conf' file.

:hattip:
The above link and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

rob.rice 09-22-2010 03:55 PM

Quote:

dhcpcd: wlan0: waiting for carrier
is the wireless router working ?


All times are GMT -5. The time now is 03:33 PM.