Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Native Airport Extreme Drivers (part 2)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Mar 18, 2007 2:38 pm    Post subject: Native Airport Extreme Drivers (part 2) Reply with quote

Updated 2007-12-12!
There are no PPC specific instructions in these directions.
Continued from Native Airport Extreme Drivers.

As of 2.6.24_rc1, the new b43 and b43legacy mac80211 based drivers are included in the mainline kernel. I recommend using at least this kernel for the best results.

Which driver should I use?

First, find which card you have:
Code:

lspci -n | grep 14e4:43

This should return something like this:
Quote:

0001:10:11.0 0280: 14e4:4318 (rev 02)

Where 4318 is the card version. Note that many 4306 cards return 4320 instead of 4306, and some 4309 cards return 4324 instead of 4309.

b43legacy should be used on all 4301 and 4303 cards. 4306 and 4309 cards with a PHY revision of 4 or less should also use b43legacy. b43 should be used on all other cards. You can safely have both versions built on the same system. If you're not sure which to use, build both as modules, the driver will choose the correct version.

What's the difference between b43legacy and b43?
b43 offers a newer codebase and hardware crypto support. Unfortunately, Broadcom did not release firmware files for some older boards due to memory constraints on the cards themselves. These cards must use b43legacy.

Which firmware should I use?
Get firmware from http://linuxwireless.org/en/users/Drivers/bcm43xx. All other firmware is considered "unsupported". You must use b43-fwcutter instead of bcm43xx-fwcutter to prepare the firmware, for both drivers, even if you already have bcm43xx firmware installed.

What kernel options should I use?
To use b43 or b43legacy:

1. Emerge a 2.6.24_rc1 or newer kernel
2. When configuring the kernel, enable:
Code:
Networking -->
     <M>   Generic IEEE 802.11 Networking Stack (mac80211)
     [*]       Enable LED triggers (if your card has LEDs)

Device Drivers --> Network device support --> Wireless LAN
     [*] Wireless LAN (IEEE 802.11)
     <M>   Broadcom BCM43xx wireless support (mac80211 stack)
     [*]          Broadcom 43xx PCMCIA device support (EXPERIMENTAL)
     [*]          Broadcom 43xx debugging
     <M>   Broadcom 43xx-legacy wireless support (mac80211 stack)
     [*]          Broadcom 43xx-legacy debugging

3. Build the kernel as usual
4. Emerge b43-fwcutter
5. Get firmware from http://linuxwireless.org/en/users/Drivers/bcm43xx
6. Cut and install the firmware
Code:

# mkdir /lib/firmware
# b43-fwcutter name_of_fw_file

7. Make sure that you have emerged wireless-tools for the iwconfig tool and wpa_supplicant if you require WPA support.
8. To use the driver, we'll insert the module first
Code:
# modprobe b43

If this doesn't work, please check dmesg to see what the problem is.

I recommend using wpa_supplicant with Gentoo's net scripts with current kernels (even for non-WPA connections). It's very easy to set up and works well with b43.

Board specific notes:
Support for 802.11g cards (4311/4312/4318/4319 chipsets) is now fairly stable. While it still isn't perfect, the throughput and range has improved considerably. In newer kernels, support has been added for the new revisions of 4311 boards.

802.11n cards (432x/433x) are not supported, but reverse engineering has been partially completed. 802.11 Cards and routers have been bought by the development team, so hopefully development will start soon.

Big thanks to everyone who has worked on the driver and gotten us this far!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml


Last edited by JoseJX on Sun Sep 07, 2008 10:09 pm; edited 10 times in total
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Mar 18, 2007 2:40 pm    Post subject: Reply with quote

Obscure:
Can you paste in the panic?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 639
Location: Uppsala, Sweden

PostPosted: Mon Mar 19, 2007 12:05 pm    Post subject: Reply with quote

I can't get the drivers to work on. :/

I'm trying to connect to a open network in school. Here are the steps I do.

I set the essid with iwconfig ("UpUnet-S") for eth1

I turn eth1 on with ifconfig

I then try to get an ip using dhcpcd without any luck.

