LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   broadom 4311 and broadom sta driver not working (https://www.linuxquestions.org/questions/slackware-14/broadom-4311-and-broadom-sta-driver-not-working-790560/)

R Tanner 02-21-2010 10:19 AM

broadom 4311 and broadom sta driver not working
 
so I was originally trying to set up my wireless using b43-fwcutter and the b43 driver from linuxwireless.org. I was not having much luck getting that to work however with my broadcom 4311 chip so I switched to using broadcom's driver which I found here.

http://www.broadcom.com/support/802.11/linux_sta.php

I removed b43 modules and added modules for this driver and installed it but I still can't figure out why I can't get a connection. Below I've included relevant console outputs that I think should be able to help some of you braniacs help me figure this out. :)

Code:

root@darkstar:/etc/rc.d# ifconfig           
eth0      Link encap:Ethernet  HWaddr 00:1b:24:4e:5c:11 
          UP 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)
          Interrupt:20 Base address:0x6000

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)

root@darkstar:/etc/rc.d# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

root@darkstar:/etc/rc.d# iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

root@darkstar:/etc/rc.d# lsmod | grep "b43\|ssb\|wl"
wl                  1962468  0
lib80211                5216  1 wl
root@darkstar:/etc/rc.d# dmesg | tail
b43-phy0 ERROR: You must go to http://linuxwireless.org/en/users/Drivers/b43#devicefirmware and download the latest firmware (version 4).
input: b43-phy0 as /devices/virtual/input/input17
b43 ssb0:0: firmware: requesting b43/ucode13.fw
b43-phy0 ERROR: Firmware file "b43/ucode13.fw" not found
b43-phy0 ERROR: You must go to http://linuxwireless.org/en/users/Drivers/b43#devicefirmware and download the latest firmware (version 4).
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
wl: module license 'unspecified' taints kernel.
b43-pci-bridge 0000:03:00.0: PCI INT A disabled
usb 1-6: USB disconnect, address 3
root@darkstar:/etc/rc.d# uname -r
2.6.29.6-smp
root@darkstar:/etc/rc.d#

------EDIT 9:55 AM MST------

Below are some additional details I found. the first portion is relevant to my broadcom chip when running lspci -vn and the second part is just showing that I don't have any modules for ssb, even though my broadcom chip seems to be expecting one. I would say that is obviously a problem although I don't know how to change it..

Code:

03:00.0 0280: 14e4:4311 (rev 02)
        Subsystem: 103c:1374   
        Flags: fast devsel, IRQ 19
        Memory at b6000000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3         
        Capabilities: [58] Vendor Specific Information <?>     
        Capabilities: [e8] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [d0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [13c] Virtual Channel <?>
        Capabilities: [160] Device Serial Number 14-37-73-ff-ff-bc-00-1a
        Capabilities: [16c] Power Budgeting <?>
        Kernel modules: ssb
root@darkstar:~# lsusb
Bus 001 Device 002: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@darkstar:~# lsmod | grep "ssb"
root@darkstar:~# lsmod | grep "wl"
wl                  1962468  0
lib80211                5216  1 wl
root@darkstar:~#


mryuck 02-21-2010 11:53 AM

try
Code:

modprobe ssb
you might need to
Code:

modprobe b44
too

Code:

depmod -a

PTrenholme 02-21-2010 12:06 PM

Quote:

Originally Posted by R Tanner (Post 3871528)
...
I removed b43 modules and added modules for this driver and installed it but I still can't figure out why I can't get a connection. Below I've included relevant console outputs that I think should be able to help some of you braniacs help me figure this out. :)

Code:

...
root@darkstar:/etc/rc.d# lsmod | grep "b43\|ssb\|wl"
wl                  1962468  0
lib80211                5216  1 wl
root@darkstar:/etc/rc.d# dmesg | tail
b43-phy0 ERROR: You must go to http://linuxwireless.org/en/users/Drivers/b43#devicefirmware and download the latest firmware (version 4).
input: b43-phy0 as /devices/virtual/input/input17
b43 ssb0:0: firmware: requesting b43/ucode13.fw
b43-phy0 ERROR: Firmware file "b43/ucode13.fw" not found
b43-phy0 ERROR: You must go to http://linuxwireless.org/en/users/Drivers/b43#devicefirmware and download the latest firmware (version 4).
...


That snippet of what you posted strongly suggests (to me) that, despite your comment about removing the b43 modules, you have failed to do so. I'd suggest that you consider adding b43 and b43_phy to /etc/modules.d/blacklist-b43.conf or (since I don't use Slackware) wherever your system keeps it's module blacklists.

<edit>
It is, of course, possible that the driver you're trying to use is, in fact, a version of the b43
driver, and you just need to install the firmware specified in the message I quoted from your post.
</edit>

Looking at your prior thread, did you consider checking that the power to your wireless device was turned on? (On my laptop the wireless power switch is on the front of the case, and easily "tripped" by sliding the unit on my lap. I spent a couple of hours once trying to figure out what had gone wrong before I thought to check the switch position. In fact, :redface:, I booted Vista which popped a message that the power to the device was "off" before I thought to check.)

R Tanner 02-21-2010 12:11 PM

this is what i get when i type those commands

Code:

