214f2 [Solved] urtw0: unknown RTL8187L type: 0x8000000 - The FreeBSD Forums
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
  #1  
Old January 17th, 2011, 01:53
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default urtw0: unknown RTL8187L type: 0x8000000

Trying about a year now, but my box is impossible to detect my wifi.

dmesg | grep "urtw"

Code:
urtw0: <vendor 0x0bda product 0x8187, class 0/0, rev 2.00/1.00, addr 2> on usbus3
urtw0: unknown RTL8187L type: 0x8000000
urtw0: rtl8187l rf rtl8225u hwrev none
My /boot/loader.conf

Code:
if_urtw_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
My /etc/rc.conf

Code:
wlans_urtw0="wlan0"
ifconfig_wlan0="WPA DHCP"
My ifconfig -a

Code:
urtw0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
	ether 00:15:af:1a:ab:c6
	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:15:af:1a:ab:c6
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
	status: no carrier
	ssid "" channel 6 (2437 MHz 11g)
	country US authmode WPA1+WPA2/802.11i privacy ON deftxkey UNDEF
	txpower 0 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250
	roam:rssi 7 roam:rate 5 protmode CTS roaming MANUAL bintval 0
What I missed? Should work!
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416

Last edited by sk8harddiefast; January 18th, 2011 at 15:41.
Reply With Quote
  #2  
Old January 17th, 2011, 03:46
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,701
Thanks: 429
Thanked 1,757 Times in 1,456 Posts
Default

The unknown type error might not be a problem, just a warning.

WEP, CCMP, and TKIP should all be in the GENERIC kernel, don't need to be loaded unless you've got a custom kernel without them.

You don't show /etc/wpa_supplicant.conf. Otherwise, looks like it's working. Does
% ifconfig wlan0 list scan
show any access points?
Reply With Quote
  #3  
Old January 17th, 2011, 13:24
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

I use custom kernel but I have them as option on it

MYKERNEL
Code:
# Wireless NIC cards
device		wlan		# 802.11 support
options 	IEEE80211_DEBUG	# enable debug msgs
options 	IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
device		wlan_wep	# 802.11 WEP support
device		wlan_ccmp	# 802.11 CCMP support
device		wlan_tkip	# 802.11 TKIP support
device		wlan_amrr	# AMRR transmit rate control algorithm
My /etc/wpa_supplicant.conf
Code:
network={
  ssid="Ember's Network"
  scan_ssid=1
  proto=WPA
  pairwise=CCMP TKIP
  key_mgmt=WPA-PSK
  psk="freebsd8"
}
just copied it from here and changed the key.

ifconfig wlan0 list scan
Code:
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
awmn-7817       00:02:6f:38:0a:95    2    1M  47:38   100 E   
OTE             00:15:56:b5:df:ef    6   54M  77:68   100 EPSB
The same networks see my iphone too. That's means that woorking? Why say no carrier?
PS: I want to make it as access point for my iphone.
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
  #4  
Old January 17th, 2011, 13:42
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

Wpa_supplicant is for wireless clients. If you want to set up an access point using FreeBSD you need to use hostapd(8).
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
sk8harddiefast (January 17th, 2011)
  #5  
Old January 17th, 2011, 14:00
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

A! ok! I will read it right now. I was not knowing this. I am completely noob on networks!
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
  #6  
Old January 17th, 2011, 14:24
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

My /etc/hostapd.conf
Code:
interface=urtw0
driver=urtw
logger_syslog=3
logger_syslog_level=3
logger_stdout=3
logger_stdout_level=3
debug=3
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=Ember's Network
macaddr_acl=0
auth_algs=3
eapol_key_index_workaround=0
own_ip_addr=192.168.0.1
wpa=1
wpa_passphrase=freebsd8wifi
wpa_key_mgmt=WPA-PSK WPA-EAP
wpa_pairwise=TKIP CCMP
But tells me that cannot understand the second line with the driver.
Also remove wpa_supplicant.conf or I need it?
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
  #7  
Old January 17th, 2011, 15:05
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

I don't think you need that line. And yes, you can remove wpa_supplicant.conf.

Handbook: 31.3.5 FreeBSD Host Access Points
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #8  
Old January 17th, 2011, 15:16
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

OK. I removed wpa_supplicant.conf file.
According this I changed /etc/hostapd.conf file to

Code:
interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=Ember's Network
wpa=1
wpa_passphrase=freebsd8wifi
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
But:

/etc/rc.d/hostapd forcestart
Code:
Starting hostapd.
Configuration file: /etc/hostapd.conf
1 errors found in configuration file '/etc/hostapd.conf'
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
  #9  