I can scan for the network using iwlist.

wpa_supplicant fails completley to and I have been advised to get iwconfig up and running before wpa_supplicant. Is there better support in the new 2.6.20-2 kernel?
_________________
From Gentoo with love
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 19, 2007 1:30 pm    Post subject: Reply with quote

Check dmesg. Are you actually associating with the wireless network?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 639
Location: Uppsala, Sweden

PostPosted: Tue Mar 20, 2007 2:46 pm    Post subject: Reply with quote

Yes I'm associated but it fails.. Here is my dmesg

Code:

ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
bcm43xx driver
ACPI: PCI Interrupt 0000:0c:00.0[A] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:0c:00.0 to 64
bcm43xx: Chip ID 0x4311, rev 0x1
bcm43xx: Number of cores: 4
bcm43xx: Core 0: ID 0x800, rev 0x11, vendor 0x4243
bcm43xx: Core 1: ID 0x812, rev 0xa, vendor 0x4243
bcm43xx: Core 2: ID 0x817, rev 0x3, vendor 0x4243
bcm43xx: Core 3: ID 0x820, rev 0x1, vendor 0x4243
bcm43xx: PHY connected
bcm43xx: Detected PHY: Analog: 4, Type 2, Revision 8
bcm43xx: Detected Radio: ID: 2205017f (Manuf: 17f Ver: 2050 Rev: 2)
bcm43xx: Radio turned off
bcm43xx: Radio turned off
nvidia: module license 'NVIDIA' taints kernel.
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:01:00.0 to 64
NVRM: loading NVIDIA UNIX x86_64 Kernel Module  1.0-9755  Mon Feb 26 23:16:31 PST 2007
EXT3 FS on sda3, internal journal
fuse init (API version 7.8)
fuse distribution version: 2.6.3
bcm43xx: PHY connected
bcm43xx: Microcode rev 0xf5, pl 0x5a (2003-12-22  20:11:25)
bcm43xx: Radio turned on
bcm43xx: Chip initialized
bcm43xx: 32-bit DMA initialized
bcm43xx: Keys cleared
bcm43xx: Selected 802.11 core (phytype 2)
SoftMAC: Associate: Scanning for networks first.
SoftMAC: Scanning finished: scanned 14 channels starting with channel 1
SoftMAC: Queueing Authentication Request to 00:0b:85:2b:0f:be
SoftMAC: Cannot associate without being authenticated, requested authentication
SoftMAC: Sent Authentication Request to 00:0b:85:2b:0f:be.
SoftMAC: Open Authentication completed with 00:0b:85:2b:0f:be
SoftMAC: sent association request!
SoftMAC: associated!
SoftMAC: Authentication response received from 00:13:ce:35:8b:57 but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
SoftMAC: Received deauthentication packet from 00:13:ce:35:8b:57, but that network is unknown.
SoftMAC: Authentication response received from 00:13:ce:35:8b:57 but no queue item exists.
SoftMAC: Authentication response received from 00:13:ce:35:8b:57 but no queue item exists.
SoftMAC: Received deauthentication packet from 00:13:ce:35:8b:57, but that network is unknown.
SoftMAC: Authentication response received from 00:13:ce:35:8b:57 but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
printk: 20 messages suppressed.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
printk: 1 messages suppressed.
SoftMAC: Authentication response received from 00:0b:85:24:75:0e but no queue item exists.
SoftMAC: Associate: Scanning for networks first.
SoftMAC: Scanning finished: scanned 14 channels starting with channel 1
SoftMAC: Queueing Authentication Request to 00:0b:85:2b:0f:be
SoftMAC: Cannot associate without being authenticated, requested authentication
SoftMAC: Sent Authentication Request to 00:0b:85:2b:0f:be.
SoftMAC: sent association request!
SoftMAC: associated!
printk: 5 messages suppressed.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
printk: 1 messages suppressed.
SoftMAC: Authentication response received from 00:0b:85:2b:0f:be but no queue item exists.
printk: 1 messages suppressed.
SoftMAC: Received deauthentication packet from 00:0b:85:24:75:0e, but that network is unknown.
SoftMAC: Received deauthentication packet from 00:0b:85:24:75:0e, but that network is unknown.
printk: 1 messages suppressed.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
printk: 3 messages suppressed.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.
printk: 8 messages suppressed.
SoftMAC: Authentication response received from 00:19:e3:04:30:d9 but no queue item exists.