root@darkstar:~# depmod -a
root@darkstar:~# modprobe b44
root@darkstar:~# modprobe ssb
root@darkstar:~# modprobe -l ssb
kernel/drivers/ssb/ssb.ko
root@darkstar:~# modprobe -l b44
kernel/drivers/net/b44.ko


R Tanner 02-21-2010 12:21 PM

I wish that the only problem was that i need to hit the switch. :) that would be pretty nice.

in slackware it is /etc/modprobe.d/blacklist.conf and i've done the following (even though it doesn't seem to be working since these modules seem to be loaded into the kernel anyways - or so thats what modprobe is telling me, right? )

Code:

echo "blacklist 43" >> /etc/modprobe.d/blacklist.conf
echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf


mryuck 02-21-2010 12:22 PM

You`ve been battling this for a while. If all else fails the ndiswrapper module and windows drivers will work. However, Im surprised the b43 didn`t work. You should really check the drivers at slackbuilds.org. Search for broadcom. I`m not sure but the drivers there could have modified install paths or something. The stuff there almost always works on slackware systems.

mryuck 02-21-2010 12:42 PM

The slackbuilds site doesn`t list any dependencies for the broadcom-sta driver. Not even the firmware. So I doubt the ssb and b44 modules were needed. Are you using the huge kernel or generic?

R Tanner 02-21-2010 12:58 PM

lol not sure...i'm pretty sure the huge one..how can i tell?

in the readme for the broadcom sta driver it says i need to remove ssb, b43, all that cause it causes conflicts...thats why i added it to the blacklist and did rmmod on them

mryuck 02-21-2010 01:24 PM

go to /boot directory
Code:

ls -l
check to see what the vmlinuz symbolic link is to.
Chances are your using the huge kernel with just about everything compiled into it. You will not be able to remove or blacklist anything.
The b43 drivers will be in the kernel. You need to switch to the generic kernel
make an initrd
then use broadcom-sta driver

mryuck 02-21-2010 01:38 PM

I just saw your old thread. The wpa supplicant is on the slackware disk in N so you may have it already.If you can you should disable security until you get connectivity. Then work on security. It makes troubleshooting easier. You might have already had the b43 driver working but the wpa issue didn`t allow connectivity.

R Tanner 02-21-2010 04:32 PM

this is what i get. why on earth can i not unload specific modules or blacklist anything? thats pretty annoying. lol

Code:

ls -l

vmlinuz -> vk=nkubyz-huge-smp-2.6.29.6-smp


onebuck 02-21-2010 04:51 PM

Hi,

Look at 'Slackware 13.0 RC2 X86_64 Broadcom bcm4312 problems' to possibly get some insight to help solve your 'STA' problems.

BTW, what's the output for 'ifconfig -a'? 'SSB' is necessary for the b44 driver if you plan to use the Ethernet.

:hattip:

R Tanner 02-21-2010 04:57 PM

Quote:

Originally Posted by mryuck (Post 3871686)
I just saw your old thread. The wpa supplicant is on the slackware disk in N so you may have it already.If you can you should disable security until you get connectivity. Then work on security. It makes troubleshooting easier. You might have already had the b43 driver working but the wpa issue didn`t allow connectivity.


...how do i disable security, what is the wpa issue, and how would it keep me from connecting? are you referring to the fact I couldn't set the key on the wlan0? somehow i managed to completely remove wlan0 as it doesn't come up at all when i enter
Code:

iwconfig

I was trying to work with the ndiswrapper but its saying I need to download the windows driver for my wireless card and extract it but its an exe file which is unextractable. lol

R Tanner 02-21-2010 05:13 PM

below is the output...and i don't really care about ethernet..i never hook up to ethernet..i'm always using wireless..

Code:

root@darkstar:/media/disk/ndiswrapper-1.56# ifconfig -a                                                                                                                           
eth0      Link encap:Ethernet  HWaddr 00:1b:24:4e:5c:11                                                                                                                           
          UP 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)                                                                                                                                   
          Interrupt:20 Base address:0xc000                                                                                                                                         

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:1a:73:bc:14:37
          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)

wmaster0  Link encap:UNSPEC  HWaddr 00-1A-73-BC-14-37-6C-6F-00-00-00-00-00-00-00-00
          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)


mryuck 02-21-2010 05:15 PM

