Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Airport not connecting
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Feb 27, 2006 1:10 am    Post subject: Airport not connecting Reply with quote

I have been fiddling with my wireless for two days now and can't connect to essid here is what I get
Code:
 /etc/init.d/net.eth1 start
 * Starting eth1
 *   Configuring wireless network for eth1
 *   Trying to force preferred in case they are hidden
Error for wireless request "Set Encode" (8B2A) :
    invalid argument "enc".
 *   eth1 does not support setting keys
 *   or the parameter "mac_key_renas" or "key_renas" is incorrect
 *   Failed to associate with any preferred access points on eth1
 *   Failed to configure wireless for eth1

here is my config file
Code:
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"

modules=( "iwconfig" )
essid_eth1="any"
key_renas="s:************************** enc open"
preferred_aps=( "renas" )

_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Feb 27, 2006 12:53 pm    Post subject: Reply with quote

I feel so lonely :roll:
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
KeyserZero
n00b
n00b


Joined: 21 Mar 2005
Posts: 68

PostPosted: Mon Feb 27, 2006 1:58 pm    Post subject: Reply with quote

Hey!

Same problem here!

I can not use dhcp with the bcm43xx driver.

I think thats a driver problem, but i'm not sure.

Greetz
_________________
www.ruby-lang.org
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Feb 27, 2006 3:12 pm    Post subject: Reply with quote

rojanu:
Are you sure that eth1 is your wireless card? Please try setting it up manually first, just so you can ensure that the driver and card are working properly first. What kind of wireless card do you have?

KeyserZero:
That's really not the same problem as rojanu, he isn't even associating. Make sure that the AP's MAC address is set or try forcing it with iwconfig even if it's already there. This is the usual cause of DHCP not working with bcm43xx.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Kvetch
Guru
Guru


Joined: 29 Apr 2004
Posts: 318
Location: /dev/null, VA

PostPosted: Mon Feb 27, 2006 7:12 pm    Post subject: Reply with quote

JoseJX - I am having an issue with getting my AP to give me a dhcp address also. https://forums.gentoo.org/viewtopic-t-437721.html How do you set the AP's MAC with iwconfig?

On a side note Thanks for all your help in the forums regarding how to configure the airport2 card in Linux, it has been a lifesaver.


Nick
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Feb 27, 2006 7:55 pm    Post subject: Reply with quote

Try this, but replace the values with your own: iwconfig ethX ap 01:23:45:67:89:01
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Kvetch
Guru
Guru


Joined: 29 Apr 2004
Posts: 318
Location: /dev/null, VA

PostPosted: Mon Feb 27, 2006 8:15 pm    Post subject: Reply with quote

Awesome, thanks that got me connected here at work. I am sure that is my problem at home too.
Any ideas why I would need to set the AP's MAC when using wpa but I didn't have to do using iwconfig to connect to an Open wireless point?

Either way thanks so much
Nick
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Feb 27, 2006 8:20 pm    Post subject: Reply with quote

It's probably not getting set somewhere in the stack, but I can't really tell you where (or it would be fixed) :) If you find it, please let us know.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Feb 27, 2006 10:20 pm    Post subject: Reply with quote

JoseJX wrote:
rojanu:
Are you sure that eth1 is your wireless card? Please try setting it up manually first, just so you can ensure that the driver and card are working properly first. What kind of wireless card do you have?

iwconfig gives me eth1, then it should be eth1 or am I wrong

I really don't know how to set it up manually, can you direct me to a how to or something similar
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 28, 2006 12:07 am    Post subject: Reply with quote

What kind of wireless card do you have?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Tue Feb 28, 2006 12:11 am    Post subject: Reply with quote

As far As I know it is an airport
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 28, 2006 12:19 am    Post subject: Reply with quote

Airport 1 or Airport 2 (extreme)?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Tue Feb 28, 2006 12:34 am    Post subject: Reply with quote

Airport 1. the laptop I have is a G3 newWorld.
I first used kernels hermes drivers and then orinoco
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 28, 2006 1:02 am    Post subject: Reply with quote