I did this before
Code:

LappySlappy sedrik # ifconfig eth1 up
LappySlappy sedrik # iwconfig eth1 essid "UpUnet-S"

_________________
From Gentoo with love
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 20, 2007 7:28 pm    Post subject: Reply with quote

Quote:

SoftMAC: associated!


It associated just fine. You may not have the signal strength to maintain the connection though. What is the output of iwlist scan?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 639
Location: Uppsala, Sweden

PostPosted: Thu Mar 22, 2007 7:15 am    Post subject: Reply with quote

Code:
eth1      Scan completed :
          Cell 01 - Address: 00:0B:85:2B:0F:BE
                    ESSID:"UpUnet-S"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:1
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=88/100  Signal level=-61 dBm  Noise level=-70 dBm
                    Extra: Last beacon: 364ms ago
          Cell 02 - Address: 00:0B:85:2B:0F:BD
                    ESSID:"eduroam"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:1
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=90/100  Signal level=-56 dBm  Noise level=-70 dBm
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : 802.1X 
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : 802.1X 
                    Extra: Last beacon: 360ms ago


Isn't that strenght enough?
_________________
From Gentoo with love
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Mar 22, 2007 12:32 pm    Post subject: Reply with quote

Which kernel are you using? That signal strength should be okay.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 639
Location: Uppsala, Sweden

PostPosted: Thu Mar 22, 2007 1:28 pm    Post subject: Reply with quote

Code:
sedrik@LappySlappy ~ $ uname -a
Linux LappySlappy 2.6.20-gentoo-r2 #4 SMP Tue Mar 13 12:09:56 CET 2007 x86_64 Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz GenuineIntel GNU/Linux


I got larrys combined patch for it to.
_________________
From Gentoo with love
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Mar 24, 2007 5:56 pm    Post subject: Reply with quote

You may want to try another dhcp client, but everything looks fine to me.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 639
Location: Uppsala, Sweden

PostPosted: Sat Mar 24, 2007 8:57 pm    Post subject: Reply with quote

hmm ok, I will look more into it. :/

Will keep going on cable for the time being then.
_________________
From Gentoo with love
Back to top
View user's profile Send private message
Chewieip
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2004
Posts: 79
Location: Girona, Spain

PostPosted: Mon Mar 26, 2007 11:41 am    Post subject: Reply with quote

Hi guys,

I'm having some trouble with that wireless card. I can scan for wireless esid, modprobe the module etc. But I can't connect to a WEP crypt wireless. I look up my kernel config and I can't select the IEEE WEP Encryption, it has not check box, and it's only a bar on there. Any one had the same problem as me?

Thx
_________________
El único caso en que P= NP es cuando N = 1.
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 639
Location: Uppsala, Sweden

PostPosted: Mon Mar 26, 2007 5:19 pm    Post subject: Reply with quote

Chewieip wrote:
Hi guys,

I'm having some trouble with that wireless card. I can scan for wireless esid, modprobe the module etc. But I can't connect to a WEP crypt wireless. I look up my kernel config and I can't select the IEEE WEP Encryption, it has not check box, and it's only a bar on there. Any one had the same problem as me?

Thx


if you mean that it says something like
Code:
--- WEP encryption

It means that you can't deselect it. it will always compile in because it is needed as a dependency.
_________________
From Gentoo with love
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 639
Location: Uppsala, Sweden

PostPosted: Tue Mar 27, 2007 1:33 pm    Post subject: Reply with quote

I got the card up and running now :D

It turned out that the latest larry patch did was not updated with the fix for the bcm4311 chip. I redid it and it seems to work great now :)

Thanks for the help all (specially JoseJX) :)

Update:

I can't get it to connect to my wpa encrypted network at home. Anyone that has had any luck with this?