You should use a generic kernel if you have one in /boot.
You need to change your symbolic links for vmlinuz, syatem.map, and config to point to their generic files in /boot if they exist.
Then make an initrd. The /boot directory has an easy readme for this.
Don`t forget to do
Code:

lilo
after making the initrd.
It is easy to do.
When you use the huge kernels everything is in kernel. Generic kernel uses mostly loadable modules.
The huge kernel is a PITA when conflicts arise.
If you do want to stay with the huge kernel you probably only needed firmware for b43. The drivers were already in the kernel.

mryuck 02-21-2010 05:32 PM

For ndiswrapper you will need to extract the files on a windows computer unless someone knows a better way.
Disabling security. I meant on your router. NO wep or wpa until you can get on the internet wireless. Then work on wpa/wep.
Have you tried iwconfig to set your essid again?
If you still have the firmware installed you could try removing the wl module.
Then do iwconfig to set your essid.
With the huge kernel the b43 drivers should already be loaded.
However I would still switch to generic kernel.

R Tanner 02-21-2010 06:21 PM

okay yeah i think thats a good idea to disable the security on the router...hopefully that will fix it temporarily

i do want to boot the generic kernel though...thats what i like about linux is that everything isn't preloaded in the kernel (or so i thought)

where should this file be at? I'm reading the readme and i've gotta install it but i can't seem to find it (hopefully just cause I'm looking in the wrong place)

Code:

root@darkstar:~# installpkg kernel-generic-2.6.29.5-i686-1.tgz
cannot install kernel-generic-2.6.29.5-i686-1.tgz: file not found
root@darkstar:~#


R Tanner 02-21-2010 06:24 PM

below is the contents of my boot folder -which is where it seems like the kernel-generic file should be...

Code:

root@darkstar:/boot# ls
README.initrd@                      System.map-huge-smp-2.6.29.6-smp  config-generic-smp-2.6.29.6-smp  slack.bmp                        vmlinuz-huge-smp-2.6.29.6-smp
System.map@                          boot.0800                        config-huge-2.6.29.6            vmlinuz@
System.map-generic-2.6.29.6          boot_message.txt                  config-huge-smp-2.6.29.6-smp    vmlinuz-generic-2.6.29.6
System.map-generic-smp-2.6.29.6-smp  config@                          diag1.img                        vmlinuz-generic-smp-2.6.29.6-smp
System.map-huge-2.6.29.6            config-generic-2.6.29.6          map                              vmlinuz-huge-2.6.29.6


mryuck 02-21-2010 06:47 PM

In /boot do
Code:

ln -s vmlinuz-generic-smp-2.6.29.6-smp vmlinuz
Do this for System.map and config to make the symbolic links point to the generic files.
Then you will need to make an initrd.
The command for this depends on your filesystem. (ext3 reiser etc).
then add a line to /etc/lilo.conf
Code:

initrd= /boot/initrd.gz
under the
Code:

image = /boot/vmlinuz
.
after this don`t forget to
Code:

lilo
or you will not be able to boot without your cd.

koenigdavidmj 02-21-2010 09:46 PM

Quote:

Originally Posted by mryuck (Post 3871677)
go to /boot directory
Code:

ls -l
check to see what the vmlinuz symbolic link is to.
Chances are your using the huge kernel with just about everything compiled into it. You will not be able to remove or blacklist anything.
The b43 drivers will be in the kernel. You need to switch to the generic kernel
make an initrd
then use broadcom-sta driver

Actually, 'huge' is not as huge as you think. The only real differences between huge and generic are that huge has non-standard disk drives (RAID and such), as well as filesystem drivers. The huge kernel still uses modules for nearly everything.

mryuck 02-21-2010 11:23 PM

I was under the impression that the huge kernel had almost every kernel driver built-in and the generic kernel had almost everything compiled as a module. I`ve always used the generic kernels because I know whats loaded, it makes me feel more in control of my system.
Starting with generic here seemed worth a shot. I actually thought he got this working in his old thread with the b43 firmware/cutter.

koenigdavidmj 02-21-2010 11:57 PM

Quote:

Originally Posted by mryuck (Post 3872131)
I was under the impression that the huge kernel had almost every kernel driver built-in and the generic kernel had almost everything compiled as a module. I`ve always used the generic kernels because I know whats loaded, it makes me feel more in control of my system.
Starting with generic here seemed worth a shot. I actually thought he got this working in his old thread with the b43 firmware/cutter.

I use -generic as well, but the output of 'diff <(sort < config-generic-2.6.29.6) <(sort < config-huge-2.6.29.6)' is only 406 lines. Reading the output confirms that most things are installed modularly even for the -huge kernel.

R Tanner 02-22-2010 09:03 AM

To make initrd I need the kernel-generic files which I don't seem to have (whereis mkinitrd <version>.tgz returns nothing) ...any idea where I can download them?

Would this site work or do I need a specific mkinitrd file?

http://www.softlookup.com/download.asp?ID=39401

Thanks so much for everyone's help. Figuring out this wireless thing on linux is pretty freakin brutal (or so it seems) but I'm loving the challenge!

R Tanner 02-22-2010 10:55 AM

so looking at my kernel choices on the boot cd i used this is what i have...


hugesmp.s
speakup.s
huge.s


doesn't look like i have the generic option :( i'm going to burn a new disc with the generic and reinstall and try from the beginning...what would give me my best chances of getting this to work? the broadcom sta driver, or b43? correct me if i'm wrong here, but i only need to use b43-fwcutter if i'm using b43, right? (that sounds like a retarded question even saying it, but just wanted to check)

R Tanner 02-22-2010 11:04 AM

this is what i downloaded and burnt to disc...do i need to download something different to use the generic kernel?

http://www.slackware.com/getslack/torrents.php

R Tanner 02-22-2010 11:22 AM

hey does anyone know if this is a serious problem? I get it when i'm reinstalling and setup is installing packages

Code:

There was a fatal error attempting to install /var/log/mount/slackware/kde/kdeedu-4.2.4-i486-1.txz.  the package may be corrupt, the installation media may be bad, or something else has caused the package to be unable to read without error.  You may hit enter to continue if you wish, but if this is an important required package then your installation may not work as-is.

