The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Peripheral Hardware

Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc.

Reply
 
Thread Tools Display Modes
  #26  
Old November 4th, 2009, 22:36
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by NAC View Post
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 ?

Last edited by egorenar; November 4th, 2009 at 22:42.
Reply With Quote
  #27  
Old November 4th, 2009, 22:52
NAC NAC is offline
Junior Member
 
Join Date: Oct 2009
Posts: 34
Thanks: 8
Thanked 0 Times in 0 Posts
Default

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"
Reply With Quote
  #28  
Old November 4th, 2009, 23:02
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by NAC View Post
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.
Reply With Quote
  #29  
Old November 4th, 2009, 23:09
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by NAC View Post
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"
Reply With Quote
  #30  
Old November 4th, 2009, 23:11
NAC NAC is offline
Junior Member
 
Join Date: Oct 2009
Posts: 34
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by egorenar View Post
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
Reply With Quote
  #31  
Old November 4th, 2009, 23:14
NAC NAC is offline
Junior Member
 
Join Date: Oct 2009
Posts: 34
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by egorenar View Post
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
Reply With Quote
  #32  
Old November 4th, 2009, 23:17
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by NAC View Post
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

Last edited by egorenar; November 4th, 2009 at 23:25.
Reply With Quote
  #33  
Old November 4th, 2009, 23:44
NAC NAC is offline
Junior Member
 
Join Date: Oct 2009
Posts: 34
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by egorenar View Post
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
Reply With Quote
  #34  
Old November 4th, 2009, 23:55
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Talking

Quote:
Originally Posted by NAC View Post
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.
Reply With Quote
The Following User Says Thank You to egorenar For This Useful Post:
NAC (November 4th, 2009)
  #35  
Old November 4th, 2009, 23:58
NAC NAC is offline
Junior Member
 
Join Date: Oct 2009
Posts: 34
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by egorenar View Post
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
Reply With Quote
  #36  
Old November 4th, 2009, 23:58
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by NAC View Post
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 !!!

Reply With Quote
  #37  
Old November 5th, 2009, 00:01
NAC NAC is offline
Junior Member
 
Join Date: Oct 2009
Posts: 34
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by egorenar View Post
Copy rt2870.ko to /boot/kernel/
and edit /boot/loader.conf

Code:
rt2870_load="YES"
I have not tested it !!!

i do try it! but seems need to unplug NIC 1st and re-plug it! ha
Reply With Quote
  #38  
Old November 5th, 2009, 20:32
eMxyzptlk eMxyzptlk is offline
Junior Member
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #39  
Old November 5th, 2009, 21:07
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by eMxyzptlk View Post
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.
Reply With Quote
  #40  
Old November 5th, 2009, 21:21
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by eMxyzptlk View Post
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.
Reply With Quote
  #41  
Old November 6th, 2009, 13:23
eMxyzptlk eMxyzptlk is offline
Junior Member
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 ?
Reply With Quote
  #42  
Old November 6th, 2009, 16:14
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by eMxyzptlk View Post
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.
Reply With Quote
  #43  
Old November 6th, 2009, 19:39
eMxyzptlk eMxyzptlk is offline
Junior Member
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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/f...ly/005924.html

Your drivers do not compile on FreeBSD 8, so what next? should I re-install 7.2 just to test?
Reply With Quote
  #44  
Old November 6th, 2009, 23:06
eMxyzptlk eMxyzptlk is offline
Junior Member
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #45  
Old November 7th, 2009, 17:25
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by eMxyzptlk View Post
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 ?
Reply With Quote
  #46  
Old November 7th, 2009, 18:53
eMxyzptlk eMxyzptlk is offline
Junior Member
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by egorenar View Post
Which driver does work on Linux with your NIC ?
The RT3070USB(RT307x) driver.
Reply With Quote
  #47  
Old November 7th, 2009, 20:50
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by eMxyzptlk View Post
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.

Last edited by egorenar; November 7th, 2009 at 20:55.
Reply With Quote
  #48  
Old November 7th, 2009, 20:58
eMxyzptlk eMxyzptlk is offline
Junior Member
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I will try the if_run tonight and report back..

Thanks
Reply With Quote
  #49  
Old November 9th, 2009, 23:12
eMxyzptlk eMxyzptlk is offline
Junior Member
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The if_run compiled fine on 8-RC2 but doesn't run http://forums.freebsd.org/showpost.p...4&postcount=32

I'd be happy to help, just PM me with links to download and I'll try them
Reply With Quote
  #50  
Old November 11th, 2009, 23:36
egorenar egorenar is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany, Stuttgart
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Talking

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.


Last edited by egorenar; November 12th, 2009 at 23:08.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pci usb 2.0 card serves as only usb 1.1 on Asus P4S333/c zeiz System Hardware 6 August 26th, 2009 03:21
copy usb OS mtnlyon001 Peripheral Hardware 5 August 21st, 2009 13:26
installing on USB kachukumma Installing & Upgrading 9 May 7th, 2009 02:36
How to install from USB-HD? jronald Installing & Upgrading 6 February 5th, 2009 10:49
D-Link DWA-520 Thunderbolt Peripheral Hardware 2 November 22nd, 2008 14:10


All times are GMT +1. The time now is 13:05.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.