Code:
LappySlappy sedrik # wpa_supplicant -d -Dwext -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf
Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
update_config=1
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
fast_reauth=1
Priority group 0
   id=0 ssid='Sedrik.net'
Priority group -9999999
   id=1 ssid=''
Initializing interface (2) 'eth1'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=21 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:19:7d:0d:02:76
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
Setting scan request: 0 sec 100000 usec
Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=16
Received 1612 bytes of scan results (6 BSSes)
Scan results: 6
Selecting BSS from priority group 0
0: 00:13:46:42:61:88 ssid='Sedrik.net' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Trying to associate with 00:13:46:42:61:88 (SSID='Sedrik.net' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
ioctl[SIOCSIWFREQ]: Invalid argument
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=26
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8c02 len=29
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=16
Received 2230 bytes of scan results (8 BSSes)
Scan results: 8
Selecting BSS from priority group 0
0: 00:13:46:42:61:88 ssid='Sedrik.net' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Already associated with the selected AP.
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 00:13:46:42:61:88
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:13:46:42:61:88
No keys have been configured - skip key clearing
Associated with 00:13:46:42:61:88
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RX EAPOL from 00:13:46:42:61:88
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=32 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
  key_nonce - hexdump(len=32): da 1f 91 a4 97 4e a5 e7 ea 04 26 af db 21 f3 9a 83 df 2d 71 65 fd 3e 1f 4e 16 a1 35 52 fa 4f 56
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:13:46:42:61:88 (ver=1)
WPA: Renewed SNonce - hexdump(len=32): c6 86 9d 50 f9 c7 b7 95 59 c7 9a 65 a0 5c 23 28 88 f5 b6 67 21 4c db c5 f1 a7 9f 1a 3f f9 7d f0
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:13:46:42:61:88
IEEE 802.1X RX: version=1 type=3 length=119
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=24
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02
  key_nonce - hexdump(len=32): da 1f 91 a4 97 4e a5 e7 ea 04 26 af db 21 f3 9a 83 df 2d 71 65 fd 3e 1f 4e 16 a1 35 52 fa 4f 56
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 4f 64 d4 ff f0 3f 2f 72 d5 f2 5a 76 ee 3b e6 d4
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 00:13:46:42:61:88 (ver=1)
WPA: IE KeyData - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
ioctl[SIOCSIWENCODEEXT]: Invalid argument


Sorry for the enourmous debugging info ^^
here is my wpa_supplicant conf.
Code:
# This is a network block that connects to any unsecured access point.
# We give it a low priority so any defined blocks are preferred.
update_config=1
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
        ssid="Sedrik.net"
        psk="<my pass>"
}
network={
        key_mgmt=NONE
        priority=-9999999
}


Any help welcomed.

thanks
_________________
From Gentoo with love
Back to top
View user's profile Send private message
g09o
n00b
n00b


Joined: 30 Mar 2007
Posts: 5

PostPosted: Sun Apr 01, 2007 10:56 am    Post subject: Reply with quote

Hi!
I'm kinda new to Gentoo and so far I like it. :)

I'm just having a bit trouble with setting up wireless, i read all posts here (yes all 42 pages :)) but found no answers.

I have 4318 chipset, am using 2.6.20.4 kernel with Larry's patch applied, did all as it says in the first post.
The card is found, and everything works fine except when i try to connect with wpa_supplicant. Encription is WPA-PSK. SoftMAC association succeds, I see it in dmesg, but then it says that it can not set PTK to the driver.

Thank for all help!

P.S. sorry about bad english
Back to top
View user's profile Send private message
mikb
n00b
n00b


Joined: 14 Dec 2005
Posts: 68
Location: Sydney Australia

PostPosted: Mon Apr 02, 2007 3:59 am    Post subject: Reply with quote

I've got one bizarre problem. And it's probably really simple, but I just can't see it.

I have an AMD64 laptop, with a BCM4306 wireless chip. Kernel is currently 2.6.20-hardened

When my system boots, the boot process automagically invokes /etc/init.d/net.eth1 which should enable the wireless. It always fails (wireless led does not illuminate, association to AP fails, nothing).