R Tanner 02-22-2010 12:04 PM

fresh install - current state of things
 
so i did a fresh install and this is where I'm at - haven't made any changes, installed any packages, or otherwise done anything but poke around with what you see below...it looks like you are right - b43 is already preloaded...meaning i shouldn't need to download b43-fwcutter either right?

my question would be what i need to modify so when i run iwlist wlan0 scan i actually see the wifi networks. that would be a great start. :) if I can get to the point where i can actually see the networks i'm minutes away from figuring out how to connect to them (or so i would like to hope :) )

Code:


root@darkstar:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0    IEEE 802.11bg  ESSID:"" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated 
          Tx-Power=0 dBm                                                   
          Retry min limit:7  RTS thr:off  Fragment thr=2352 B           
          Encryption key:off                                               
          Power Management:off                                             
          Link Quality:0  Signal level:0  Noise level:0                   
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0         
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0         

root@darkstar:~# ifconfig
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)   

root@darkstar:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:24:4e:5c:11 
          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:4072 (3.9 KiB)       
          Interrupt:20 Base address:0xc000                   

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:1a:73:bc:14:37
          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)

wmaster0  Link encap:UNSPEC  HWaddr 00-1A-73-BC-14-37-6C-6F-00-00-00-00-00-00-00-00
          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)

root@darkstar:~# iwlist wlan0 scan
wlan0    Interface doesn't support scanning : Network is down

root@darkstar:~# lsmod | grep "b43\|ssb"
b43                  127576  0
rfkill                  9296  1 b43
mac80211              155588  1 b43
cfg80211              36468  2 b43,mac80211
input_polldev          3108  1 b43
ssb                    38848  1 b43
pcmcia                33772  2 b43,ssb
led_class              3392  2 b43,sdhci
pcmcia_core            32016  3 b43,ssb,pcmcia
root@darkstar:~#


the_penguinator 02-22-2010 01:00 PM

Quote:

Originally Posted by R Tanner (Post 3872817)
so i did a fresh install and this is where I'm at - haven't made any changes, installed any packages, or otherwise done anything but poke around with what you see below...it looks like you are right - b43 is already preloaded...meaning i shouldn't need to download b43-fwcutter either right?

my question would be what i need to modify so when i run iwlist wlan0 scan i actually see the wifi networks. that would be a great start. :) if I can get to the point where i can actually see the networks i'm minutes away from figuring out how to connect to them (or so i would like to hope :) )

Code:


root@darkstar:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0    IEEE 802.11bg  ESSID:"" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated 
          Tx-Power=0 dBm                                                   
          Retry min limit:7  RTS thr:off  Fragment thr=2352 B           
          Encryption key:off                                               
          Power Management:off                                             
          Link Quality:0  Signal level:0  Noise level:0                   
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0         
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0         

root@darkstar:~# ifconfig
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)   

root@darkstar:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:24:4e:5c:11 
          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:4072 (3.9 KiB)       
          Interrupt:20 Base address:0xc000                   

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:1a:73:bc:14:37
          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)

wmaster0  Link encap:UNSPEC  HWaddr 00-1A-73-BC-14-37-6C-6F-00-00-00-00-00-00-00-00
          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)

root@darkstar:~# iwlist wlan0 scan
wlan0    Interface doesn't support scanning : Network is down

root@darkstar:~# lsmod | grep "b43\|ssb"
b43                  127576  0
rfkill                  9296  1 b43
mac80211              155588  1 b43
cfg80211              36468  2 b43,mac80211
input_polldev          3108  1 b43
ssb                    38848  1 b43
pcmcia                33772  2 b43,ssb
led_class              3392  2 b43,sdhci
pcmcia_core            32016  3 b43,ssb,pcmcia
root@darkstar:~#


Okay looks good, you have the correct *modules* loaded...and you get points for persisting...for this is the way of Slack...but you still need to install the *firmware* for your card before you can go any further...go here...

http://linuxwireless.org/en/users/Drivers/b43

follow the instructions _exactly_ listed there for getting b43-fwcutter-012 and broadcom-wl-4.150.10.5.tar.bz2 installed...when you have that done report back for further assistance...you will be only a few simple steps away from slack wifi nirvana

onebuck 02-22-2010 01:13 PM

Hi,

Quote:

Originally Posted by R Tanner (Post 3872757)
so looking at my kernel choices on the boot cd i used this is what i have...

hugesmp.s
speakup.s
huge.s

doesn't look like i have the generic option :( i'm going to burn a new disc with the generic and reinstall and try from the beginning...what would give me my best chances of getting this to work? the broadcom sta driver, or b43? correct me if i'm wrong here, but i only need to use b43-fwcutter if i'm using b43, right? (that sounds like a retarded question even saying it, but just wanted to check)

If you do a full install without exempting kernel options then the 'generic' kernel will be installed.

Quote:

post #18 you showed;

vmlinuz-generic-2.6.29.6
vmlinuz-generic-smp-2.6.29.6-smp
The listing of your '/boot' showed that you indeed had the generic kernels available.

'The Broadcom Firmware (tar.gz)' should be the same as the 'b43-fwcutter'.

I've used both the open and closed drivers to get a 'Broadcom 4312' working.

Don't forget to create a 'initrd'. Read the '/boot/README.initrd' to get some good helpful information.
:hattip:

PTrenholme 02-22-2010 02:43 PM

Quote:

Originally Posted by R Tanner (Post 3871859)
...
I was trying to work with the ndiswrapper but its saying I need to download the windows driver for my wireless card and extract it but its an exe file which is unextractable. lol

That's correct: The exe file is, in fact, a ZIP file with a unzip pre-installed to automatically unpack it. You can usually just run unzip on the exe file to get its contents. Then you need to use the inf file as input to b43_fwcutter. Alternatively, you could go to the site listed in your dmesg output and get the input file from there.

R Tanner 02-22-2010 03:04 PM

is this a problem? You can see I'm running as root so...

It looks like it did create the b43-fwcutter-012 directory though so seems like everything is okay..just wanted to make sure that i get this right to a T :)

Code:

root@darkstar:/media/disk/2nd Install# tar xjf b43-fwcutter-012.tar.bz2
tar: b43-fwcutter-012/README: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/md5.c: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/b43-fwcutter.1: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/md5.h: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/Makefile: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/mklist.py: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/fwcutter.h: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/fwcutter.c: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/fwcutter_list.h: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: Exiting with failure status due to previous errors


Hangaber 02-22-2010 03:09 PM

Rather coincidentally, I tried to get my wireless working on my laptop just last night. I'm posting the following in hopes that my success helps you. I've never manually setup the wireless on my laptop, and this worked really well for me. My initial mistake was to only read 'parts' of the guide in the URL below... so I initially messed with rc.wireless.conf.... but then I adjusted that back to default once I actually read through the guide properly.

My Laptop has a Broadcom BCM4311.

Initially, when I tried to use the card, the /var/log/messages told me to go get the b43 driver.

From slackbuilds.org, I obtained and installed b43-fwcutter and b43-firmware (in that order).

Using Alien BOB's guide here, I first modified just a few lines in rc.inet1.conf

Something like;
Code:

IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_ESSID[4]="MyESSIDHere"
WLAN_MODE[4]="Managed"
WLAN_WPA[4]="wpa_supplicant"

(I could probably change this from [4] to [1], and comment out the other [1] lines... but my initial goal was to just get it working.)

I edited /etc/wpa_supplicant.conf (according to the Alien BOB's guide, which matched near perfectly). Worked great.

My KEY is really funky, and long. It contains all kinds of characters including quotes, slashes, etc, so I used wpa_passphrase to convert the string from funkystring to hex.
wpa_passphrase MyESSIDHere MyFunkyStringKeyHere
- of, which now I realize would have been better for me...
wpa_passphrase MyESSIDHere
(Then type or paste the funkystring in when it asks me to)

/etc/rc.d/rc.inet1 wlan0_stop # not even sure this was needed
/etc/rc.d/rc.inet1 wlan0_start # gave me a minor error about setting a "nickname" I think, but anyway...
ifconfig # Shows that I got a 192.168.* ip from my crappy wireless router.

The laptop could then ping the router and other machines in my LAN.

R Tanner 02-22-2010 04:46 PM

Quote:

Originally Posted by the_penguinator (Post 3872888)
Okay looks good, you have the correct *modules* loaded...and you get points for persisting...for this is the way of Slack...but you still need to install the *firmware* for your card before you can go any further...go here...

http://linuxwireless.org/en/users/Drivers/b43

follow the instructions _exactly_ listed there for getting b43-fwcutter-012 and broadcom-wl-4.150.10.5.tar.bz2 installed...when you have that done report back for further assistance...you will be only a few simple steps away from slack wifi nirvana

holy crap! its freakin picking up some wifi man!! this is awesome. that just made my day. i can't tell you how siked i am. i'm at work though and the network i want to connect to isn't broadcasting...how do i connect to a non broadcasting essid? i also have an ethernet cable here...how do i connect with that? I've tried the following to no avail

looking at my ethernet cord there is a green solid light and a blinking yellow light...any thoughts anyone?

Code:

root@darkstar:~# ifconfig eth0 down
root@darkstar:~# ifconfig eth0 up
root@darkstar:~#

thanks so much everyone for your help...you are all awesome! i'm one step closer to being a true slacker lol :)

mryuck 02-22-2010 06:39 PM

Congratulations!
Code:

iwlist scan
will list access points but I don`t know about hidden essid`s. You might be able to connect by mac address.
As for ethernet you probably only need to
Code:

dhcpcd eth0
To get an ip address.
As for generic kernel, sorry I didn`t explain it better. You already had everything you needed. You just need to change the symbolic links in /boot to point to the *generic* ones instead of *huge*. The initrd is necessary for generic kernel.
This example is from the README.initrd
in /boot
Code:

mkinitrd -c -k 2.6.29.5 -m mbcache:jbd:ext3 -f ext3 -r /dev/hdb3
This assumes a root on /dev/hdb3 (which yours probably isn`t) and it assumes your using ext3 filesystem (which you might be).
The example also has a different kernel version than what you have.
Code:

uname -r
will display your kernel version.
Once successful with mkinitrd you will have initrd-tree and initrd.gz in your /boot directory.
Then in /etc/lilo.conf you will need to add a line like
Code:

initrd= /boot/initrd.gz
Don`t forget to
Code:

lilo
when finished with editing /etc/lilo.conf.
Of course this might be just a GIANT pain after getting wifi working!

the_penguinator 02-22-2010 07:20 PM

Quote:

Originally Posted by R Tanner (Post 3873148)
holy crap! its freakin picking up some wifi man!! this is awesome. that just made my day. i can't tell you how siked i am. i'm at work though and the network i want to connect to isn't broadcasting...how do i connect to a non broadcasting essid? i also have an ethernet cable here...how do i connect with that? I've tried the following to no avail

looking at my ethernet cord there is a green solid light and a blinking yellow light...any thoughts anyone?

Code:

root@darkstar:~# ifconfig eth0 down
root@darkstar:~# ifconfig eth0 up
root@darkstar:~#

thanks so much everyone for your help...you are all awesome! i'm one step closer to being a true slacker lol :)

progress is good yes...to keep things easier for you for now, get and install wicd which you will find in /extra on any slack mirror...it's a pretty slick little app that makes a simple job, even simpler

if you have made any changes to /etc/rc.d/rc.inet1.conf , comment them out and return it to its original state, then reboot...when you start up kde or whatever, you'll have a wicd icon in your panel, click on it and it will identify all wireless networks within range...you will need to know the encryption keys to access the networks unless they are open WEP nodes...if you've got your ethernet cable in, wicd will id that network as well and you will need to put in the appropriate info to connect to that as well...but obviously you don't need both at the same time yes?

there really are only 3 files you need to know how to edit to do wifi manually with slack, but often you get conflicting and sometimes irrelevant info when you ask for help...after you've got your machine connected, do some reading about

/etc/wpa_supplicant.conf
/etc/rc.d/rc.wireless.conf
/etc/rc.d/rc.inet1.conf

so you'll know what wicd is doing for you and then

man wpa_passphrase

R Tanner 02-22-2010 09:44 PM

so i'm not exactly sure what i'm doing wrong...i'm trying to connect to a network with a wpa2 passphrase and when i try to do so through wicd it says its validating authentication (at the bottom of the gui) and then it says its obtaining an IP address but that it fails to obtain an ip address...any ideas what I need to do differently? i've tried to connect by getting a key via wpa_passphrase and then setting the key via iwconfig but it tells me invalid arguments...

sorry i can provide what i'm typing in the console if you need..i'm just in the middle of trying to catch a bus :)

PTrenholme 02-23-2010 03:43 PM

Quote:

Originally Posted by R Tanner (Post 3873033)
is this a problem? You can see I'm running as root so...

It looks like it did create the b43-fwcutter-012 directory though so seems like everything is okay..just wanted to make sure that i get this right to a T :)

Code:

root@darkstar:/media/disk/2nd Install# tar xjf b43-fwcutter-012.tar.bz2
tar: b43-fwcutter-012/README: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/md5.c: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/b43-fwcutter.1: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/md5.h: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/Makefile: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/mklist.py: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/fwcutter.h: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/fwcutter.c: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012/fwcutter_list.h: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: b43-fwcutter-012: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: Exiting with failure status due to previous errors


This looks like you're trying to extract the tar file to a directory called "2nd Install" on the media/disk drive. I suspect that /media/disk/2nd Install may be a CD or DVD that you've mounted "read only," which would make it difficult to write to the disk. It could be a USB drive, but, again, it may be mounted ro.

In any case, try creating some directory on your hard drive (mkdir ...) and use cd to change your working directory to that new one. Then try the tar command again.

<edit>
And, after I looked at the rest of your thread following the message I quoted, since you seem to have things now working, you can probably disregard this as irrelevant.
</edit>

R Tanner 02-23-2010 03:55 PM

i do have things working...as long as the network is open and doesn't require a passkey/passphrase. I'm going to try to connect to a network that requires a wpa2 key tonight and see if I can figure it out...it kept telling me "unable to obtain ip address" when i was trying yesterday.

mryuck 02-23-2010 04:27 PM

you need to look at /etc/wpa_supplicant.conf. I don`t think iwconfig supports passphrase without wpa_supplicant but I`m not sure.

the_penguinator 02-23-2010 09:39 PM

Quote:

Originally Posted by R Tanner (Post 3874273)
i do have things working...as long as the network is open and doesn't require a passkey/passphrase. I'm going to try to connect to a network that requires a wpa2 key tonight and see if I can figure it out...it kept telling me "unable to obtain ip address" when i was trying yesterday.

yeah that will happen if you don't know the passphrase for the network you're trying to connect to...it's a security thing yes?

but it does sound like you're getting somewhere...have you tried to connect to your own wireless network yet?

R Tanner 02-23-2010 10:36 PM

so when trying to run wpa_supplicant this is what i get...i think the general gist is it can't find an access point...how do i rectify this? lol :)

Code:

root@darkstar:~# wpa_supplicant -c/etc/wpa_supplicant.conf -iwlan0 -d
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'                                                                                           
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'                           
Reading configuration file '/etc/wpa_supplicant.conf'                                                 
ctrl_interface='/var/run/wpa_supplicant'                                                             
ctrl_interface_group='0'                                                                             
eapol_version=1                                                                                       
ap_scan=1                                                                                             
fast_reauth=1                                                                                         
Priority group 10                                                                                     
  id=0 ssid='Katies Corner'                                                                         
Priority group 0                                                                                     
  id=1 ssid=''                                                                                       
Initializing interface (2) 'wlan0'                                                                   
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf                                             
  capabilities: key_mgmt 0xf enc 0xf flags 0x0                                                       
WEXT: Operstate: linkmode=1, operstate=5                                                             
Own MAC address: 00:1a:73:bc:14:37                                                                   
wpa_driver_wext_set_wpa                                                                               
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0                                 
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0                                 
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0                                 
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0                                 
wpa_driver_wext_set_countermeasures                                                                   
wpa_driver_wext_set_drop_unencrypted                                                                 
RSN: flushing PMKID list in the driver                                                               
Setting scan request: 0 sec 100000 usec                                                               
WPS: UUID based on MAC address - hexdump(len=16): 8e eb 4d 0d 1b eb 54 b1 ba 8b 4e 26 3b 23 e5 1d     
WPS: Build Beacon and Probe Response IEs                                                             
WPS:  * Version                                                                                       
WPS:  * Wi-Fi Protected Setup State (0)                                                               
WPS:  * Version                                                                                       
WPS:  * Wi-Fi Protected Setup State (0)                                                               
WPS:  * Response Type (2)                                                                             
WPS:  * UUID-E                                                                                       
WPS:  * Manufacturer                                                                                 
WPS:  * Model Name                                                                                   
WPS:  * Model Number                                                                                 
WPS:  * Serial Number                                                                                 
WPS:  * Primary Device Type                                                                           
WPS:  * Device Name                                                                                   
WPS:  * Config Methods (0)                                                                           
WPS:  * RF Bands (3)                                                                                 
EAPOL: SUPP_PAE entering state DISCONNECTED                                                           
EAPOL: KEY_RX entering state NO_KEY_RECEIVE                                                           
EAPOL: SUPP_BE entering state INITIALIZE                                                             
EAP: EAP entering state DISABLED                                                                     
Using existing control interface directory.                                                           
ctrl_interface_group=0                                                                               
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

Failed to add interface wlan0
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6


mryuck 02-23-2010 11:01 PM

In /etc/wpa_supplicant.conf did you put your_64_char_psk where it said to?
To get the 64_char_psk you could do
Code:

wpa_passphrase youressid "passphrase"
Also you should have a gui program called wpa_gui. If you can`t find it just type wpa_gui in a terminal.

