BUG: iBook G4 (ppc) - rt73 on ppc - debugging

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

abrilc

25-08-2007 20:40:38

Hi rt73 developers!

Here's my situation

- iBook G4 1.2
- Ubuntu Feisty Fawn 7.04 PowerPC
- aircrack-ng-0.9.1 (compiled and installed by me from the source)
- rt73-cvs-2007082318 driver
- Edimax EW 7318USG

I could compiled the rt73 drivers in the powerpc machine, but while compiling i've got Warnings! messages with the BigEndian issue
#warning "Big endian support is still experimental, use at your own risk."

By the way, the module seems to load correctly but it doesn't get any wireless signal with iwlist scanning, airodump-ng.... etc.

I deciced to explain the installation and report the debug logging.


Steps I followed

- Disable NetworkManager from System -> Preferences -> Sessions
( because it wants to get the control of the Network )
( If this doesn't works, kill the processes manually )


- Compiled and installed aircrack
abrilc@feel~/Desktop/aircrack-ng-0.9.1$ make
abrilc@feel~/Desktop/aircrack-ng-0.9.1$ make install

- Compiled and installed rt73 drivers with debug logging
# Compile
root@feel~/rt73-cvs-2007082318/Module# make clean
root@feel~/rt73-cvs-2007082318/Module# make debug

Attached the compile output (with warnings)


# Ensure there are no copies of the module left in memory
root@feel~# ifconfig wlan0 down
root@feel~# rmmod rt73

# Loading the module with full debug enabled
root@feel~/rt73-cvs-2007082318/Module# insmod ./rt73.ko debug=31

- Down and re-up the interface, because it don't recognize the MAC
root@feel~# ifconfig wlan0

wlan0 Link encapEthernet HWaddr 000000000000
BROADCAST MULTICAST MTU1500 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes0 (0.0 b) TX bytes0 (0.0 b)

root@feel~# ifconfig wlan0 down
root@feel~# ifconfig wlan0 up

root@feel~# ifconfig wlan0

wlan0 Link encapEthernet HWaddr 000E2ECD7BB0
inet6 addr fe8020e2efffecd7bb0/64 ScopeLink
UP BROADCAST RUNNING MULTICAST MTU1500 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes0 (0.0 b) TX bytes408 (408.0 b)

Until here.. all seems correct. Now the problems

- Not recognizing APs

root@feel~# iwlist wlan0 scan
wlan0 No scan results

Scanning with the Airport Extreme (bcm43xx) for be sure there are APs

root@feel~# iwlist eth1 scan
eth1 Scan completed
Cell 01 - Address 00164671C4B0
ESSID"<hidden>"
ProtocolIEEE 802.11bg
ModeMaster
Channel6
Encryption keyon
Bit Rates1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=81/100 Signal level=-72 dBm Noise level=-71 dBm
IE WPA Version 1
Group Cipher TKIP
Pairwise Ciphers (1) TKIP
Authentication Suites (1) 802.1X
Extra Last beacon 256ms ago

I attach the /var/log/syslog file for complete the info. If you wanna more info, please, leave here/me a response. Thanks.



Vern

26-08-2007 17:35:16

Hi abrilc,

Thanks for posting the debug info. Took a quick look at your log. What we really need is the debug log - /var/log/debug, or - failing that - the kernel log - /var/log/kern.log. Unless there's an actual oops, /var/log/debug is preferable.

See the TESTING file for what's needed in /etc/syslog.conf for what's needed to achieve this.

From other threads, I've come to the conclusion that there really are endian problems with this and other legacy drivers; so if you're game to start down the road of fixing them, great!

So, could we start with /var/log/debug? We'll proceed from there.

Thanks,

abrilc

30-08-2007 16:53:18

Here it is. Thanks for the info.

Vern

06-09-2007 17:29:52

Hi abrilc,

From your log, it looks like you're setting monitor mode. Could you generate a debug log just trying to set up a plain connection to an AP?

Thanks,

knaar

21-10-2007 21:52:33

Howdy, I am having this exact same problem. Here's my gear

PowerBook G4 1.667 GHz 2 Gigs RAM (PowerPC)
Ubuntu Feisty 7.04 PPC Edition
Quicky Jr RT73 USB device (verified working great with kismac in os x)
Driver rt73-cvs-2007102113

Goal I need to be able to audit my wireless network, both at home and work. This is *white-hat* learning only, not to do anything illegal.

I bought this usb wireless device because it has an rt73 chip and an external antenna. It also has os x drivers. I thought at the time that kismac could do injection with this device, however it turns out that I had not read enough, and kismac doesn't have injection support yet. However, linux does, if I can get this driver to work.

$ sudo ifconfig wlan0 up
$ sudo iwconfig wlan0
wlan0 RT73 WLAN ESSID""
ModeManaged Frequency=2.412 GHz Bit Rate54 Mb/s
RTS throff Fragment throff
Encryption keyoff
Link Quality=0/100 Signal level-121 dBm Noise level-111 dBm
Rx invalid nwid0 Rx invalid crypt0 Rx invalid frag0
Tx excessive retries0 Invalid misc0 Missed beacon0

$ sudo ifconfig wlan0
wlan0 Link encapUNSPEC HWaddr 00-XX-XX-XX-XX-XX-7F-82-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU1500 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes0 (0.0 b) TX bytes576 (576.0 b)

Note the strange MAC address with all the extra zeros. This differs from the previous bug report, and I'm not sure how it's happening. I XXed out some numbers of my mac address to prevent misuse.

I'm going to reboot and get fresh (short) debugging logs for you guys.

knaar

21-10-2007 22:18:52

upon reboot the mac address is correct. The main difference this time is that the drivers were loaded on boot but the device was not plugged in. I rmmod rt73, then modprobe rt73 debug=31, and THEN I plugged in the device. This seems to give me a better mac address somehow.

root@arthor~# ifconfig wlan0 down
root@arthor~# ifconfig wlan0 up
root@arthor~# ifconfig wlan0
wlan0 Link encapEthernet HWaddr 00XXXXXXXXCE
inet6 addr fe8020e2efffece8fce/64 ScopeLink
UP BROADCAST RUNNING MULTICAST MTU1500 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes0 (0.0 b) TX bytes408 (408.0 b)

root@arthor~# iwconfig wlan0
wlan0 RT73 WLAN ESSID""
ModeManaged Frequency=2.412 GHz Bit Rate54 Mb/s
RTS throff Fragment throff
Encryption keyoff
Link Quality=0/100 Signal level-121 dBm Noise level-115 dBm
Rx invalid nwid0 Rx invalid crypt0 Rx invalid frag0
Tx excessive retries0 Invalid misc0 Missed beacon0

root@arthor~# iwlist wlan0 scan
wlan0 Failed to read scan data Resource temporarily unavailable

root@arthor~# iwlist wlan0 scan
wlan0 No scan results


I then proceeded to tinker around with bringing the interface up and trying to associate with my ap, all to no avail. All that tinkering will be in the debug log attached. Hopefully it's helpful.

panchofmx

06-01-2008 10:53:35

Hi rt73 developers!

Here's my situation

- iBook G4 1.2
- Ubuntu Feisty Fawn 7.04 PowerPC
- aircrack-ng-0.9.1 (compiled and installed by me from the source)
- rt73-cvs-2007082318 driver
- Edimax EW 7318USG

I could compiled the rt73 drivers in the powerpc machine, but while compiling i've got Warnings! messages with the BigEndian issue
#warning "Big endian support is still experimental, use at your own risk."

By the way, the module seems to load correctly but it doesn't get any wireless signal with iwlist scanning, airodump-ng.... etc.

I deciced to explain the installation and report the debug logging.


Steps I followed

- Disable NetworkManager from System -> Preferences -> Sessions
( because it wants to get the control of the Network )
( If this doesn't works, kill the processes manually )


- Compiled and installed aircrack
abrilc@feel~/Desktop/aircrack-ng-0.9.1$ make
abrilc@feel~/Desktop/aircrack-ng-0.9.1$ make install

- Compiled and installed rt73 drivers with debug logging
# Compile
root@feel~/rt73-cvs-2007082318/Module# make clean
root@feel~/rt73-cvs-2007082318/Module# make debug

Attached the compile output (with warnings)


# Ensure there are no copies of the module left in memory
root@feel~# ifconfig wlan0 down
root@feel~# rmmod rt73

# Loading the module with full debug enabled
root@feel~/rt73-cvs-2007082318/Module# insmod ./rt73.ko debug=31

- Down and re-up the interface, because it don't recognize the MAC
root@feel~# ifconfig wlan0

wlan0 Link encapEthernet HWaddr 000000000000
BROADCAST MULTICAST MTU1500 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes0 (0.0 b) TX bytes0 (0.0 b)

root@feel~# ifconfig wlan0 down
root@feel~# ifconfig wlan0 up

root@feel~# ifconfig wlan0

wlan0 Link encapEthernet HWaddr 000E2ECD7BB0
inet6 addr fe8020e2efffecd7bb0/64 ScopeLink
UP BROADCAST RUNNING MULTICAST MTU1500 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes0 (0.0 b) TX bytes408 (408.0 b)

Until here.. all seems correct. Now the problems

- Not recognizing APs

root@feel~# iwlist wlan0 scan
wlan0 No scan results

Scanning with the Airport Extreme (bcm43xx) for be sure there are APs

root@feel~# iwlist eth1 scan
eth1 Scan completed
Cell 01 - Address 00164671C4B0
ESSID"<hidden>"
ProtocolIEEE 802.11bg
ModeMaster
Channel6
Encryption keyon
Bit Rates1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=81/100 Signal level=-72 dBm Noise level=-71 dBm
IE WPA Version 1
Group Cipher TKIP
Pairwise Ciphers (1) TKIP
Authentication Suites (1) 802.1X
Extra Last beacon 256ms ago

I attach the /var/log/syslog file for complete the info. If you wanna more info, please, leave here/me a response. Thanks.



[/quote1ybd0ib7]

Hi abrilc i hava the same problem on my ibook 3g xubuntu 7.10
make debug
#warning "Big endian support is still experimental, use at your own risk."
etc...

iwlist wlan0 scan
wlan0 No scan results

dose not recognizing APs at all.
...

I NEED HELP

Spy84464

06-01-2008 18:51:22

Hello,
As the warning says, big endian support is experimental. Have a look at this thread [url197gm1zo]http://rt2x00.serialmonkey.com/phpBB2/viewtopic.php?t=4194&postdays=0&postorder=asc&start=45[/url197gm1zo].

Regards,
Romain