Discussion:
CALL for TEST [HOSTAP] run(4) ralink usb wireless
(too old to reply)
PseudoCylon
2010-03-04 08:50:29 UTC
Permalink
Hello,

Finally, I have fixed mysterious device lock out and run(4) works fine in HOSTAP mode. Up time is 80 hours and counting. I even filed tax though it.

The device supports up to 253 stations. I only tested with 2 station. If you have resources, please hit it with bunch of STAs.

As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.

or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146e&t=7562

Best,
AK

----
"FreeBSD and all other open source projects are the Tower of Babel in computer era." --me
So, join me @ git://dev.nasreddine.com/run.git
(or http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
Just work on any of *_dev branches.



__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/
Rui Paulo
2010-03-05 00:02:50 UTC
Permalink
Hi,
Post by PseudoCylon
Hello,
Finally, I have fixed mysterious device lock out and run(4) works fine in HOSTAP mode. Up time is 80 hours and counting. I even filed tax though it.
The device supports up to 253 stations. I only tested with 2 station. If you have resources, please hit it with bunch of STAs.
It's unlikely that the hardware will handle more than 50 stations.
Post by PseudoCylon
As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.
or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146e&t=7562
Best,
AK
This code is fine from a quick review. It just needs a few style fixes.
We could probably start thinking about committing it.

--
Rui Paulo
PseudoCylon
2010-03-05 04:25:23 UTC
Permalink
----- Original Message ----
Sent: Thu, March 4, 2010 5:02:50 PM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
Hi,
This code is fine from a quick review. It just needs a few style fixes.
We could probably start thinking about committing it.
--
Rui Paulo
Thank you for checking my code out. Please check other patches/fixes at P4DB as well
http://p4db.freebsd.org/chv.cgi?CH=174936

Let me know if any changes are needed. Specially, lock related process in
run_wme_update()
run_key_delete()
run_update_beacon()
run_updateslot()
I had hard time on those places. And using ieee80211_key{.wk_pad} It's sorta cheating.

Regards,
AK


__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/
Bruce Simpson
2010-03-05 09:27:16 UTC
Permalink
Post by Rui Paulo
This code is fine from a quick review. It just needs a few style fixes.
We could probably start thinking about committing it.
I think thompsa@ already merged the non-host-ap version of run(4) to HEAD.

I haven't had free time to look at this yet, but I'm impressed that this
is getting looked at, as these radios are popping up on the market more
and more.

cheers,
BMS
Rui Paulo
2010-03-05 16:25:09 UTC
Permalink
Post by Rui Paulo
This code is fine from a quick review. It just needs a few style fixes.
We could probably start thinking about committing it.
Oh, I guess I haven't been paying attention then.

--
Rui Paulo
Weongyo Jeong
2010-03-13 00:18:42 UTC
Permalink
Post by PseudoCylon
Hello,
Finally, I have fixed mysterious device lock out and run(4) works fine
in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
though it.
The device supports up to 253 stations. I only tested with 2 station.
If you have resources, please hit it with bunch of STAs.
As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.
or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146e&t=7562
Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov? And why there are two drivers?

regards,
Weongyo Jeong
PseudoCylon
2010-03-13 05:00:28 UTC
Permalink
----- Original Message ----
Sent: Fri, March 12, 2010 7:42:46 PM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov? And why there are two
drivers?
The thread says it all. Just need to go though some pages. His user name is egorenar.
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146e&t=7562
From what I understand, Alexander's driver supports 11n ann
run(4) doesn't.
That's correct. Besides run(4) supports rt3XXX chipsets.

AK


__________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
Rui Paulo
2010-03-13 08:24:38 UTC
Permalink
Post by PseudoCylon
----- Original Message ----
Sent: Fri, March 12, 2010 7:42:46 PM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov? And why there are two
drivers?
The thread says it all. Just need to go though some pages. His user name is egorenar.
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146e&t=7562
From what I understand, Alexander's driver supports 11n ann
run(4) doesn't.
That's correct. Besides run(4) supports rt3XXX chipsets.
Oh, I see. I think we really need to start working on merging the two...

--
Rui Paulo
Rui Paulo
2010-03-13 02:42:46 UTC
Permalink
Post by Weongyo Jeong
Post by PseudoCylon
Hello,
Finally, I have fixed mysterious device lock out and run(4) works fine
in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
though it.
The device supports up to 253 stations. I only tested with 2 station.
If you have resources, please hit it with bunch of STAs.
As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.
or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146e&t=7562
Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov? And why there are two drivers?
From what I understand, Alexander's driver supports 11n ann run(4)
doesn't.

--
Rui Paulo
Hans Petter Selasky
2010-03-13 07:36:41 UTC
Permalink
Post by Rui Paulo
Post by Weongyo Jeong
Post by PseudoCylon
Hello,
Finally, I have fixed mysterious device lock out and run(4) works fine
in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
though it.
The device supports up to 253 stations. I only tested with 2 station.
If you have resources, please hit it with bunch of STAs.
As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.
or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e98051
46e&t=7562
Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov? And why there are two drivers?
From what I understand, Alexander's driver supports 11n ann run(4)
doesn't.
Will this two drivers be merged then?

--HPS
Rui Paulo
2010-03-13 08:24:55 UTC
Permalink
Post by Hans Petter Selasky
Post by Rui Paulo
Post by Weongyo Jeong
Post by PseudoCylon
Hello,
Finally, I have fixed mysterious device lock out and run(4) works fine
in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
though it.
The device supports up to 253 stations. I only tested with 2 station.
If you have resources, please hit it with bunch of STAs.
As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.
or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e98051
46e&t=7562
Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov? And why there are two drivers?
From what I understand, Alexander's driver supports 11n ann run(4)
doesn't.
Will this two drivers be merged then?
I hope so.

--
Rui Paulo
Alexander Egorenkov
2010-03-13 08:48:26 UTC
Permalink
Later i also plan to add multi BSS support so upto 8 HOSTAPs, several STAs
and WDSs will be possible with rt2860 and rt2870 on FreeBSD 8.
Post by Rui Paulo
Post by Hans Petter Selasky
Post by Rui Paulo
Post by Weongyo Jeong
Post by PseudoCylon
Hello,
Finally, I have fixed mysterious device lock out and run(4) works fine
in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
though it.
The device supports up to 253 stations. I only tested with 2 station.
If you have resources, please hit it with bunch of STAs.
As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.
or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e98051
46e&t=7562
Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov? And why there are two drivers?
From what I understand, Alexander's driver supports 11n ann run(4)
doesn't.
Will this two drivers be merged then?
I hope so.
--
Rui Paulo
Oliver Brandmueller
2010-03-15 10:58:16 UTC
Permalink
Hi,
Post by Alexander Egorenkov
Later i also plan to add multi BSS support so upto 8 HOSTAPs, several STAs
and WDSs will be possible with rt2860 and rt2870 on FreeBSD 8.
But I guess MiniPCIe version support is not on the horizon?

Thanx,
Oliver
--
| Oliver Brandmueller http://sysadm.in/ ***@sysadm.in |
| Ich bin das Internet. Sowahr ich Gott helfe. |
Weongyo Jeong
2010-03-14 02:06:56 UTC
Permalink
Post by Hans Petter Selasky
Post by Rui Paulo
Post by Weongyo Jeong
Post by PseudoCylon
Hello,
Finally, I have fixed mysterious device lock out and run(4) works fine
in HOSTAP mode. Up time is 80 hours and counting. I even filed tax
though it.
The device supports up to 253 stations. I only tested with 2 station.
If you have resources, please hit it with bunch of STAs.
As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.
or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e98051
46e&t=7562
Out of curiosity, what's the difference between run(4) and rt2870 driver
written by Alexander Egorenkov? And why there are two drivers?
From what I understand, Alexander's driver supports 11n ann run(4)
doesn't.
Will this two drivers be merged then?
I really want it and hope driver writers focus on one driver for same
chipsets. :-)