Try providing your key with the hex digits. As far as I know, only 64bit WEP works with the Airport1 cards.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Kvetch
Guru
Guru


Joined: 29 Apr 2004
Posts: 318
Location: /dev/null, VA

PostPosted: Tue Feb 28, 2006 3:32 am    Post subject: Reply with quote

JoseJX - I was able to connect at work using wpa on a work router but I cannot connect to my WRT54G router at home and I cannot set the AP's MAC address.
iwconfig shows Access Point: Invalid

my messages log shows
Code:

eb 27 22:22:58 localhost bcm43xx: PHY connected
Feb 27 22:22:59 localhost bcm43xx: Radio turned on
Feb 27 22:22:59 localhost bcm43xx: Chip initialized
Feb 27 22:22:59 localhost bcm43xx: DMA initialized
Feb 27 22:22:59 localhost bcm43xx: 80211 cores initialized
Feb 27 22:22:59 localhost bcm43xx: Keys cleared
Feb 27 22:23:05 localhost SoftMAC: Open Authentication completed with 00:12:17:bc:11:48
Feb 27 22:23:08 localhost SoftMAC: Open Authentication completed with 00:12:17:bc:11:48
Feb 27 22:23:44 localhost SoftMAC: Open Authentication completed with 00:12:17:bc:11:48
Feb 27 22:25:32 localhost SoftMAC: Open Authentication completed with 00:12:17:bc:11:48
Feb 27 22:25:53 localhost SoftMAC: Open Authentication completed with 00:12:17:bc:11:48
Feb 27 22:27:10 localhost bcm43xx: Radio turned off
Feb 27 22:27:10 localhost bcm43xx: DMA 0x0200 (RX) max used slots: 1/64
Feb 27 22:27:10 localhost bcm43xx: DMA 0x0260 (TX) max used slots: 0/512
Feb 27 22:27:10 localhost bcm43xx: DMA 0x0240 (TX) max used slots: 0/512
Feb 27 22:27:10 localhost bcm43xx: DMA 0x0220 (TX) max used slots: 2/512
Feb 27 22:27:10 localhost bcm43xx: DMA 0x0200 (TX) max used slots: 0/512
Feb 27 22:27:10 localhost dhcpcd[7268]: timed out waiting for a valid DHCP server response


Sorry but would you know anything else I can try?
Thanks,
Nick
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Tue Feb 28, 2006 10:27 am    Post subject: Reply with quote

JoseJX wrote:
Try providing your key with the hex digits. As far as I know, only 64bit WEP works with the Airport1 cards.

OK. now what I get is
Code:
i # /etc/init.d/net.eth1 restart
 * Caching service dependencies ...                                                                                                                            [ ok ]
 * Stopping eth1
 *   Bringing down eth1
 *     Shutting down eth1 ...                                                                                                                                  [ ok ]
 * Starting eth1
 *   Configuring wireless network for eth1
 *   Trying to force preferred in case they are hidden
 *     eth1 connected to "renas" at 00:0C:41:9B:32:3E
 *     in managed mode on channel 11 (WEP enabled - open)
 *   Configuration not set for eth1 - assuming DHCP
 *   Bringing up eth1
 *     dhcp
 *       Running dhcpcd ...                                                                                                                                    [ !! ]
so it fails to get an IP address I have tried setting the IP manuall to no avail
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
KeyserZero
n00b
n00b


Joined: 21 Mar 2005
Posts: 68

PostPosted: Tue Feb 28, 2006 4:17 pm    Post subject: Reply with quote

Hey!

JoseJX:

I don't know if i make a mistake, but dhcp does not work for me.

When i boot my Powerbook G4 15" with Airport2 i run this commands:

1. ifconfig eth1 up
Code:
dmesg:
bcm43xx: PHY connected
bcm43xx: Radio turned on
bcm43xx: Chip initialized
bcm43xx: DMA initialized
bcm43xx: 80211 cores initialized
bcm43xx: Keys cleared


2. iwconfig eth1 channel X
3. iwconfig eth1 rate 11Mb
4. iwconfig eth1 key "s:XXXXXX"
5. iwconfig eth1 essid XXXXXX
6. iwconfig eth1 ap XX:XX:XX:XX

Code:
dmesg:
ieee80211_crypt: registered algorithm 'WEP'
bcm43xx: set security called
bcm43xx:    .active_key = 0
bcm43xx:    .level = 1
bcm43xx:    .enabled = 1
bcm43xx:    .encrypt = 1
SoftMAC: Open Authentication completed with XX:XX:XX:XX:XX:XX


7. dhcpcd eth1
Code:

dmesg:
bcm43xx: Radio turned off
bcm43xx: DMA 0x0200 (RX) max used slots: 1/64
bcm43xx: DMA 0x0260 (TX) max used slots: 0/512
bcm43xx: DMA 0x0240 (TX) max used slots: 0/512
bcm43xx: DMA 0x0220 (TX) max used slots: 1/512
bcm43xx: DMA 0x0200 (TX) max used slots: 0/512


Some information:

bcm43xx version: bcm43xx-060226 (all-in-one patch)

lsmod:
Code:
Module                  Size  Used by
ieee80211_crypt_wep     5216  1
snd_pcm_oss            59840  0
snd_mixer_oss          19360  1 snd_pcm_oss
snd_seq_dummy           2916  0
snd_seq_oss            38292  0
snd_seq_midi_event      6688  1 snd_seq_oss
snd_seq                58792  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          8300  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_powermac           48924  1
snd_pcm                93060  2 snd_pcm_oss,snd_powermac
snd_timer              23716  2 snd_seq,snd_pcm
snd                    60020  10 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_powermac,snd_pcm,snd_timer
soundcore               8580  1 snd
snd_page_alloc          9256  1 snd_pcm
ohci1394               35824  0
ieee1394              419280  1 ohci1394
ehci_hcd               34024  0
yenta_socket           26892  0
rsrc_nonstatic         11392  1 yenta_socket
pcmcia_core            41432  2 yenta_socket,rsrc_nonstatic
bcm43xx               424948  0
ieee80211softmac       27264  1 bcm43xx
ieee80211              33320  2 bcm43xx,ieee80211softmac
ieee80211_crypt         5408  2 ieee80211_crypt_wep,ieee80211


iwconfig eth1:
Code:
IEEE 802.11b/g  ESSID:"XXXXX"  Nickname:"Broadcom 4306"
Mode:Managed  Frequency=2.427 GHz  Access Point: XX:XX:XX:XX:XX:XX
Bit Rate:11 Mb/s   Tx-Power=15 dBm
RTS thr:off   Fragment thr:off
Encryption key:XX-XX-XX-XX   Security mode:open


Any solutions?

Thanks

Greetz
_________________
www.ruby-lang.org
Back to top
View user's profile Send private message
Kvetch
Guru
Guru


Joined: 29 Apr 2004
Posts: 318
Location: /dev/null, VA

PostPosted: Tue Feb 28, 2006 7:22 pm    Post subject: Reply with quote

I get the exact same thing on my Linksys WRT54G 2.2 router using the latest firmware (4.3 something). I cannot get it talking. My Airport2 card sees it but cannot connect. I have tried setting the IP, SSID, MAC, route and such manually but I still can't talk to anything.

We have multiple AP's around my building at work and I was able to get my Airport2 card talking to them by setting the AP's MAC but this did not work at home and since I can't get my ibook to even manually set the ip and talk to the router something else has to be gumming up the works.

I am beginning to think that it something in the way the Linksys router communicates to it's clients. Anyone have any ideas how I could determine what my Airport is doing communication wise. I am guessing I can't really setup a sniffer to capture packets cause technically it hasn't associated itself on a network.
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Tue Feb 28, 2006 11:07 pm    Post subject: Reply with quote

Try bcm43xx-dscape if you have problem with softmac.
Back to top
View user's profile Send private message
KeyserZero
n00b
n00b


Joined: 21 Mar 2005
Posts: 68

