Ralink rt2870 wifi support?

NAC said:
thanks for your steps.everything works well, but once i run
Code:
# /etc/rc.d/netif restart
i would get
Code:
Stopping network:wpa_supplicant not running? (check /var/run/wpa_supplicant/rt28700.pid).

rt28700: no link ...... got link
DHCPREQUEST on rt28700 to 255.255.255.255 port 67
DHCPREQUEST on rt28700 to 255.255.255.255 port 67
DHCPACK from 10.1.1.1
bound to 10.1.1.4 -- renewal in 1800 seconds.

it seems something wrong at here I am trying to sort it out, it is a bit different with my Gentoo wpa_supplicant, i have checked my folder, there is no file called: /var/run/wpa_supplicant/rt28700.pid

The first time you run wpa_supplicant, there is no /var/run/wpa_supplicant/rt28700.pid because wpa_supplicant is running first time. After "netif restart"
you should see /var/run/wpa_supplicant/rt28700.pid.

Everything is OK, i get the same message. Your NIC was assigned the IP address 10.1.1.4 and you should now be able to use your NIC. What says ifconfig ?
 
no, i cannot ping to router, '
PING 10.1.1.1 (10.1.1.1): 56 data bytes
the netmask should be netmask 255.0.0.0
ifconfig_rt28700="inet 10.1.1.90 netmask 255.0.0.0"
 
NAC said:
no, i cannot ping to router, '
PING 10.1.1.1 (10.1.1.1): 56 data bytes
the netmask should be netmask 255.0.0.0
ifconfig_rt28700="inet 10.1.1.90 netmask 255.0.0.0"

Did you see my previous post on first page. I extended it
with static IP configuration and i tested it myself, it works. You can use DHCP or static IP but not both.

You have not only to configure static IP for your NIC but you also
need in that case to manually define default router, nameserver and so on. See my post on previous page.
 
NAC said:
here is my rc.conf
Code:
ifconfig_rt28700="WPA DHCP"
/etc/wpa_supplicant.conf
Code:
network={
   ssid="NACII"
   psk="conctort2870"
}
after
Code:
/etc/rc.d/netif restart

You are associated and you have an IP.
Can you please post your routing table with "netstat -nr"
 
egorenar said:
Did you see my previous post on first page. I extended it
with static IP configuration and i tested it myself, it works. You can use DHCP or static IP but not both.

You have not only to configure static IP for your NIC but you also
need in that case to manually define default router, nameserver and so on. See my post on previous page.

whenever i try to restart wireless, i always mark off one line, i am not using both. i am going to try now, i think it should be working soon. :) thanks for your prompt replies
 
egorenar said:
You are associated and you have an IP.
Can you please post your routing table with "netstat -nr"

while i am editing i made a mistake and that message been deleted. :(


Code:
netstat -nr

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            10.1.1.1           UGS         0      672   ale0
10.0.0.0/8         link#1             UC          0        0   ale0
10.1.1.1           00:12:3c:12:22:ff  UHLW        2      182   ale0   1156
127.0.0.1          127.0.0.1          UH          0        0    lo0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#2                        UHL         lo0
ff01:2::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0

there is no rt28700
 
NAC said:
while i am editing i made a mistake and that message been deleted. :(


Code:
netstat -nr

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            10.1.1.1           UGS         0      672   ale0
10.0.0.0/8         link#1             UC          0        0   ale0
10.1.1.1           00:12:3c:12:22:ff  UHLW        2      182   ale0   1156
127.0.0.1          127.0.0.1          UH          0        0    lo0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#2                        UHL         lo0
ff01:2::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0

What is ale0 ? Have you disabled other ifconfigs in rc.conf ?
You can't use 2 NICs simultaneously connected to the same router.
You should temporarily disable ifconfig_ale0 and unplug the cable.
You should see in your routing table rt28700 instead of ale0.

That is my routing table:

Code:
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.178.1      UGS         0     6815 rt2870
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.178.0/24   link#6             UC          0        0 rt2870
192.168.178.1      00:1a:4f:82:b1:82  UHLW        2      437 rt2870   1177
 
egorenar said:
What is ale0 ? Have you disabled other ifconfigs in rc.conf ?
You can't use 2 NICs simultaneously connected to the same router.
You should temporarily disable ifconfig_ale0 and unplug the cable.
You should see in your routing table rt28700 instead of ale0.

That is my routing table:

Code:
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.178.1      UGS         0     6815 rt2870
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.178.0/24   link#6             UC          0        0 rt2870
192.168.178.1      00:1a:4f:82:b1:82  UHLW        2      437 rt2870   1177

thank you so much.. haha I have got it worked.
i have no idea why it worked, it just worked itself, after twice kernel panic, that is wired...
now i am writing msg surfing on this NIC..it's pretty cool.

I am wondering did you have kernel panic problem during you using the wireless? and how i can load this module (rt2870.ko) when the sys boot-up? or i must do it manually every time?

thanks for your work, the driver works like a charm
 
NAC said:
thank you so much.. haha I have got it worked.
i have no idea why it worked, it just worked itself, after twice kernel panic, that is wired...
now i am writing msg surfing on this NIC..it's pretty cool.

I am wondering did you have kernel panic problem during you using the wireless? and how i can load this module (rt2870.ko) when the sys boot-up? or i must do it manually every time?

thanks for your work, the driver works like a charm

The driver is not yet finished but it is OK and usable now.
It lacks locking and some error checking. I'm new to FreeBSD kernel programming. Actually i'm Linux kernel programmer :)
But there is already a driver for this chip on Linux but on FreeBSD there was no driver and i wanted to learn how
WLAN NICs and 802.11 stack work.

I'm still working on driver for rt2870 and also rt2860 (PCI)
and will improve it later. I intend to implement 802.11n
and WME and of course fix bugs :) The more people will test this driver the faster i can fix bugs, i think :)

