CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Issues related to configuring your network
Post Reply
StariBrko
Posts: 27
Joined: 2012/08/24 12:35:50

CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by StariBrko » 2012/11/02 14:19:24

I obtained TP-LINK USB NIC model TL-WN322G v3 (made in China)
(supposedly based on Atheros AR9271 chipset)

vendor id: 0cf3
product id: 1006

on ELRepo DevicesID page I did not find appropriate driver, but i found package ath9k_htc-firmware-1.3-1.el6.elrepo.noarch
and installed it using yum.


what else should i do in order to make this NIC working?

thanx for help.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by AlanBartlett » 2012/11/02 23:47:46

Unfortunately it seems as if there is not a kmod package currently available, to provide the device driver for that particular device.

However it does appear to be supported by a driver in the latest [url=http://elrepo.org/tiki/kernel-ml]kernel-ml[/url] package that is available from the [url=http://elrepo.org]ELRepo Project[/url] --

[code]
[ajb@Duo2 ~]$ rpm -qa kernel\* | grep -vE 'dev|fir|hea' | sort
kernel-2.6.32-220.23.1.el6.x86_64
kernel-2.6.32-279.11.1.el6.x86_64
kernel-ml-3.6.5-1.el6.elrepo.x86_64
[ajb@Duo2 ~]$ grep -i 0cf3 /lib/modules/*/modules.alias | grep -i 1006
/lib/modules/3.6.5-1.el6.elrepo.x86_64/modules.alias:alias usb:v0CF3p1006d*dc*dsc*dp*ic*isc*ip*in* ath9k_htc
[ajb@Duo2 ~]$
[/code]

StariBrko
Posts: 27
Joined: 2012/08/24 12:35:50

Re: CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by StariBrko » 2012/11/05 12:50:03

Alan, thanx for the answer!

i managed to install kernel-ml package from ELRepo Project
when executed on my machine, commands you showed in your reply return the same.

[code]
# rpm -qa kernel\* | grep -vE 'dev|fir|hea' | sort
kernel-2.6.32-279.9.1.el6.x86_64
kernel-2.6.32-279.el6.x86_64
kernel-ml-3.6.5-1.el6.elrepo.x86_64
# grep -i 0cf3 /lib/modules/*/modules.alias | grep -i 1006
/lib/modules/3.6.5-1.el6.elrepo.x86_64/modules.alias:alias usb:v0CF3p1006d*dc*dsc*dp*ic*isc*ip*in* ath9k_htc
[/code]

nevertheless, this usb wireless card still remains "dead".

command:
[code]# ifconfig[/code]
returns details for eth0 and lo ONLY.


am i missing something or this one won't work at all?

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by AlanBartlett » 2012/11/06 01:01:36

So that is a semi-success. ;-)

How do you control the network on that system? With [b]NetworkManager[/b] or the [b]network[/b] service? I am asking because I wonder if you have yet to correctly configure the device.

Please bear in mind that I do not possess the device to be able to check but I wonder if you now need some firmware for the device? Let's make another check (I've now got another two kernels installed.) --