the_penguinator 02-24-2010 06:35 AM

Quote:

Originally Posted by R Tanner (Post 3874596)
so when trying to run wpa_supplicant this is what i get...i think the general gist is it can't find an access point...how do i rectify this? lol :)

okay, _you_ don't run wpa_supplicant, it is a program that gets called by another program...wpa_supplicant has a configuration file called /etc/wpa_supplicant.conf...into which you would copy the results of doing
foo@foo$wpa_passphrase <your ESSID> <your_clever_encryption_keywords>

but only if you were configuring your wifi manually

since you're using wicd, you don't need to do that...in order to attach to a WPA/WPA2 encrypted wireless network, you need to know the encryption key for that network and enter it in the appropriate field when you click the <properties> button on the wicd gui...ergo...if you don't have the key, it must not be your door

I think you're mistaking wpa_supplicant for some other kind of program

R Tanner 02-24-2010 07:57 AM

ahh..that makes sense...hence why it's called a daemon program. So my question is do I have to use the wicd gui? I would prefer to do everything from a command prompt. I haven't been able to figure out how to connect to even an open network through a command prompt though. I mean I can always set the essid for the wlan0 but that doesn't connect me.

So I guess now that I think about it, I'm not sure I really understand exactly what you mean when you say I'm not supposed to run wpa_supplicant directly. Looking at the man page it looks like thats what I'm supposed to be able to do. Or is the wicd program calling wpa_supplicant, thereby causing problems when i try to call it?

the_penguinator 02-24-2010 09:20 AM

Quote:

Originally Posted by R Tanner (Post 3875026)
ahh..that makes sense...hence why it's called a daemon program. So my question is do I have to use the wicd gui? I would prefer to do everything from a command prompt. I haven't been able to figure out how to connect to even an open network through a command prompt though. I mean I can always set the essid for the wlan0 but that doesn't connect me.

So I guess now that I think about it, I'm not sure I really understand exactly what you mean when you say I'm not supposed to run wpa_supplicant directly. Looking at the man page it looks like thats what I'm supposed to be able to do. Or is the wicd program calling wpa_supplicant, thereby causing problems when i try to call it?

in order of your asking, no you don't have to use wicd, but if you're just learning about wifi configuration it makes life simpler...if you want to learn to configure manually, stick with one network -preferably yours- and learn how to do that first...obviously everything can be done from the cli but it sounds like you're trying to access different wifi networks and that sounds like it's a bit beyond your level of knowledge at this point...

you're right, you as a user don't run wpa_supplicant, wicd is running the scripts for you and you're doing nothing but creating error messages when you try to run it manually...

