can't connect to access point with mpc5121eads board

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4984

pbr

08-09-2008 21:16:55

I have a mpc5121eads demo board which has a freescale mpc5121 powerpc processor.

with a ralink mini pci card.
[code3nmt8bqv]lspci
00:00.0 Bridge: Freescale Semiconductor Inc Unknown device 580b
00:16.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)[/code3nmt8bqv]

I was trying to use the rt2x00 driver in the kernel, but was having trouble connecting to the access point.


modules
[code3nmt8bqv]# lsmod
Module Size Used by
rt2500pci 19040 0
rt2x00pci 5504 1 rt2500pci
rt2x00lib 15744 2 rt2500pci,rt2x00pci
mac80211 119652 3 rt2500pci,rt2x00pci,rt2x00lib
eeprom_93cx6 1408 1 rt2500pci[/code3nmt8bqv]

The access point has the encryption off for now.

[code3nmt8bqv]# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

Warning: Driver for device wlan0 has been compiled with version 22
of Wireless Extension, while this program supports up to version 20.
Some things may be broken...

wlan0 IEEE 802.11g ESSID:"pbrwireless"
Mode:Managed Frequency:2.422 GHz Access Point: Not-Associated
Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Encryption key: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
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1E:59:3E:45:E5
inet addr:10.168.44.192 Bcast:10.168.44.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10259 errors:0 dropped:0 overruns:0 frame:0
TX packets:2663 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7957874 (7.5 MiB) TX bytes:421301 (411.4 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:19:5B:D3:C2:D2
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)

wmaster0 Link encap:UNSPEC HWaddr 00-19-5B-D3-C2-D2-BF-EA-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING 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)


[/code3nmt8bqv]


When I try 'udhcpc' or 'dhclient'. It isn't able to connect.


[code3nmt8bqv]# dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.3b1
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:19:5b:d3:c2:d2
Sending on LPF/wlan0/00:19:5b:d3:c2:d2
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

# udhcpc -i wlan0
udhcpc (v1.4.2) started
adapter index 4
adapter hardware address 00:19:5b:d3:c2:d2
vfork'ing and execle'ing /usr/share/udhcpc/default.script
entering raw listen mode
Opening raw socket on ifindex 4
adding option 0x35
adding option 0x3d
adding option 0x3c
Sending discover...
Waiting on select...
adding option 0x35
adding option 0x3d
adding option 0x3c
Sending discover...
Waiting on select...
adding option 0x35
adding option 0x3d
adding option 0x3c
Sending discover...
Waiting on select...
vfork'ing and execle'ing /usr/share/udhcpc/default.script
Waiting on select...
Waiting on select...

[/code3nmt8bqv]


I used iwconfig to set the essid and channel.

I'm not sure what the problem could be.
Eventually I would like to use wpa or wpa2, but I can't even get it to connect to an ap with no encryption.

Spy84464

09-09-2008 18:38:38

Hello,
According to the outputs you posted, the card hasn't associated with the ap. What are the commands you used to configure the essid,channel etc...?
And most importantly, which kernel and driver version are you using?

Regards,
Romain

pbr

09-09-2008 18:53:38

I used

iwconfig wlan0 essid "pbrwireless"
iwconfig wlan0 channel 3
I didn't change the mode.


kernel version
2.6.24.6

driver is in that version of the kernel. According to rt2x00.h.
DRV_VERSION "2.0.10"

IvD

09-09-2008 19:50:03

As discussed in numerous topics You must scan, and set the ap manually

pbr

09-09-2008 20:48:23

I'm not sure exactly what you mean. The only results for scan I found were "iwlist scan"

The results were

[code36e6z22l]# iwlist wlan0 scan
Warning: Driver for device wlan0 has been compiled with version 22
of Wireless Extension, while this program supports up to version 20.
Some things may be broken...

wlan0 No scan results
#
[/code36e6z22l]

This doesn't seem very helpful.

If there is something else that you are referring to, could you give me a link.

pbr

11-09-2008 13:42:39

I noticed one message that said that the rt2500pci doesn't work in the 2.6.26 kernel. Is this still true, and does it apply to the 2.6.24.6 kernel also?

pbr

18-09-2008 18:23:38

I also tried

[code38ya3qtn]# iwconfig wlan0 essid pbrwireless
[ 46.323453] phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 0 - CWmin: .
[ 46.332617] phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 1 - CWmin: .
[ 46.341708] phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 7 - CWmin: .
# iwconfig wlan0 ap 00:1d:7e:6d:5e:5d
# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"pbrwireless"
Mode:Managed Channel:0 Access Point: 00:1D:7E:6D:5E:5D
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Encryption key: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

# dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.3b1
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:19:5b:d3:c2:d2
Sending on LPF/wlan0/00:19:5b:d3:c2:d2
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
#
[/code38ya3qtn]

still no luck in connecting to the access point

pbr

18-09-2008 18:28:33

dmesg

[codef7t1n25w]<7>[ 20.807673] phy0 -> rt2500pci_validate_eeprom: EEPROM recovery - NIC: 0xfff0
<6>[ 20.807700] phy0 -> rt2x00_set_chip: Info - Chipset detected - rt: 0201, rf: 0003, rev: 00000004.
<7>[ 20.819436] phy0: Selected rate control algorithm 'simple'
<6>[ 46.323453] phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 0 - CWmin: 4, CWmax: 10, Aifs: 2.
<6>[ 46.332617] phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 1 - CWmin: 4, CWmax: 10, Aifs: 2.
<6>[ 46.341708] phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 7 - CWmin: 5, CWmax: 10, Aifs: 2.
<7>[ 92.744971] phy0 -> rt2500pci_init_bbp: Debug - Start initialization from EEPROM...
<7>[ 92.744999] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x0f, value: 0x30.
<7>[ 92.745014] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x11, value: 0x26.
<7>[ 92.745030] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x15, value: 0x0d.
<7>[ 92.745045] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x16, value: 0x0d.
<7>[ 92.745060] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x35, value: 0x10.
<7>[ 92.745076] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x36, value: 0x10.
<7>[ 92.745091] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x3d, value: 0x6a.
<7>[ 92.745106] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x3e, value: 0x10.
<7>[ 92.745122] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x23, value: 0x50.
<7>[ 92.745137] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x29, value: 0x60.
<7>[ 92.745152] phy0 -> rt2500pci_init_bbp: Debug - BBP: 0x36, value: 0x18.
<7>[ 92.745167] phy0 -> rt2500pci_init_bbp: Debug - ...End initialization from EEPROM.
<7>[ 92.745192] HW CONFIG: channel=1 freq=2412 phymode=2
[/codef7t1n25w]