[code]
[ajb@Duo2 ~]$ rpm -qa kernel\* | grep -vE 'dev|fir|hea' | sort
kernel-2.6.32-279.11.1.el6.x86_64
kernel-lt-3.0.50-1.el6.elrepo.x86_64
kernel-ml-3.6.5-1.el6.elrepo.x86_64
kernel-ml-3.7.0-0.rc4.el6.elrepo.x86_64
[ajb@Duo2 ~]$ grep -i 0cf3 /lib/modules/*/modules.alias | grep -i 1006
/lib/modules/3.0.50-1.el6.elrepo.x86_64/modules.alias:alias usb:v0CF3p1006d*dc*dsc*dp*ic*isc*ip* ath9k_htc
/lib/modules/3.6.5-1.el6.elrepo.x86_64/modules.alias:alias usb:v0CF3p1006d*dc*dsc*dp*ic*isc*ip*in* ath9k_htc
/lib/modules/3.7.0-0.rc4.el6.elrepo.x86_64/modules.alias:alias usb:v0CF3p1006d*dc*dsc*dp*ic*isc*ip*in* ath9k_htc
[ajb@Duo2 ~]$ locate ath9k_htc
/lib/modules/3.0.50-1.el6.elrepo.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
/lib/modules/3.6.5-1.el6.elrepo.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
/lib/modules/3.7.0-0.rc4.el6.elrepo.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
[ajb@Duo2 ~]$ for K in $(locate ath9k_htc); do modinfo -F firmware $K; echo; done
htc_9271.fw
htc_7010.fw

htc_9271.fw
htc_7010.fw

htc_9271.fw
htc_7010.fw

[ajb@Duo2 ~]$ locate htc_9271.fw
[ajb@Duo2 ~]$ locate htc_7010.fw
[ajb@Duo2 ~]$
[/code]
So the question is, do you have either the [b]htc_9271.fw[/b] or the [b]htc_7010.fw[/b] firmware installed?

StariBrko
Posts: 27
Joined: 2012/08/24 12:35:50

Re: CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by StariBrko » 2012/11/09 12:06:13

i suppose yes.
here is what i get as reply from the system:

[code]
[admin@mymachine ~]# locate htc_9271.fw
/lib/firmware/htc_9271.fw
[admin@mymachine ~]# locate htc_7010.fw
/lib/firmware/htc_7010.fw
[/code]

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by AlanBartlett » 2012/11/09 23:49:13

This is very peculiar. You have both firmware packages present, yet the driver still fails to control the device.

[code]
[ajb@Duo2 ~]$ locate ath9k_htc
/lib/modules/3.0.51-2.el6.elrepo.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
/lib/modules/3.6.6-1.el6.elrepo.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
/lib/modules/3.7.0-0.rc4.el6.elrepo.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
[ajb@Duo2 ~]$ modinfo /lib/modules/3.0.51-2.el6.elrepo.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
filename: /lib/modules/3.0.51-2.el6.elrepo.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
firmware: htc_9271.fw
firmware: htc_7010.fw
description: Atheros driver 802.11n HTC based wireless devices
license: Dual BSD/GPL
author: Atheros Communications
srcversion: EFEAF0874FCF7DB291B8661
alias: usb:v0CF3p20FFd*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApA704d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0846p9018d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0CF3p7010d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1668p1200d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0CF3p7015d*dc*dsc*dp*ic*isc*ip*
alias: usb:v057Cp8403d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0CF3pB003d*dc*dsc*dp*ic*isc*ip*
alias: usb:v040Dp3801d*dc*dsc*dp*ic*isc*ip*
alias: usb:v04CAp4605d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3350d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3349d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3348d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3346d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3328d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3327d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3A10d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0846p9030d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0CF3p1006d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0CF3p9271d*dc*dsc*dp*ic*isc*ip*
depends: [color=0000ff]ath9k_hw,mac80211,ath9k_common,ath,cfg80211[/color]
vermagic: 3.0.51-2.el6.elrepo.x86_64 SMP mod_unload modversions
parm: debug:Debugging mask (uint)
parm: nohwcrypt:Disable hardware encryption (int)
[ajb@Duo2 ~]$
[/code]
After a 'cold boot' of the system, please attempt a --

[code]
[b]modprobe ath9k_htc[/b]
[/code]
Then check to see if the modules upon which it depends, above, are loaded by --

[code]
[b]lsmod | grep -E 'ath9k_htc|ath9k_hw|mac80211|ath9k_common|ath|cfg80211'[/b]
[/code]

StariBrko
Posts: 27
Joined: 2012/08/24 12:35:50

Re: CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by StariBrko » 2012/11/12 12:28:36

hi alan,
this is what i got after cold restart:

[code]
[admin@mymachine ~]# modprobe ath9k_htc
FATAL: Module ath9k_htc not found.
[admin@mymachine ~]# lsmod | grep -E 'ath9k_htc|ath9k_hw|mac80211|ath9k_common|ath|cfg80211'
[admin@mymachine ~]#
[/code]

you will probably pull some conclusions out of this that will result with continued exchange of messages regarding the topic.

nevertheless, since the primary idea was just an exercise to find out a proper way of dealing with usb devices on centos,
i will try to find an usb device that is already proven on centos.


so, in order not to bother you with this chinese piece of ... hi-tech equipment any more,
i decided to solve this issue with a 10 pound sledge hammer.


thanx for your help,
and best regards

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by AlanBartlett » 2012/11/12 18:57:04

[quote]
so, in order not to bother you with this chinese piece of ... hi-tech equipment any more,
i decided to solve this issue with a 10 pound sledge hammer.
[/quote]
A bit drastic, as I'm sure we could have probably got it working -- eventually. :-o

StariBrko
Posts: 27
Joined: 2012/08/24 12:35:50

Re: CentOS 6.3 driver needed for USB NIC TL-WN322G v3

Post by StariBrko » 2012/11/14 08:01:17

... well... eventually...

got it working in the meantime...
not as NIC though.
it's a nice&modern piece of decoration.

i think we should mark this thread as TERMINATED.

cheers

Post Reply