Hangaber 02-24-2010 01:23 PM

Quote:

Originally Posted by R Tanner (Post 3875026)
[...] I haven't been able to figure out how to connect to even an open network through a command prompt though. I mean I can always set the essid for the wlan0 but that doesn't connect me.

Assuming you're using wlan0... (I think this is taken from the appropriate IFNAME[x] in rc.inet1.conf)

/etc/rc.d/rc.inet1 wlan0_stop
/etc/rc.d/rc.inet1 wlan0_start

R Tanner 03-01-2010 10:34 PM

working with WPA, wext, and wpa_supplicant
 
So I'm trying to figure out what I've configured wrong with my wireless...I need to set up a WPA but it won't connect...below is the output of my rc.inet1.conf and wpa_supplicant.conf and the output of /etc/rc.d/rc.inet1.conf wlan0_restart...

First the stuff pertaining to wlan0 in rc.inet1.conf...

Code:

########
## Example config information for wlan0.  Uncomment the lines you need and fill
## in your data.  (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="darkstar"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
WLAN_KEY[4]="bd9552595fdcb903cb84436c566c05ec821c68803f355bd4bdb7b5d4729d4c46"
WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="wext"
WLAN_WPAWAIT[4]=30

This is everything in wpa_supplicant.conf

Code:

network={
        ssid="Katies Corner"
        #psk="mypassphrase"
        psk="bd9552595fdcb903cb84436c566c05ec821c68803f355bd4bdb7b5d4729d4c46"
        priority=5
}

when i run /etc/rc.d/rc.inet1.conf wlan0_[restart, stop, start] I get absolutely nothing...any help is greatly appreciated...:)

---------------------------EDIT---------------------------------------

I forgot to say I can connect fine to networks that don't require a password...but i can't connect to networks that do

---------------------------EDIT---------------------------------------

the_penguinator 03-02-2010 06:49 AM

Quote:

Originally Posted by R Tanner (Post 3881901)
So I'm trying to figure out what I've configured wrong with my wireless...I need to set up a WPA but it won't connect...below is the output of my rc.inet1.conf and wpa_supplicant.conf and the output of /etc/rc.d/rc.inet1.conf wlan0_restart...

First the stuff pertaining to wlan0 in rc.inet1.conf...

Code:

########
## Example config information for wlan0.  Uncomment the lines you need and fill
## in your data.  (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="darkstar"
WLAN_WPA[4]="wpa_supplicant" 
WLAN_WPADRIVER[4]="wext"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
WLAN_KEY[4]="bd9552595fdcb903cb84436c566c05ec821c68803f355bd4bdb7b5d4729d4c46"
WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="wext"
WLAN_WPAWAIT[4]=30

This is everything in wpa_supplicant.conf

Code:

network={
        ssid="Katies Corner"
        #psk="mypassphrase"
        psk="bd9552595fdcb903cb84436c566c05ec821c68803f355bd4bdb7b5d4729d4c46"
        priority=5
}

when i run /etc/rc.d/rc.inet1.conf wlan0_[restart, stop, start] I get absolutely nothing...any help is greatly appreciated...:)

---------------------------EDIT---------------------------------------

I forgot to say I can connect fine to networks that don't require a password...but i can't connect to networks that do

---------------------------EDIT---------------------------------------

looks like you're making lots of progress

1. you have uncommented lines you don't need to use in /etc/rc.d/rc.inet1.conf
comment these lines back again
WLAN_MODE[4]=Managed
WLAN_KEY[4]="bd9...
WLAN_IWPRIV[4]="set...
WPAPSK=96...
WLAN_WPAWAIT[4]=30....

2. did you name your machine "darkstar" when you installed Slack? If not, comment this out in inet1.conf
DHCP_HOSTNAME[4]="darkstar"

3. ssid="Katies Corner"

Linux/Unix doesn't like white spaces...it reads a white space as an end of a line...I would type the essid as Katies_Corner, and you would need to make that change in the configuration of your router as well.

4. psk="bd9...c46" from wpa_supplicant.conf

no quote signs required, just the number from wpa_passphrase

5. when done do
/etc/rc.d/rc.inet1 wlan0 restart NOT /etc/rc.d/rc.inet1.conf restart

R Tanner 03-02-2010 12:05 PM

okay sweet thank you :) I will see if it works tonight. What if I have multiple networks I might be connecting to that have different essid's and different pass phrases? Do I just have a separate network code block in wpa_supplicant.conf? I'm guessing I would then just need to restart the interface if I change networks...

the_penguinator 03-02-2010 09:00 PM

Quote:

Originally Posted by R Tanner (Post 3882876)
okay sweet thank you :) I will see if it works tonight. What if I have multiple networks I might be connecting to that have different essid's and different pass phrases? Do I just have a separate network code block in wpa_supplicant.conf? I'm guessing I would then just need to restart the interface if I change networks...

I don't think so. Since you seem to want to work manually, you're going to have to learn to use the iwconfig command to connect to different networks. And if you change the settings for your card to connect another place, you'll need to do it again manually when you get home. I saw a script called rc.inet1.smart a while back that looked like interesting but never putzed with it.

wicd is really the tool for connecting to different networks if you do that frequently. I use it. easy-peasy


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