regards,
Weongyo Jeong
Ganbold
2010-03-16 15:29:36 UTC
Permalink
Hi,
Post by PseudoCylon
Hello,
Finally, I have fixed mysterious device lock out and run(4) works fine in HOSTAP mode. Up time is 80 hours and counting. I even filed tax though it.
The device supports up to 253 stations. I only tested with 2 station. If you have resources, please hit it with bunch of STAs.
As usual codes are posted at my git repository
git://dev.nasreddine.com/run.git
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
Please fetch 'hostap_rc' branch not 'master' this time.
or freebsd forums
http://forums.freebsd.org/showthread.php?s=1d3b01fbed80c61ff508e12e9805146e&t=7562
Tried this version on routerstation pro (mips) board. Root fs is in NFS.
(FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16 22:35:25 ULAT 2010).

...
run0: <1.0> on usbus0
run0: MAC/BBP RT3070 (rev 0x0200), RF RT3020 (MIMO 1T1R), address
00:22:cf:03:e0:30
Updating motd:run0: firmware RT2870 loaded
.
...

run0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: no carrier
ssid bsd channel 6 (2437 MHz 11g)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
protmode CTS wme bintval 0
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at ieee80211_radiotap_vdetach+0x70: sh v1,0(a0)
db> c
panic: trap
KDB: enter: panic
[ thread pid 0 tid 100047 ]
Stopped at kdb_enter+0x50: lui at,0x804c
db> bt
Tracing pid 0 tid 100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790 sz 24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec97a8 sz 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870 sz 24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
kdb_trap+10c (?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
trap+10fc (?,?,?,?) ra 803b97c8 sp c7ec9a50 sz 176
MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74 sp c7ec9b00 sz 200
kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz 24
panic+f8 (?,802c95b8,ffffffff,c7ec9990) ra 803c26a0 sp c7ec9be0 sz 40
trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
MipsKernGenException+10c (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8 sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid 0
db>


Btw, ifconfig wlan0 up works on with stock run(4) which was committed to
HEAD end of Jan.
Please let me know if you need any more information.

Ganbold
Post by PseudoCylon
Best,
AK
----
"FreeBSD and all other open source projects are the Tower of Babel in computer era." --me
(or http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
Just work on any of *_dev branches.
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-current
--
One thing about the past. It's likely to last. -- Ogden Nash
PseudoCylon
2010-03-16 21:34:58 UTC
Permalink
Hello,

Can you check version of firmware for me?

At the end of ralink's license (before the actual code) in rt2870.fw.uu, if it says
RT2870 v. 0.11
RT3071 v. 0.11
it's the latest. If there is no version info, it is old version.

Your chipset, rt3070 + rf3020 uses mcu command to select the antenna available in new firmware.

Best,
AK

Tried this version on routerstation pro (mips) board. Root fs is in
Post by Ganbold
NFS.
(FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16 22:35:25 ULAT
Post by Ganbold
2010).
...
run0: <1.0> on usbus0
run0: MAC/BBP RT3070 (rev
Post by Ganbold
0x0200), RF RT3020 (MIMO 1T1R), address
00:22:cf:03:e0:30
Updating
Post by Ganbold
motd:run0: firmware RT2870 loaded
.
...
Post by Ganbold
flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE
Post by Ganbold
802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST>
Post by Ganbold
metric 0 mtu 1500
ether
Post by Ganbold
00:22:cf:03:e0:30
media: IEEE 802.11 Wireless
Post by Ganbold
Ethernet autoselect mode 11g
status: no
Post by Ganbold
carrier
ssid bsd channel 6 (2437 MHz
Post by Ganbold
11g)
country US authmode OPEN privacy OFF txpower
Post by Ganbold
0 bmiss 7 scanvalid 60
protmode CTS wme bintval
Post by Ganbold
0
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address
Post by Ganbold
error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at
Post by Ganbold
sh v1,0(a0)
db> c
panic: trap
Post by Ganbold
panic
[ thread pid 0 tid 100047 ]
Stopped at
Post by Ganbold
kdb_enter+0x50: lui at,0x804c
db> bt
Tracing pid 0 tid
Post by Ganbold
100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790 sz
Post by Ganbold
24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec97a8 sz
Post by Ganbold
32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz
Post by Ganbold
168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870 sz
Post by Ganbold
24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
kdb_trap+10c
Post by Ganbold
(?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
trap+10fc (?,?,?,?) ra 803b97c8 sp
Post by Ganbold
c7ec9a50 sz 176
MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74 sp
Post by Ganbold
c7ec9b00 sz 200
kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz
Post by Ganbold
24
panic+f8 (?,802c95b8,ffffffff,c7ec9990) ra 803c26a0 sp c7ec9be0 sz
Post by Ganbold
40
trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz
Post by Ganbold
176
MipsKernGenException+10c (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8
Post by Ganbold
sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid
Post by Ganbold
0
db>


Btw, ifconfig wlan0 up works on with stock run(4) which
Post by Ganbold
was committed to
HEAD end of Jan.
Please let me know if you need any more
Post by Ganbold
information.
Ganbold
Post by Ganbold
Best,
AK
----
"FreeBSD and all other open source projects are the Tower of Babel in computer era." --me
git://dev.nasreddine.com/run.git
(or
href="http://dev.nasreddine.com/gitweb/?p=run.git;a=summary"; target=_blank
Post by PseudoCylon
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
Just work
on any of *_dev branches.
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
href="http://www.flickr.com/gift/"; target=_blank
Post by PseudoCylon
http://www.flickr.com/gift/
_______________________________________________
mailing list
href="http://lists.freebsd.org/mailman/listinfo/freebsd-current"; target=_blank
Post by PseudoCylon
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To
unsubscribe, send any mail to "
--
One thing about the past. It's likely to last. -- Ogden
Post by Ganbold
Nash
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/
PseudoCylon
2010-03-17 01:23:06 UTC
Permalink
Hello, again.

Can you try this patch? Patch is for if_runvar.h

--begin patch--

*** old_if_runvar.h 2010-03-16 19:14:25.000000000 -0600
--- new_if_runvar.h 2010-03-16 19:15:51.000000000 -0600
***************
*** 184,186 ****
uint8_t val;
! } bbp[8], rf[10];
uint8_t leds;
--- 184,186 ----
uint8_t val;
! } bbp[10], rf[10];
uint8_t leds;

--end patch--

Does your mips use big endian?

AK



Tried this version on routerstation pro (mips) board. Root fs is in
Post by Ganbold
NFS.
(FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16 22:35:25 ULAT
Post by Ganbold
2010).
...
run0: <1.0> on usbus0
run0: MAC/BBP RT3070 (rev
Post by Ganbold
0x0200), RF RT3020 (MIMO 1T1R), address
00:22:cf:03:e0:30
Updating
Post by Ganbold
motd:run0: firmware RT2870 loaded
.
...
Post by Ganbold
flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE
Post by Ganbold
802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST>
Post by Ganbold
metric 0 mtu 1500
ether
Post by Ganbold
00:22:cf:03:e0:30
media: IEEE 802.11 Wireless
Post by Ganbold
Ethernet autoselect mode 11g
status: no
Post by Ganbold
carrier
ssid bsd channel 6 (2437 MHz
Post by Ganbold
11g)
country US authmode OPEN privacy OFF txpower
Post by Ganbold
0 bmiss 7 scanvalid 60
protmode CTS wme bintval
Post by Ganbold
0
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address
Post by Ganbold
error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at
Post by Ganbold
sh v1,0(a0)
db> c
panic: trap
Post by Ganbold
panic
[ thread pid 0 tid 100047 ]
Stopped at
Post by Ganbold
kdb_enter+0x50: lui at,0x804c
db> bt
Tracing pid 0 tid
Post by Ganbold
100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790 sz
Post by Ganbold
24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec97a8 sz
Post by Ganbold
32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz
Post by Ganbold
168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870 sz
Post by Ganbold
24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
kdb_trap+10c
Post by Ganbold
(?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
trap+10fc (?,?,?,?) ra 803b97c8 sp
Post by Ganbold
c7ec9a50 sz 176
MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74 sp
Post by Ganbold
c7ec9b00 sz 200
kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz
Post by Ganbold
24
panic+f8 (?,802c95b8,ffffffff,c7ec9990) ra 803c26a0 sp c7ec9be0 sz
Post by Ganbold
40
trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz
Post by Ganbold
176
MipsKernGenException+10c (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8
Post by Ganbold
sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid
Post by Ganbold
0
db>


Btw, ifconfig wlan0 up works on with stock run(4) which
Post by Ganbold
was committed to
HEAD end of Jan.
Please let me know if you need any more
Post by Ganbold
information.
Ganbold
Post by Ganbold
Best,
AK
----
"FreeBSD and all other open source projects are the Tower of Babel in computer era." --me
git://dev.nasreddine.com/run.git
(or
href="http://dev.nasreddine.com/gitweb/?p=run.git;a=summary" target=_blank
Post by PseudoCylon
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
Just work
on any of *_dev branches.
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
href="http://www.flickr.com/gift/" target=_blank
Post by PseudoCylon
http://www.flickr.com/gift/
_______________________________________________
mailing list
href="http://lists.freebsd.org/mailman/listinfo/freebsd-current" target=_blank
Post by PseudoCylon
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To
unsubscribe, send any mail to "
--
One thing about the past. It's likely to last. -- Ogden
Post by Ganbold
Nash
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/
Ganbold
2010-03-18 13:33:01 UTC
Permalink
Hi,
Post by PseudoCylon
Hello, again.
Can you try this patch? Patch is for if_runvar.h
--begin patch--
*** old_if_runvar.h 2010-03-16 19:14:25.000000000 -0600
--- new_if_runvar.h 2010-03-16 19:15:51.000000000 -0600
***************
*** 184,186 ****
uint8_t val;
! } bbp[8], rf[10];
uint8_t leds;
--- 184,186 ----
uint8_t val;
! } bbp[10], rf[10];
uint8_t leds;
--end patch--
Same.

wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid bsd channel 1 (2412 MHz 11b)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
wme bintval 0
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at ieee80211_radiotap_vdetach+0x70: sh v1,0(a0)
db> bt
Tracing pid 0 tid 100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9948 sz 24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec9960 sz 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz 24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
trap+134c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
MipsKernGenException+10c (c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid 0
db>

Ganbold
Post by PseudoCylon
Does your mips use big endian?
AK
Tried this version on routerstation pro (mips) board. Root fs is in
Post by Ganbold
NFS.
(FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16 22:35:25 ULAT
Post by Ganbold
2010).
..
run0: <1.0> on usbus0
run0: MAC/BBP RT3070 (rev
Post by Ganbold
0x0200), RF RT3020 (MIMO 1T1R), address
00:22:cf:03:e0:30
Updating
Post by Ganbold
motd:run0: firmware RT2870 loaded
_
..
Post by Ganbold
flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE
Post by Ganbold
802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST>
Post by Ganbold
metric 0 mtu 1500
ether
Post by Ganbold
00:22:cf:03:e0:30
media: IEEE 802.11 Wireless
Post by Ganbold
Ethernet autoselect mode 11g
status: no
Post by Ganbold
carrier
ssid bsd channel 6 (2437 MHz
Post by Ganbold
11g)
country US authmode OPEN privacy OFF txpower
Post by Ganbold
0 bmiss 7 scanvalid 60
protmode CTS wme bintval
Post by Ganbold
0
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address
Post by Ganbold
error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at
Post by Ganbold
sh v1,0(a0)
db> c
panic: trap
Post by Ganbold
panic
[ thread pid 0 tid 100047 ]
Stopped at
Post by Ganbold
kdb_enter+0x50: lui at,0x804c
db> bt
Tracing pid 0 tid
Post by Ganbold
100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790 sz
Post by Ganbold
24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec97a8 sz
Post by Ganbold
32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz
Post by Ganbold
168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870 sz
Post by Ganbold
24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
kdb_trap+10c
Post by Ganbold
(?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
trap+10fc (?,?,?,?) ra 803b97c8 sp
Post by Ganbold
c7ec9a50 sz 176
MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74 sp
Post by Ganbold
c7ec9b00 sz 200
kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz
Post by Ganbold
24
panic+f8 (?,802c95b8,ffffffff,c7ec9990) ra 803c26a0 sp c7ec9be0 sz
Post by Ganbold
40
trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz
Post by Ganbold
176
MipsKernGenException+10c (c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8
Post by Ganbold
sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid
Post by Ganbold
0
db>
Btw, ifconfig wlan0 up works on with stock run(4) which
Post by Ganbold
was committed to
HEAD end of Jan.
Please let me know if you need any more
Post by Ganbold
information.
Ganbold
Post by Ganbold
Best,
AK
----
"FreeBSD and all other open source projects are the Tower of Babel in computer era." --me
git://dev.nasreddine.com/run.git
(or
href="http://dev.nasreddine.com/gitweb/?p=run.git;a=summary" target=_blank
Post by PseudoCylon
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary )
Just work
on any of *_dev branches.
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
href="http://www.flickr.com/gift/" target=_blank
Post by PseudoCylon
http://www.flickr.com/gift/
_______________________________________________
mailing list
href="http://lists.freebsd.org/mailman/listinfo/freebsd-current" target=_blank
Post by PseudoCylon
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To
unsubscribe, send any mail to "
--
UNIX is many things to many people, but it's never been everything to
anybody.
PseudoCylon
2010-03-18 23:13:42 UTC
Permalink
Can you show me output of followings? (I have only intel chips.)

#kldstat | grep if_run (after loading the driver. no need to run it)
#objdump -h /boot/kernel/if_run.ko | grep text
#objdump --source /boot/kernel/if_run.ko | grep \>:



AK
Post by Ganbold
Same.
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at ieee80211_radiotap_vdetach+0x70: sh v1,0(a0)
db> bt
Tracing pid 0 tid 100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9948 sz 24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec9960 sz 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz 24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
trap+134c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
MipsKernGenException+10c (c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid 0
db>
Ganbold
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
Ganbold
2010-03-19 14:33:10 UTC
Permalink
Post by PseudoCylon
Can you show me output of followings? (I have only intel chips.)
#kldstat | grep if_run (after loading the driver. no need to run it)
#objdump -h /boot/kernel/if_run.ko | grep text
Here it is:

rspro# uname -an
FreeBSD rspro.micom.mng.net 9.0-CURRENT FreeBSD 9.0-CURRENT #15
r205084M: Thu Mar 18 21:23:45 ULAT 2010
***@beastie.micom.mng.net:/usr/obj/mips/usr/mysrc/sys/RSPRO_AR71XX mips
rspro# kldstat | grep if_run
3 1 0xc7e9c000 d338 if_run.ko
rspro# objdump -h /boot/kernel/if_run.ko | grep text
1 .text 0000a0b0 00000000 00000000 00000050 2**4
rspro# objdump --source /boot/kernel/if_run.ko | grep \>:
00000000 <run_key_update_begin>:
00000008 <run_key_update_end>:
00000010 <run_unsetup_tx_list>:
000000c0 <run_detach>:
000001d8 <run_set_tx_desc>:
00000398 <run_rssi2dbm>:
00000460 <run_rx_frame>:
00000a40 <run_bulk_rx_callback>:
00000f94 <run_tx_free>:
0000107c <run_amrr_to>:
000010ac <run_eeprom_read_2>:
00001160 <run_delay>:
000011c4 <run_do_request>:
000012d0 <run_write_2>:
00001330 <run_write_region_1>:
000013dc <run_write>:
0000144c <run_set_bssid>:
000014d4 <run_wme_update>:
0000179c <run_set_region_4>:
0000183c <run_read_region_1>:
00001894 <run_read>:
00001914 <run_updateslot_locked>:
00001998 <run_updateslot_cb>:
00001a18 <run_enable_tsf_sync>:
00001b24 <run_scan_end>:
00001bb8 <run_update_promisc_locked>:
00001c84 <run_update_promisc>:
00001d10 <run_reset_livelock>:
00001e08 <run_scan_start>:
00001ecc <run_drain_fifo>:
0000207c <run_mcu_cmd>:
0000215c <run_set_leds>:
00002190 <run_bbp_write>:
00002264 <run_bbp_read>:
0000239c <run_rt3070_rf_write>:
00002470 <run_rt3070_rf_read>:
000025a8 <run_rt3070_filter_calib>:
00002844 <run_rt2870_rf_write>:
00002924 <run_set_chan>:
00003980 <run_set_channel>:
00003a10 <run_efuse_read_2>:
00003ba8 <run_attach>:
000051b8 <run_node_alloc>:
000051e8 <run_vap_create>:
00005488 <run_usb_timeout_cb>:
000055b4 <run_key_delete>:
000059e0 <run_key_delete_cb>:
00005ac4 <run_iter_func>:
00005d38 <run_amrr_cb>:
00005e5c <run_start>:
000064a0 <run_bulk_tx_callbackN>:
00006a00 <run_bulk_tx_callback5>:
00006a24 <run_bulk_tx_callback4>:
00006a48 <run_bulk_tx_callback3>:
00006a6c <run_bulk_tx_callback2>:
00006a90 <run_bulk_tx_callback1>:
00006ab4 <run_bulk_tx_callback0>:
00006ad8 <run_raw_xmit>:
0000725c <run_newassoc>:
00007540 <run_stop>:
00007888 <run_match>:
000078f8 <run_vap_delete>:
00007a28 <run_updateslot>:
00007c00 <run_key_set>:
000080dc <run_init_locked>:
0000960c <run_init>:
000096c0 <run_ioctl>:
00009850 <run_update_beacon_locked>:
0000997c <run_update_beacon_cb>:
00009a08 <run_update_beacon>:
00009bf4 <run_newstate>:
rspro#


Ganbold
Post by PseudoCylon
AK
Post by Ganbold
Same.
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at ieee80211_radiotap_vdetach+0x70: sh v1,0(a0)
db> bt
Tracing pid 0 tid 100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9948 sz 24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec9960 sz 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz 24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
trap+134c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
MipsKernGenException+10c (c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid 0
db>
Ganbold
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-current
--
Her locks an ancient lady gave Her loving husband's life to save; And
men -- they honored so the dame -- Upon some stars bestowed her name.
But to our modern married fair, Who'd give their lords to save their
hair, No stellar recognition's given. There are not stars enough in heaven.
PseudoCylon
2010-03-27 09:12:21 UTC
Permalink
Post by Ganbold
Post by Ganbold
Same.
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address error (store) - kernel
mode)
Post by Ganbold
[ thread pid 0 tid 100047 ]
Stopped at
sh v1,0(a0)
Post by Ganbold
db> bt
Tracing pid 0
tid 100047 td 0xc0f1f260
Post by Ganbold
db_trace_thread+30 (?,?,?,?) ra 80071160 sp
c7ec9948 sz 24
Post by Ganbold
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec9960
sz 32
Post by Ganbold
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz
168
Post by Ganbold
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz
24
Post by Ganbold
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
Post by Ganbold
trap+134c
(?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
Post by Ganbold
MipsKernGenException+10c
(c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
Post by Ganbold
c7ec9cb8 sz
200
Post by Ganbold
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid
0
Post by Ganbold
db>
Ganbold
Hi,

Can you try this patch? (Patch is for if_run.c)

Before "ifconfig wlan0 up", please run
sysctl hw.usb.run.debug=1
This will give me more clues.

Does it panic right after wlan up, or are there some seconds before panic?

Regards,
AK

-- begin patch --

*** old_if_run.c 2010-03-27 02:44:20.000000000 -0600
--- new_if_run.c 2010-03-27 02:47:28.000000000 -0600
***************
*** 414,416 ****
static const struct {
! uint32_t reg;
uint32_t val;
--- 414,416 ----
static const struct {
! uint16_t reg;
uint32_t val;
***************
*** 1225,1227 ****

! *val = tmp & 0xff;
return 0;
--- 1225,1227 ----

! *val = (uint8_t)(tmp & 0xff);
return 0;


__________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
Ganbold
2010-03-27 10:32:47 UTC
Permalink
Post by PseudoCylon
Same.
Hi,
Can you try this patch? (Patch is for if_run.c)
Before "ifconfig wlan0 up", please run
sysctl hw.usb.run.debug=1
This will give me more clues.
Does it panic right after wlan up, or are there some seconds before panic?
Same, it panics right after issuing wlan up. I used this patch and also
if_runvar.h patch also.
...
run0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid bsd channel 1 (2412 MHz 11b)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
wme bintval 0
rspro# ifconfig wlan0 up
run_stop: All Tx cleared
run_newstate: INIT -> SCAN
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at ieee80211_radiotap_vdetach+0x70: sh v1,0(a0)
db>

Ganbold
Post by PseudoCylon
Regards,
AK
-- begin patch --
*** old_if_run.c 2010-03-27 02:44:20.000000000 -0600
--- new_if_run.c 2010-03-27 02:47:28.000000000 -0600
***************
*** 414,416 ****
static const struct {
! uint32_t reg;
uint32_t val;
--- 414,416 ----
static const struct {
! uint16_t reg;
uint32_t val;
***************
*** 1225,1227 ****
! *val = tmp & 0xff;
return 0;
--- 1225,1227 ----
! *val = (uint8_t)(tmp & 0xff);
return 0;
__________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-current
--
The worst cliques are those which consist of one man. -- George Bernard
Shaw
Ganbold
2010-03-27 13:01:32 UTC
Permalink
Post by PseudoCylon
Post by Ganbold
Post by Ganbold
Same.
JFYI, I have just tested if_run and works fine on HEAD (i386).
But on RouterStation Pro it still has problem with your patch.

Ganbold
Post by PseudoCylon
Post by Ganbold
Post by Ganbold
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address error (store) - kernel
mode)
Post by Ganbold
[ thread pid 0 tid 100047 ]
Stopped at
sh v1,0(a0)
Post by Ganbold
db> bt
Tracing pid 0
tid 100047 td 0xc0f1f260
Post by Ganbold
db_trace_thread+30 (?,?,?,?) ra 80071160 sp
c7ec9948 sz 24
Post by Ganbold
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec9960
sz 32
Post by Ganbold
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec9980 sz
168
Post by Ganbold
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9a28 sz
24
Post by Ganbold
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9a40 sz 424
kdb_trap+10c (?,?,?,?) ra 803c2690 sp c7ec9be8 sz 32
Post by Ganbold
trap+134c
(?,?,?,?) ra 803b97c8 sp c7ec9c08 sz 176
Post by Ganbold
MipsKernGenException+10c
(c0f6a637,c0f721c8,c7ea7c04,e51) ra 802c95b8 sp
Post by Ganbold
c7ec9cb8 sz
200
Post by Ganbold
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid
0
Post by Ganbold
db>
Ganbold
Hi,
Can you try this patch? (Patch is for if_run.c)
Before "ifconfig wlan0 up", please run
sysctl hw.usb.run.debug=1
This will give me more clues.
Does it panic right after wlan up, or are there some seconds before panic?
Regards,
AK
-- begin patch --
*** old_if_run.c 2010-03-27 02:44:20.000000000 -0600
--- new_if_run.c 2010-03-27 02:47:28.000000000 -0600
***************
*** 414,416 ****
static const struct {
! uint32_t reg;
uint32_t val;
--- 414,416 ----
static const struct {
! uint16_t reg;
uint32_t val;
***************
*** 1225,1227 ****
! *val = tmp & 0xff;
return 0;
--- 1225,1227 ----
! *val = (uint8_t)(tmp & 0xff);
return 0;
__________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-current
--
The Bible is not my Book and Christianity is not my religion. I could
never give assent to the long complicated statements of Christian dogma.
-- Abraham Lincoln
PseudoCylon
2010-03-30 09:57:32 UTC
Permalink
----- Original Message ----
Sent: Sat, March 27, 2010 7:01:32 AM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
JFYI, I have just tested if_run and works fine on HEAD (i386).
But on RouterStation Pro it still has problem with your patch.
Ganbold
Thank you for taking extra time to test the driver.

Yes, it works on x86. It's hard to find bugs if everything is working on my computers (core2 and atom 330).

Here is patch.
http://dev.nasreddine.com/gitweb/?p=run.git;a=tree;f=dev/usb/wlan;h=695689599706b01ed9ef0f1be8dfc5790076e1ae;hb=bdc7558bfbd4f3b1c4491cb56853de24580a5434
Please download if_run.c and if_runvar.h (click "raw" to download)

It will print out lots of messages. Please show me last 5 or so messages if it still panics.

Does stock run(4) still works on RouterStation? There were some update (r205042). Yours (r205084) has it.

AK


__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
Ganbold
2010-03-31 13:59:21 UTC
Permalink
Post by PseudoCylon
----- Original Message ----
Sent: Sat, March 27, 2010 7:01:32 AM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
JFYI, I have just tested if_run and works fine on HEAD (i386).
But on RouterStation Pro it still has problem with your patch.
Ganbold
Thank you for taking extra time to test the driver.
Yes, it works on x86. It's hard to find bugs if everything is working on my computers (core2 and atom 330).
Here is patch.
http://dev.nasreddine.com/gitweb/?p=run.git;a=tree;f=dev/usb/wlan;h=695689599706b01ed9ef0f1be8dfc5790076e1ae;hb=bdc7558bfbd4f3b1c4491cb56853de24580a5434
Please download if_run.c and if_runvar.h (click "raw" to download)
It will print out lots of messages. Please show me last 5 or so messages if it still panics.
Ok, here it is:

rspro# ifconfig wlan0 up
run_stop: All Tx cleared
run_set_rx_antenna: called
run_rt3070_set_chan: called
run_bulk_rx_callback: called
run_newstate: INIT -> SCAN
run_scan_start: called
run_set_bssid: called
run_set_channel: called
run_rt3070_set_chan: called
rspro# Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100068 ]
Stopped at ieee80211_radiotap_vdetach+0x70: sh v1,0(a0)
db>
Post by PseudoCylon
Does stock run(4) still works on RouterStation? There were some update (r205042). Yours (r205084) has it.
Stock version worked when issued ifconfig wlan0 up once I tried.

wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 1 (2412 MHz 11b)
regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 7
scanvalid 60 wme bintval 0
rspro# ifconfig wlan0 up
run_stop: All Tx cleared
run_newstate: INIT -> SCAN
rspro# ifconfig -a
run0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:22:cf:03:e0:30
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 11 (2462 MHz 11g)
regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 7
scanvalid 60 protmode CTS wme bintval 0


Ganbold
Post by PseudoCylon
AK
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
--
Oprah Winfrey has an incredible talent for getting the wierdest people
to talk to. And you just HAVE to watch it. "Blind, masochistic minority,
crippled, depressed, government latrine diggers, and the women who love
them too much on the next Oprah Winfrey."
Ganbold
2010-03-31 14:08:29 UTC
Permalink
Post by PseudoCylon
----- Original Message ----
Sent: Sat, March 27, 2010 7:01:32 AM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
JFYI, I have just tested if_run and works fine on HEAD (i386).
But on RouterStation Pro it still has problem with your patch.
Ganbold
Thank you for taking extra time to test the driver.
Yes, it works on x86. It's hard to find bugs if everything is working on my computers (core2 and atom 330).
Here is patch.
http://dev.nasreddine.com/gitweb/?p=run.git;a=tree;f=dev/usb/wlan;h=695689599706b01ed9ef0f1be8dfc5790076e1ae;hb=bdc7558bfbd4f3b1c4491cb56853de24580a5434
Please download if_run.c and if_runvar.h (click "raw" to download)
It will print out lots of messages. Please show me last 5 or so messages if it still panics.
Does stock run(4) still works on RouterStation? There were some update (r205042). Yours (r205084) has it.
Does stock run(4) support hostap mode yet?

rspro# sysctl net.wlan.debug=1
net.wlan.debug: 0 -> 1
rspro# ifconfig wlan0 create wlandev run0 wlanmode hostap ssid bsd mode 11g
wlan0: Ethernet address: 00:22:cf:03:e0:30
Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)
[ thread pid 1213 tid 100051 ]
Stopped at strlcpy+0x14: lb v0,0(a1)
db> bt
Tracing pid 1213 tid 100051 td 0xc0f1d720
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ed7450 sz 24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ed7468 sz 32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ed7488 sz 168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ed7530 sz 24
800732b0+108 (?,?,?,?) ra 801d8d4c sp c7ed7548 sz 424
kdb_trap+10c (?,?,?,?) ra 803c37f0 sp c7ed76f0 sz 32
trap+134c (?,?,?,?) ra 803baa58 sp c7ed7710 sz 176
MipsKernGenException+10c (c7ed7a66,0,8,c7ed7a54) ra 8025e6e4 sp c7ed77c0
sz 200
strlcpy+14 (?,?,?,?) ra 0 sp c7ed7888 sz 0
pid 1213
db>

Ganbold
Post by PseudoCylon
AK
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
--
The temperature of Heaven can be rather accurately computed from
available data. Our authority is Isaiah 30:26, "Moreover, the light of
the Moon shall be as the light of the Sun and the light of the Sun shall
be sevenfold, as the light of seven days." Thus Heaven receives from the
Moon as much radiation as we do from the Sun, and in addition seven
times seven (49) times as much as the Earth does from the Sun, or fifty
times in all. The light we receive from the Moon is one ten-thousandth
of the light we receive from the Sun, so we can ignore that. With these
data we can compute the temperature of Heaven. The radiation falling on
Heaven will heat it to the point where the heat lost by radiation is
just equal to the heat received by radiation, i.e., Heaven loses fifty
times as much heat as the Earth by radiation. Using the Stefan-Boltzmann
law for radiation, (H/E)^4 = 50, where E is the absolute temperature of
the earth (~300K), gives H as 798K (525C). The exact temperature of Hell
cannot be computed, but it must be less than 444.6C, the temperature at
which brimstone or sulphur changes from a liquid to a gas. Revelations
21:8 says "But the fearful, and unbelieving ... shall have their part in
the lake which burneth with fire and brimstone." A lake of molten
brimstone means that its temperature must be at or below the boiling
point, or 444.6C (Above this point it would be a vapor, not a lake.) We
have, then, that Heaven, at 525C is hotter than Hell at 445C. --
"Applied Optics", vol. 11, A14, 1972
PseudoCylon
2010-04-01 10:47:26 UTC
Permalink
----- Original Message ----
Sent: Wed, March 31, 2010 8:08:29 AM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
Does stock run(4) support hostap mode yet?
No. There were some bugs and I thought I fixed them. So, I called for test. It seems the driver is working on x86, but not on mips. hostap mode should work on your other computer with i386.

I'm still working on patch. It panics where there wasn't any changes made. Strange...


AK


__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
Ganbold
2010-04-06 13:29:16 UTC
Permalink
Post by PseudoCylon
----- Original Message ----
Sent: Wed, March 31, 2010 8:08:29 AM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
Does stock run(4) support hostap mode yet?
No. There were some bugs and I thought I fixed them. So, I called for test. It seems the driver is working on x86, but not on mips. hostap mode should work on your other computer with i386.
I'm still working on patch. It panics where there wasn't any changes made. Strange...
Hi,

Sorry, it looks like I missed some of your emails.
Please let me know if you need any info from my side.

thanks,

Ganbold
Post by PseudoCylon
AK
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
--
It turned out that the worm exploited three or four different holes in
the system. From this, and the fact that we were able to capture and
examine some of the source code, we realized that we were dealing with
someone very sharp, probably not someone here on campus. -- Dr. Richard
LeBlanc, associate professor of ICS, in Georgia Tech's campus newspaper
after the Internet worm.
PseudoCylon
2010-04-08 07:27:53 UTC
Permalink
Hi,

Sorry for taking long to fix. Here is another patch.

**But before trying it out, please check rev. of your system.**

If you are using r206358 (15:29 UTC Apr. 7) or newer, the driver won't work. If you are using older system, please try this patch.
http://projects.nasreddine.com/projects/run/repository/revisions/mips1_fix/show/dev/usb/wlan
Only if_run.c is patched since last time. (click file name, then click "download")

If you are using r206358 or newer, please give me some time to fix. I'm stating it now.

Is your kernel compiled with INVARIANTS option?

AK



----- Original Message ----
Sent: Tue, April 6, 2010 7:29:16 AM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
----- Original Message ----
From: Ganbold <
PseudoCylon <
Sent: Wed, March 31, 2010 8:08:29 AM
Subject: Re: CALL for TEST
[HOSTAP] run(4) ralink usb wireless
Does stock run(4)
support hostap mode yet?
No. There
were some bugs and I thought I fixed them. So, I called for test. It seems the
driver is working on x86, but not on mips. hostap mode should work on your other
computer with i386.
I'm still working on patch. It panics where
there wasn't any changes made. Strange...
Hi,

Sorry, it looks like I missed some of your emails.
Please
let me know if you need any info from my
side.
thanks,

Ganbold
AK
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/
Ganbold
2010-04-08 14:47:43 UTC
Permalink
Hi,
Post by PseudoCylon
Hi,
Sorry for taking long to fix. Here is another patch.
**But before trying it out, please check rev. of your system.**
If you are using r206358 (15:29 UTC Apr. 7) or newer, the driver won't work. If you are using older system, please try this patch.
http://projects.nasreddine.com/projects/run/repository/revisions/mips1_fix/show/dev/usb/wlan
Only if_run.c is patched since last time. (click file name, then click "download")
Ok, here it is:

http://freebsd.pastebin.com/g2YBBDeG
Post by PseudoCylon
If you are using r206358 or newer, please give me some time to fix. I'm stating it now.
Is your kernel compiled with INVARIANTS option?
Tried, but if_arge panics at boot with INVARIANTS option.

arge0: <Atheros AR71xx built-in ethernet interface> at mem
0x19000000-0x19000fff irq 2 on nexus0
panic: mtx_lock() of spin mutex arge mii lock @
/usr/mysrc/sys/mips/atheros/if_arge.c:554


thanks,

Ganbold Ts
Post by PseudoCylon
AK
----- Original Message ----
Sent: Tue, April 6, 2010 7:29:16 AM
Subject: Re: CALL for TEST [HOSTAP] run(4) ralink usb wireless
----- Original Message ----
From: Ganbold <
PseudoCylon <
Sent: Wed, March 31, 2010 8:08:29 AM
Subject: Re: CALL for TEST
[HOSTAP] run(4) ralink usb wireless
Does stock run(4)
support hostap mode yet?
No. There
were some bugs and I thought I fixed them. So, I called for test. It seems the
driver is working on x86, but not on mips. hostap mode should work on your other
computer with i386.
I'm still working on patch. It panics where
there wasn't any changes made. Strange...
Hi,
Sorry, it looks like I missed some of your emails.
Please
let me know if you need any info from my
side.
thanks,
Ganbold
AK
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
--
MONTANA: Where forty-three below keeps out the riff-raff.
Rui Paulo
2010-03-18 13:55:40 UTC
Permalink
Post by PseudoCylon
Does your mips use big endian?
Yes, the routerstation pros are big endian.

--
Rui Paulo
Ganbold.TS
2010-03-17 02:21:14 UTC
Permalink
Hi,
Post by PseudoCylon
Hello,
Can you check version of firmware for me?
At the end of ralink's license (before the actual
code) in rt2870.fw.uu, if it says
RT2870 v. 0.11
RT3071 v. 0.11
it's the latest. If there is no version info, it is
old version.
Your chipset, rt3070 + rf3020 uses mcu command to
select the antenna available in new firmware.
I used following code at
http://forums.freebsd.org/attachment.php?attachmentid=776&d=1267842698

I guess it is latest one. It shows:

# RT2870 v. 0.11
# RT3071 v. 0.11

Ganbold
Post by PseudoCylon
Best,
AK
Tried this version on routerstation pro (mips) board.
Root fs is in
Post by Ganbold
NFS.
(FreeBSD 9.0-CURRENT #13 r205084M: Tue Mar 16
22:35:25 ULAT
Post by Ganbold
2010).
...
run0: <1.0> on usbus0
run0: MAC/BBP RT3070 (rev
Post by Ganbold
0x0200), RF RT3020 (MIMO 1T1R), address
00:22:cf:03:e0:30
Updating
Post by Ganbold
motd:run0: firmware RT2870 loaded
.
...
Post by Ganbold
flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0
mtu 2290
Post by Ganbold
ether 00:22:cf:03:e0:30
media: IEEE
Post by Ganbold
802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST>
Post by Ganbold
metric 0 mtu 1500
ether
Post by Ganbold
00:22:cf:03:e0:30
media: IEEE 802.11 Wireless
Post by Ganbold
Ethernet autoselect mode 11g
status: no
Post by Ganbold
carrier
ssid bsd channel 6 (2437 MHz
Post by Ganbold
11g)
country US authmode OPEN privacy OFF txpower
Post by Ganbold
0 bmiss 7 scanvalid 60
protmode CTS wme bintval
Post by Ganbold
0
rspro# ifconfig wlan0 up
rspro# Trap cause = 5 (address
Post by Ganbold
error (store) - kernel mode)
[ thread pid 0 tid 100047 ]
Stopped at
Post by Ganbold
sh v1,0(a0)
db> c
panic: trap
Post by Ganbold
panic
[ thread pid 0 tid 100047 ]
Stopped at
Post by Ganbold
kdb_enter+0x50: lui at,0x804c
db> bt
Tracing pid 0 tid
Post by Ganbold
100047 td 0xc0f1f260
db_trace_thread+30 (?,?,?,?) ra 80071160 sp c7ec9790
sz
Post by Ganbold
24
80071044+11c (0,?,ffffffff,?) ra 80070b54 sp c7ec97a8
sz
Post by Ganbold
32
800707c0+394 (?,?,?,?) ra 80070ce4 sp c7ec97c8 sz
Post by Ganbold
168
db_command_loop+78 (?,?,?,?) ra 800733b8 sp c7ec9870
sz
Post by Ganbold
24
800732b0+108 (?,?,?,?) ra 801d8b1c sp c7ec9888 sz 424
kdb_trap+10c
Post by Ganbold
(?,?,?,?) ra 803c2440 sp c7ec9a30 sz 32
trap+10fc (?,?,?,?) ra 803b97c8 sp
Post by Ganbold
c7ec9a50 sz 176
MipsKernGenException+10c (0,a,804e0fe4,2) ra 801d8d74
sp
Post by Ganbold
c7ec9b00 sz 200
kdb_enter+50 (?,?,?,?) ra 8019ccc0 sp c7ec9bc8 sz
Post by Ganbold
24
panic+f8 (?,802c95b8,ffffffff,c7ec9990) ra 803c26a0
sp c7ec9be0 sz
Post by Ganbold
40
trap+135c (?,?,?,?) ra 803b97c8 sp c7ec9c08 sz
Post by Ganbold
176
MipsKernGenException+10c
(c0f6a62f,c0f72268,c7ea7c14,e51) ra 802c95b8
Post by Ganbold
sp
c7ec9cb8 sz 200
802c95a8+10 (?,?,?,?) ra 0 sp c7ec9d80 sz 0
pid
Post by Ganbold
0
db>
Btw, ifconfig wlan0 up works on with stock run(4)
which
Post by Ganbold
was committed to
HEAD end of Jan.
Please let me know if you need any more
Post by Ganbold
information.
Ganbold
Post by Ganbold
Best,
AK
----
"FreeBSD and all other open source projects are the
Tower of Babel
Post by Ganbold
in computer era." --me
git://dev.nasreddine.com/run.git
(or
href="http://dev.nasreddine.com/gitweb/?p=run.git;a=summary";
target=_blank
Post by Ganbold
http://dev.nasreddine.com/gitweb/?p=run.git;a=summary
)
Post by Ganbold
Just work
on any of *_dev branches.
__________________________________________________________________
Post by Ganbold
Looking for the perfect gift? Give the gift of
Flickr!
Post by Ganbold
href="http://www.flickr.com/gift/"; target=_blank
Post by PseudoCylon
http://www.flickr.com/gift/
_______________________________________________
mailing list
href="http://lists.freebsd.org/mailman/listinfo/freebsd-current";
target=_blank
Post by Ganbold
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To
unsubscribe, send any mail to "
--
One thing about the past. It's likely to last. --
Ogden
Post by Ganbold
Nash
__________________________________________________________________
Looking for the perfect gift? Give the gift of
Flickr!
http://www.flickr.com/gift/
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to
Loading...