But, as soon as I can get a command prompt, if I type (root terminal session or sudo, doesn't matter)

/etc/init.d/net.eth1 start

It comes up straight away.

Can any body point me in the direction of the error?
_________________
With sufficient thrust, pigs fly just fine (RFC 1925, not actually talking about Gentoo)
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 639
Location: Uppsala, Sweden

PostPosted: Mon Apr 02, 2007 10:24 am    Post subject: Reply with quote

mikb wrote:
I've got one bizarre problem. And it's probably really simple, but I just can't see it.

I have an AMD64 laptop, with a BCM4306 wireless chip. Kernel is currently 2.6.20-hardened

When my system boots, the boot process automagically invokes /etc/init.d/net.eth1 which should enable the wireless. It always fails (wireless led does not illuminate, association to AP fails, nothing).

But, as soon as I can get a command prompt, if I type (root terminal session or sudo, doesn't matter)

/etc/init.d/net.eth1 start

It comes up straight away.

Can any body point me in the direction of the error?


Sounds like some dependency of the driver is not loaded during boot when net.eth1 is about to load. I would recommend not to run net.eth1 at start. This will probably be fixed by the devs at some later point (I would belive they got other errors more prioritied with the driver).
_________________
From Gentoo with love
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Apr 02, 2007 1:42 pm    Post subject: Reply with quote

The auto-magic network driver starting is caused by the "Plug services" part of the rc scripts. To disable it (or just prevent something from starting automatically), edit /etc.conf.d/rc and change RC_PLUG_SERVICES="". For instance, if you don't want this automagic behavior for network devices, you could set this to RC_PLUG_SERVICES="!net.*"

As for you not being able to connect, please provide your dmesg (ensure that you have both softmac and bcm43xx debugging enabled first.) It does work okay here on my 4318 using wpa_supplicant on startup.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
g09o
n00b
n00b


Joined: 30 Mar 2007
Posts: 5

PostPosted: Wed Apr 04, 2007 10:43 am    Post subject: Reply with quote

Ok, here is my dmesg. Most of it is probably useles to you but i didn't know what part you need so i paste it all. :)

Code:
bcm43xx: Chip ID 0x4318, rev 0x2
bcm43xx: Number of cores: 4
bcm43xx: Core 0: ID 0x800, rev 0xd, vendor 0x4243
bcm43xx: Core 1: ID 0x812, rev 0x9, vendor 0x4243
bcm43xx: Core 2: ID 0x804, rev 0xc, vendor 0x4243
bcm43xx: Core 3: ID 0x80d, rev 0x7, vendor 0x4243
bcm43xx: PHY connected
bcm43xx: Detected PHY: Analog: 3, Type 2, Revision 7
bcm43xx: Detected Radio: ID: 8205017f (Manuf: 17f Ver: 2050 Rev: 8)
bcm43xx: Radio turned off
bcm43xx: Radio turned off
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): eth0: link is not ready
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
bcm43xx: PHY connected
bcm43xx: Microcode rev 0x123, pl 0x21 (2005-01-22  19:48:06)
bcm43xx: Radio turned on
bcm43xx: Radio enabled by hardware
bcm43xx: ASSERTION FAILED (radio_attenuation < 10) at: drivers/net/wireless/bcm4 3xx/bcm43xx_phy.c:1489:bcm43xx_find_lopair()
bcm43xx: ASSERTION FAILED (radio_attenuation < 10) at: drivers/net/wireless/bcm4 3xx/bcm43xx_phy.c:1489:bcm43xx_find_lopair()
bcm43xx: ASSERTION FAILED (radio_attenuation < 10) at: drivers/net/wireless/bcm4 3xx/bcm43xx_phy.c:1489:bcm43xx_find_lopair()
bcm43xx: Chip initialized
bcm43xx: 32-bit DMA initialized
bcm43xx: Keys cleared
bcm43xx: Selected 802.11 core (phytype 2)
bcm43xx: ASSERTION FAILED (radio_attenuation < 10) at: drivers/net/wireless/bcm4 3xx/bcm43xx_phy.c:1489:bcm43xx_find_lopair()
ADDRCONF(NETDEV_UP): eth1: link is not ready
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
SoftMAC: generic IE set to dd160050f20101000050f20201000050f20401000050f202
SoftMAC: Associate: Scanning for networks first.
SoftMAC: Queueing Authentication Request to 00:01:e3:57:f2:cc
SoftMAC: Cannot associate without being authenticated, requested authentication
SoftMAC: Sent Authentication Request to 00:01:e3:57:f2:cc.
SoftMAC: Open Authentication completed with 00:01:e3:57:f2:cc
SoftMAC: sent association request!
SoftMAC: Scanning finished: scanned 14 channels starting with channel 1
SoftMAC: sent association request!
SoftMAC: associated!
ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
bcm43xx: set security called, .enabled = 1, .encrypt = 1
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: Radio turned off
bcm43xx: DMA-32 0x0200 (RX) max used slots: 1/64
bcm43xx: DMA-32 0x02A0 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0280 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0260 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0240 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0220 (TX) max used slots: 5/512
bcm43xx: DMA-32 0x0200 (TX) max used slots: 0/512


Thanks!
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Apr 04, 2007 1:23 pm    Post subject: Reply with quote

I only see a successful connection there, does the non-working attempt on startup look any different?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
g09o
n00b
n00b


Joined: 30 Mar 2007
Posts: 5

PostPosted: Wed Apr 04, 2007 1:57 pm    Post subject: Reply with quote

Well that's the startup kinda...
I have that set up like this:
I boot xfce, run ifconfig eth1 up, and then wpa_supplicant. Every time dmesg is the same.

Wpa_supplicant says that it cannot set PTK to the driver, whatever that means. :)
Back to top
View user's profile Send private message
phor
n00b
n00b