Old January 17th, 2011, 15:28
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

It's probably tripping on the quote (') in the SSID's name.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #10  
Old January 17th, 2011, 15:31
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

No. I deleted the quote but returned me the same error
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
  #11  
Old January 17th, 2011, 16:07
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

I can't see anything wrong with it. It looks exactly the same as in the handbook. If you copy and pasted it there might be some trailing (non-printable ASCII) characters attached?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #12  
Old January 17th, 2011, 16:21
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

Yeap. I made copy / paste. I will write it again and I will post the result.
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
  #13  
Old January 17th, 2011, 19:42
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,819
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

You can always test a script by running it like sh -x /etc/rc.d/whatever and sh -xv /etc/rc.d/whatever remember ..
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #14  
Old January 17th, 2011, 21:11
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

Quote:
I can't see anything wrong with it. It looks exactly the same as in the handbook. If you copy and pasted it there might be some trailing (non-printable ASCII) characters attached
You had right!
Now:
Code:
Starting hostapd.
Configuration file: /etc/hostapd.conf
bsd_init: interface wlan0  does not existbsd driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
I guess I must add driver line.
I tried driver=bsd or driver=urtw but didn't work!

Quote:
You can always test a script by running it like sh -x /etc/rc.d/whatever and sh -xv /etc/rc.d/whatever remember ..
I am thinking to create a simple script to restart network. etc/rc.d/whatever restart everytime can be done easier
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416

Last edited by sk8harddiefast; January 17th, 2011 at 23:22.
Reply With Quote
  #15  
Old January 18th, 2011, 02:12
tingo tingo is offline
Member
 
Join Date: Nov 2008
Location: Oslo, Norway
Posts: 825
Thanks: 133
Thanked 82 Times in 68 Posts
Default

For me, # /etc/rc.d/netif restart works for restarting the network on a FreeBSD machine. YMMV.
__________________
Torfinn
Reply With Quote
  #16  
Old January 18th, 2011, 08:29
bschmidt bschmidt is offline
Member
 
Join Date: Oct 2009
Location: Schwandorf, Germany
Posts: 298
Thanks: 0
Thanked 39 Times in 28 Posts
Default

Quote:
Originally Posted by sk8harddiefast View Post
You had right!
Now:
Code:
Starting hostapd.
Configuration file: /etc/hostapd.conf
bsd_init: interface wlan0  does not existbsd driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
That means you didn't create the virtual interface (wlan0) before starting the hostapd. Try this:
# ifconfig wlan0 create wlandev urtw0 wlanmode ap
# hostapd -B /etc/hostapd.conf
Reply With Quote
  #17  
Old January 18th, 2011, 12:49
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

ifconfig wlan0 create wlandev urtw0 wlanmode ap
Return to me:
Code:
ifconfig: create: bad value
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416

Last edited by DutchDaemon; January 18th, 2011 at 16:55.
Reply With Quote
  #18  
Old January 18th, 2011, 13:35
bschmidt bschmidt is offline
Member
 
Join Date: Oct 2009
Location: Schwandorf, Germany
Posts: 298
Thanks: 0
Thanked 39 Times in 28 Posts
Default

Quote:
Originally Posted by sk8harddiefast View Post
ifconfig wlan0 create wlandev urtw0 wlanmode ap
Return to me:
Code:
ifconfig: create: bad value
Well, I've just read the urtw code a bit, seems like urtw(4) does NOT support hostapd mode currently. So you're out of luck with that device anyways.. if you really want to give some untested hack a try, have a look at kern/153454.

Last edited by bschmidt; January 18th, 2011 at 14:10. Reason: typo
Reply With Quote
  #19  
Old January 18th, 2011, 13:49
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,721
Thanks: 215
Thanked 142 Times in 88 Posts
Default

That's a good reason that I never made it. Ok. I will wait an update of the driver that will support hostapd. For now is solved.
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
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
[Solved] lsof : Unknown architecture burkoff Installation and Maintenance of FreeBSD Ports or Packages 10 January 11th, 2012 08:56
Netgear(WG111v2) WiFi USB adapter with RTL8187L Seeker Peripheral Hardware 14 November 21st, 2011 06:38
unknown using hard drive feriz GNOME 4 December 3rd, 2010 01:24
Unknown modifier 'u' using pkg_version hansaplast Installation and Maintenance of FreeBSD Ports or Packages 2 February 1st, 2010 12:23
[Solved] (grub) FBSD + WinXP - Filesystem type unknown thehobbit Installing & Upgrading 10 December 18th, 2009 05:49


All times are GMT +1. The time now is 08:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
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.
Web protection and acceleration provided by CloudFlare
0