Have fun and please report any problems to me.

I'm going to sleep now, it's midnight and i have to work tomorrow.
 
  • Thanks
Reactions: NAC
egorenar said:
The driver is not yet finished but it is OK and usable now.
It lacks locking and some error checking. I'm new to FreeBSD kernel programming. Actually i'm Linux kernel programmer :)
But there is already a driver for this chip on Linux but on FreeBSD there was no driver and i wanted to learn how
WLAN NICs and 802.11 stack work.

I'm still working on driver for rt2870 and also rt2860 (PCI)
and will improve it later. I intend to implement 802.11n
and WME and of course fix bugs :) The more people will test this driver the faster i can fix bugs, i think :)


Have fun and please report any problems to me.

I'm going to sleep now, it's midnight and i have to work tomorrow.


thanks a lot buddy for your work. i will follow up for updating.
have a good nite :)
 
NAC said:
and how i can load this module (rt2870.ko) when the sys boot-up? or i must do it manually every time?

Copy rt2870.ko to /boot/kernel/
and edit /boot/loader.conf

Code:
rt2870_load="YES"

I have not tested it !!!

:e
 
egorenar said:
Copy rt2870.ko to /boot/kernel/
and edit /boot/loader.conf

Code:
rt2870_load="YES"

I have not tested it !!!

:e

i do try it! but seems need to unplug NIC 1st and re-plug it! ha:e
 
Hello,

I'm new to FreeBSD and this laptop (HP DV7-1199EF) has an intel 5100 which is currently unsupported by FreeBSD.

I bought a Linksys WUSB54GV Ver. 3, it has a rt2870 chipset, and I'm trying to install it on 8.0-BETA, but I can't compile it, does this driver works for 8-BETA?

Thanks
 
eMxyzptlk said:
Hello,

I'm new to FreeBSD and this laptop (HP DV7-1199EF) has an intel 5100 which is currently unsupported by FreeBSD.

I bought a Linksys WUSB54GV Ver. 3, it has a rt2870 chipset, and I'm trying to install it on 8.0-BETA, but I can't compile it, does this driver works for 8-BETA?

Thanks

Sorry, no freebsd 8 support yet.
FreeBSD 8 has a bit different 802.11 stack (net80211).
But i do intend to port it to FreeBSD 8 later.
Currently only FreeBSD 7.2 is supported.
 
eMxyzptlk said:
Hello,

I'm new to FreeBSD and this laptop (HP DV7-1199EF) has an intel 5100 which is currently unsupported by FreeBSD.

I bought a Linksys WUSB54GV Ver. 3, it has a rt2870 chipset, and I'm trying to install it on 8.0-BETA, but I can't compile it, does this driver works for 8-BETA?

Thanks

Are you sure this NIC has rt2870 chip ? I think it has rt3070.
 
I think it has rt2870 at least that what I get on linux ( not tested, but when I plug it in, in dmesg I see it looking for rt2870.bin firmware file.

How can we confirm what ship it has ?
 
eMxyzptlk said:
I think it has rt2870 at least that what I get on linux ( not tested, but when I plug it in, in dmesg I see it looking for rt2870.bin firmware file.

How can we confirm what ship it has ?

You can try my driver with FreeBSD 7.2 (if it works then it has rt2870) or
you can determine which driver is loaded on linux.

rt3070 is very similar to rt2870. I could implement it but i have no device to test it.
 
You might be right, it's a rt3070 device

http://ubuntuforums.org/showthread.php?t=1273401

Problem is I can't test on FreeBSD 7.2, because This computer does not boot any FreeBSD OS without disabling Firewire in the kernel first so I can't boot from CD, I had to install FreeBSD on an external Hard Disk on one of my friend's computer, disable firewire, rebuild the kernel and boot from it... Currently I don't have FreeBSd installed on my computer because I work 6/7 days on the same PC and I can't switch to FreeBSD (currently on ArchLinux) without being sure a 100% some sort of wireless network is accessible, so I bought this device yesterday in hope it will be the pickup untill iwl5100 works..

http://lists.freebsd.org/pipermail/freebsd-acpi/2009-July/005924.html

Your drivers do not compile on FreeBSD 8, so what next? should I re-install 7.2 just to test?
 
Following that ubuntu forums link allowed me to make this USB stick work under linux, I will try to get FreeBSD 7.2 on the HDD and test it.
 
eMxyzptlk said:
Following that ubuntu forums link allowed me to make this USB stick work under linux, I will try to get FreeBSD 7.2 on the HDD and test it.

Which driver does work on Linux with your NIC ?
 
eMxyzptlk said:
The RT3070USB(RT307x) driver.

My driver will not work with your NIC.
Did you try if_run driver here:

http://forums.freebsd.org/showthread.php?t=7562

Try it, i think it supports rt3070 chip.

I could develop a driver for rt3070 but i have no device to test.
Or i could develop a driver and you could test it if you want ? Step after step.
At first monitor mode, then sending and so on.
It is really very similar to rt2870 (rt2860 is also very similar to rt2870 and i already have a driver for rt2860 with monitor mode). If you have time we could work together.
 
Good news, guys.
QoS(WME) is finally working with rt2870 chip.
It was an important step towards 802.11n because
QoS is mandatory in 802.11n !!!

I'm currently working on 802.11n mode for rt2870 chip.

Tx fragmentation is also not working yet. It's the next step.

:e :e :e
 
Back
Top