PostPosted: Tue Feb 28, 2006 11:55 pm    Post subject: Reply with quote

Hey!

I have tried the devicecap version, but i don't know how to setup the wireless card for devicecap!

Can you tell me the necessary steps?

Thanks

Greetz
_________________
www.ruby-lang.org
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 01, 2006 2:52 am    Post subject: Reply with quote

The instructions for devicescape are in the sticky post at the top of this forum.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Wed Mar 01, 2006 7:07 am    Post subject: Reply with quote

JoseJX wrote:
The instructions for devicescape are in the sticky post at the top of this forum.
This very good note is for bcm43xx-dscape version 2006-01-25.
There are modifications in the latest version.

If you want try latest version, see also here
Note :
1) The only disavantage of dscape version is patching kernel.
2) Now it doesn't need to patch wpa_supplicant, it uses the standard wext driver (option -Dwext) of wpa_supplicant.
3) The sta_up script has changed now, see here
4) I use dhcp and run commands from this script directly :
- patch, compile and install the kernel. (I made a patch for 2.6.16-rc5, it works for me ).
- configure /etc/wpa_supplicant.conf
- modprobe bcm43xx-d80211
- Run
Code:
echo -n "sta0" > /sys/class/ieee80211/phy0/add_iface
ifconfig wlan0.11 up
ifconfig sta0 hw ether xx:xx:xx:xx:xx:xx
wpa_supplicant -Bw -Dwext -ista0 -c/etc/wpa_supplicant.conf
before bringing inteface sta0 up.

edit by nixnut: wrapped url's in tags to prevent mile wide html page
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Sat Mar 04, 2006 12:48 am    Post subject: Reply with quote

Has any one got an idea what I might have missed or did wrong. Laptop can senn the AP but cannot get an IP address, probably something got to do with WEP key because,
if I take out the WEP key I can connect but then the connection drops again. ( That might have something to do with the power saving settings but haven't had the time to look at them yet, trying solve other things first)
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
Kvetch
Guru
Guru


Joined: 29 Apr 2004
Posts: 318
Location: /dev/null, VA

PostPosted: Mon Mar 06, 2006 9:49 pm    Post subject: Reply with quote

Thanks bz31 and JoseJX. I finally got some free time and got my vanilla kernel up and running with the all-in-one driver. If I am reading this correctly I do not need the fwcutter or anything else because this has ieee and broadcom 43xx driver.
I am a little confused with your script and don't see the script the git wireless blob page mentions.
After I configure my wpa_supplicant.
I run the following
Code:
echo -n "sta0" > /sys/class/ieee80211/phy0/add_iface
ifconfig wlan0.11 up
ifconfig sta0 hw ether xx:xx:xx:xx:xx:xx
wpa_supplicant -Bw -Dwext -ista0 -c/etc/wpa_supplicant.conf


What is sta0? An alias to wlan0.11? Why do I need to set the MAC? Should my conf.d/net read
Code:
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"
config_sta0=( "dhcp" )
dhcp_sta0="nodns nontp nonis"
modules=( "wpa_supplicant" )
[b]wpa_supplicant_sta0="-Dwext"[/b]
wpa_timeout_sta0=60

was I suppose to not specify the driver in the conf.d/net? Is it suppose to be Dwext or Dbcm43xx?

After I have my net and wpa_supplicant correct should I be able to get a dhcp address if I do dhcpd sta0?

Thanks and sorry for all the questions,
Nick
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Mon Mar 06, 2006 10:40 pm    Post subject: Reply with quote

- You need fwcutter to extract firmware. But you don't need softmac if you use dscape. So if someone has problem with softmac, maybe dscape version of driver bcm43xx is a solution.
- The commands I use before bringing sta0 up are taken from the script bcm43xx-d80211-sta_up.sh which is in the directory scripts. Maybe this script from patch "all-in-one for rc4" is not the last version.
- I don't know why there are wlan0, wlan0ap, wlan0.11 and sta0.
- use option -Dwext for wpa_supplicant.
- dhcp works for me.
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  Next
Page 1 of 2

 
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