Joined: 28 Aug 2004
Posts: 3

PostPosted: Wed Apr 04, 2007 7:51 pm    Post subject: Reply with quote

g09o wrote:
Well that's the startup kinda...
I have that set up like this:
I boot xfce, run ifconfig eth1 up, and then wpa_supplicant. Every time dmesg is the same.

Wpa_supplicant says that it cannot set PTK to the driver, whatever that means. :)

Have you loaded the ieee80211_crypt_tkip module?
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Apr 04, 2007 7:54 pm    Post subject: Reply with quote

Actually, what's probably happening is that the ieee80211 and softmac modules are loaded to satisfy bcm43xx's dependencies. Then, you try to use WPA/WEP, etc. and it needs to load the crypt modules. Since they aren't loaded immediately, the attempt fails, but by the time it's started, everything works. I would probably either compile the crypto stuff into my kernel, or force the correct module loading order (crypto before bcm43xx) to ensure that it starts properly on boot.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
g09o
n00b
n00b


Joined: 30 Mar 2007
Posts: 5

PostPosted: Wed Apr 04, 2007 9:01 pm    Post subject: Reply with quote

JoseJX wrote:
Actually, what's probably happening is that the ieee80211 and softmac modules are loaded to satisfy bcm43xx's dependencies. Then, you try to use WPA/WEP, etc. and it needs to load the crypt modules. Since they aren't loaded immediately, the attempt fails, but by the time it's started, everything works. I would probably either compile the crypto stuff into my kernel, or force the correct module loading order (crypto before bcm43xx) to ensure that it starts properly on boot.


OK, I'll compile them into kernel.
I'll get back to you then.

@phor: Yes I did. But just to be sure I'll get it in kernel too.

Thx guys!
Back to top
View user's profile Send private message
g09o
n00b
n00b


Joined: 30 Mar 2007
Posts: 5

PostPosted: Sun Apr 08, 2007 5:01 pm    Post subject: Reply with quote

Hello!
Good news, it's working! :D

I compiled TKIP into the kernel and voila! :) One more thing. I had to remove everything except network {} part from conf file for wpa_supplicant. So I have just network part. It won't work if I have anything else. The connection is very unstable, breaks here and then, and won't connect every time, but it's working. :)

So, once again thanks everybody, especially JoseJX!
Thaaaaanks! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 1 of 10

 
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