You are not logged in.
I have bought TP-Link TL-WN422G usb wireless adapter. By mistake I took ver.2, which uses Atheros AR9271 chipset. That chipset is still not supported by linux. It uses ath9k_htc driver which is stilll under development.
http://wireless.kernel.org/en/users/Drivers/ath9k_htc
Ok, I use .33 kernel, and device is listed on dmesg and lsusb. But there is network interface that uses it.
I want to say that ifconfig does not show that interface.
Does it mean that driver is loaded but something is wrong with it, or it is not loaded at all, becouse it is not in kernel.
Please help me with this.
Offline
As suggested on the page you linked to, you could use compat-wireless to get the driver.
If you can't see the interface with iwconfig and ifconfig -a, you're out of luck IMO. What does dmesg say about it under .33?
Offline
dmesg
usb 2-3: USB disconnect, address 7
usb 2-3: new high speed USB device using ehci_hcd and address 9
usb 2-3: USB disconnect, address 9
usb 2-3: new high speed USB device using ehci_hcd and address 10
lsusb
Bus 002 Device 010: ID 0cf3:1006 Atheros Communications, Inc.
Compat-wireless in AUR is for older kernels, for .31 or older.
Last edited by ammon (2010-03-31 16:26:59)
Offline
And it's flagged out-of-date, and it's orphaned.
So clearly, I was not suggesting that you use that specific version. Build a current compat-wireless package, either by updating the AUR PKGBUILD, or writing your own.
Your dmesg and lsusb outputs show your system reacting correctly to a new USB device, but nothing beyond that.
Offline
I've been working on pkgbuild of compat-wireless for .33 kernel. But I have some troubles, can you help me out?
pkgname=compat-wireless-latest
_kernver=`uname -r`
pkgver=20100404
pkgrel=1
pkgdesc="Snapshots of the wireless-testing tree"
url="http://linuxwireless.org"
depends=('kernel26>=2.6.27' 'kernel26<2.6.33')
arch=('i686' 'x86_64')
license=('GPL')
install=$pkgname.install
source=(
#http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
http://www.orbit-lab.org/kernel/compat-wireless-2.6/compat-wireless-2010-04-04.tar.bz2)
md5sums=(513b3a6e6ff2f69b14e9a252138b9c8a)
build() {
cd ${startdir}/src/compat-wireless-2010-04-04
echo -ne "CONFIG_IWL3945_LEDS=y\nCONFIG_IWLWIFI_LEDS=y\nCONFIG_MAC80211_LEDS=y\n" >> config.mk
make KLIB=/lib/modules/$(uname -r) INSTALL_MOD_PATH=${startdir}/pkg install-modules || return 1
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}
It works for some time, then it stops at this:
make[5]: *** [/data/myabs/compat-wireless/src/compat-wireless-2010-04-04/drivers/net/wireless/ath/ath9k/xmit.o] Error 1
make[5]: *** Waiting for unfinished jobs....
CC [M] /data/myabs/compat-wireless/src/compat-wireless-2010-04-04/drivers/net/wireless/ath/ath9k/virtual.o
make[4]: *** [/data/myabs/compat-wireless/src/compat-wireless-2010-04-04/drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [/data/myabs/compat-wireless/src/compat-wireless-2010-04-04/drivers/net/wireless/ath] Error 2
make[2]: *** [/data/myabs/compat-wireless/src/compat-wireless-2010-04-04/drivers/net/wireless] Error 2
make[1]: *** [_module_/data/myabs/compat-wireless/src/compat-wireless-2010-04-04] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.33-ck'
make: *** [modules] Error 2
Last edited by ammon (2010-04-05 18:51:39)
Offline
I gave up on pkgbuild, still have problems compiling compat-wireless.
/data/myabs/compat-wireless-2010-04-09/drivers/net/b44.c:13:1: warning: "pr_fmt" redefined
In file included from include/linux/skbuff.h:17,
from include/linux/if_ether.h:124,
from include/linux/netdevice.h:29,
from /data/myabs/compat-wireless-2010-04-09/include/linux/compat-2.6.34.h:8,
from /data/myabs/compat-wireless-2010-04-09/include/linux/compat-2.6.h:29,
from <command-line>:0:
include/linux/kernel.h:365:1: warning: this is the location of the previous definition
/data/myabs/compat-wireless-2010-04-09/drivers/net/b44.c: In function '__b44_load_mcast':
/data/myabs/compat-wireless-2010-04-09/drivers/net/b44.c:1689: warning: assignment from incompatible pointer type
/data/myabs/compat-wireless-2010-04-09/drivers/net/b44.c:1689: error: 'struct netdev_hw_addr' has no member named 'next'
make[3]: *** [/data/myabs/compat-wireless-2010-04-09/drivers/net/b44.o] Error 1
make[2]: *** [/data/myabs/compat-wireless-2010-04-09/drivers/net] Error 2
make[1]: *** [_module_/data/myabs/compat-wireless-2010-04-09] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.33-ARCH'
make: *** [modules] Error 2
Offline
it's a bug in all april versions of compat-wireless. i'am going to file a bug report about this issue. The good thing is: this version builds fine: http://wireless.kernel.org/download/com … 28.tar.bz2 I can not tell you if it works though.
BUT I would strongly encourage you to use a pkgbuild! Some suggestions for the pkgbuild you posted above:
#include kernel 2.6.33
depends=('kernel26>=2.6.27' 'kernel26<=2.6.33')
# i dont know what this line is needed for, but i think you dont need it
echo -ne CONFIG_IWL3945_LEDS=y\nCONFIG_IWLWIFI_LEDS=ynCONFIG_MAC80211_LEDS=y\n" >> config.mk
#instead just select the driver you want to build
scripts/driver-select ath9k_htc
# then make...
Offline
I guess I have to change something else in PKGBUILD...
make -C /lib/modules/2.6.33-ck/build M=/data/myabs/compat-wireless/src/compat-wireless-2010-03-28 "INSTALL_MOD_DIR=updates" "INSTALL_MOD_PATH=/lib/modules/2.6.33-ck" \
modules_install
make[1]: Entering directory `/usr/src/linux-2.6.33-ck'
mkdir: cannot create directory `/lib/modules/2.6.33-ck/lib': Permission denied
make[1]: *** [_emodinst_] Error 1
make[1]: Leaving directory `/usr/src/linux-2.6.33-ck'
make: *** [install-modules] Error 2
It tries to install modules in /lib/modules, how to change this. To only build the package, and let pacman take care of placing them in modules.
This is the pkgbuild:
pkgname=compat-wireless
_kernver=`uname -r`
pkgver=20100328
pkgrel=1
pkgdesc="Snapshots of the wireless-testing tree"
url="http://linuxwireless.org"
#depends=('kernel26>=2.6.27' 'kernel26=2.6.33')
arch=('i686' 'x86_64')
license=('GPL')
install=$pkgname.install
source=(http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-03-28.tar.bz2)
md5sums=(e660b59df312e39c74f7e3d768c83173)build() {
cd ${startdir}/src/compat-wireless-2010-03-28/
scripts/driver-select ath9k_htc
make KLIB=/lib/modules/$(uname -r) INSTALL_MOD_PATH=${startdir}/pkg install-modules || return 1
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}
I used .install from AUR compat-wireless for .31
# arg 1: the new package version
post_install()
{
KERNEL_VERSION=''
depmod -v $KERNEL_VERSION > /dev/null 2>&1
}# arg 1: the new package version
# arg 2: the old package version
post_upgrade()
{
KERNEL_VERSION=''
depmod -v $KERNEL_VERSION > /dev/null 2>&1
}# arg 1: the old package version
post_remove()
{
KERNEL_VERSION=''
depmod -v $KERNEL_VERSION > /dev/null 2>&1
}op=$1
shift$op $*
Offline
build() { {...} make KLIB=/lib/modules/$(uname -r) INSTALL_MOD_PATH=${startdir}/pkg install-modules || return 1 }
make -C /lib/modules/2.6.33-ck/build M=/data/myabs/compat-wireless/src/compat-wireless-2010-03-28 "INSTALL_MOD_DIR=updates" "INSTALL_MOD_PATH=/lib/modules/2.6.33-ck" \ modules_install
i really can't tell you what is happing there. Hopefully someone else can say anything.
Offline