Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I fail to install a TL-WN821N version 2 USB WLAN dongle
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 79

PostPosted: Sun Jan 20, 2013 11:25 am    Post subject: I fail to install a TL-WN821N version 2 USB WLAN dongle Reply with quote

I want to install a TP-LINK TL-WN821N version 2 USB WLAN dongle in my x86_64 3.6.11-gentoo Kernel.

I used to successfully installed that dongle in another Gentoo laptop. I think the only difference is just that system is 32-bit based.

Now I want to move it from my Gentoo laptop to this Gentoo server, but I failed. The main error message is:

"[ 3.164325] usb 1-1.6: firmware not found."

But I really ever emerged linux-firmware and the lib folder is:
#ls /lib/firmware
ar9170-1.fw
ar9170-2.fw

And other key message as below:

#dmesg
......
[ 2.972674] usb 1-1.6: udev 3, busnum 1, minor = 2
[ 2.972677] usb 1-1.6: New USB device found, idVendor=0cf3, idProduct=1002
[ 2.972678] usb 1-1.6: New USB device strings: Mfr=16, Product=32, SerialNumb
er=48
[ 2.972679] usb 1-1.6: Product: USB2.0 WLAN
[ 2.972680] usb 1-1.6: Manufacturer: ATHER
[ 2.972681] usb 1-1.6: SerialNumber: 12345
[ 2.972773] usb 1-1.6: usb_probe_device
[ 2.972775] usb 1-1.6: configuration #1 chosen from 1 choice
[ 2.972925] usb 1-1.6: adding 1-1.6:1.0 (config #1, interface 0)
[ 2.972954] carl9170 1-1.6:1.0: usb_probe_interface
[ 2.972956] carl9170 1-1.6:1.0: usb_probe_interface - got id
[ 2.985198] hub 1-1:1.0: port 6 not reset yet, waiting 10ms
[ 2.993787] EXT4-fs (sda3): re-mounted. Opts: (null)
[ 3.045397] Adding 2097148k swap on /dev/sda2. Priority:-1 extents:1 across:
2097148k SS
[ 3.047174] usb 1-1.6: reset high-speed USB device number 3 using ehci_hcd
[ 3.068004] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:
(null)
[ 3.071864] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts:
(null)
[ 3.162676] hub 2-1:1.0: state 7 ports 6 chg 0000 evt 0000
[ 3.162682] hub 1-1:1.0: state 7 ports 6 chg 0000 evt 0040
[ 3.164325] usb 1-1.6: firmware not found.
[ 3.164331] usb 1-1.6: unregistering interface 1-1.6:1.0
[ 3.164410] usb 1-1.6: link qh0-00ff/ffff8802149ad380 start 0 [2/0 us]
[ 3.164790] usb 1-1.6: unlink qh0-00ff/ffff8802149ad380 start 0 [2/0 us]
[ 3.164808] usb 1-1.6: usb_disable_device nuking non-ep0 URBs

# lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0cf3:1002 Atheros Communications, Inc. TP-Link TL-WN821N
v2 802.11n [Atheros AR9170]

Atheros Wireless Cards qqqqqqqqqqqqqqqqqqqqqqqqqk
x Arrow keys navigate the menu. <Enter> selects submenus --->. x
x Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, x
x <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> x
x for Search. Legend: [*] built-in [ ] excluded <M> module < > x
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x --- Atheros Wireless Cards x x
x x [ ] Atheros wireless debugging x x
x x [ ] Atheros 5xxx wireless cards support x x
x x [ ] Atheros 5xxx PCI bus support x x
x x [ ] Atheros 802.11n wireless cards support x x
x x [ ] Atheros HTC based wireless cards support x x
x x [*] Linux Community AR9170 802.11n USB support x x
x x [*] SoftLED Support x x

Who can tell me why I failed to install this USB dongle in the new machine?
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2643
Location: Slovenia

PostPosted: Sun Jan 20, 2013 11:38 am    Post subject: Reply with quote

As always: Either compile the driver as a module (you currently have it built-in), or also compile the firmware into the kernel.

Also, you don't have the correct firmware. Get the correct one here: http://linuxwireless.org/en/users/Drivers/carl9170#Firmware-1
Back to top
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 79

PostPosted: Sun Jan 20, 2013 1:26 pm    Post subject: Reply with quote

Thanks!

Now I downloaded the new firmware as your introduction and I successfully let the system recognize the WLAN USB dongle. And I successfully make it up.

I don't know how to make the firmware complied into the kernel, I just put it in the /lib64/firmware and then almost everything goes well.

But now I still have a trouble disturbing me. That is now the WLAN USB dongle cannot be up during the booting. Indeed, before I was using a Linksys USB dongle as the uplink of my server. The Linksys USB dongle also cannot be up during the booting procedure. That's why I change it to the TP-link USB dongle. I want to check if it is the hardware issue. And now I can prove it is not due to the hardware issue. I can use rc -s net.wlan1 start to make the USB dongle up whatever it is TP-link or Linksys one.

It seems this issue came out after I try to install Postfix and Dovecot. Before I have nginx+php+mysql and at that time, everything is OK.

I don't know why now the USB dongle cannot be loaded automatically during the booting time.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2643
Location: Slovenia

PostPosted: Sun Jan 20, 2013 1:37 pm    Post subject: Reply with quote

Did you compile the driver as a module? Though there's one thing: I have a different TP-LINK dongle, using a different driver, and mine too fails to load properly if it's present at boot. I thought it's just something weird with my machine, but now it seems it's a common problem.

Do this: Install wgetpaste. Reboot the machine with the dongle plugged in. After the machine boots, run
Code:
dmesg | wgetpaste

and post the link here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum