SliTaz SliTaz Forum

You are not logged in.

#1 2011-09-06 18:57:06

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

some strange wifi questions for ALFA AWPCI085H supported by ath5k

the card works fine with openwrt, cruchbang, puredyne - for my OLA project I try to get it working with slitaz - no way. Everything looks good - but iwlist scan brings no results.

Exploring with my Portege R100 with "iwp2200" -  I just recognized, that WIFI works fine, as long as I do not stop a connected wifi connection. As soon as I stop the connection, I have the same effect, that iwlist scan gives no result until I reboot.

Very strange / perhaps somebody has any idea on this - the first attachment is from puredyne - thatone from slitaz will follow

Offline

#2 2011-09-06 19:29:57

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

ok here is that from slitaz (I used stable) - noticed, that there is no module ath, but cooking is the same result - but there is a module ath

Offline

#3 2011-10-09 17:45:11

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

I bought another ath5k card - TP-Link TL-WN350GD and it does not scan too and here the same thing

http://forum.slitaz.org/topic/tp-link-tl-wn551g-w-lan#post-3328

- maybe there is a bug in ath5k or I do not check something

mojo - you seem to have also an ath5k card and it seems to work?

Offline

#4 2011-10-09 19:54:28

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

@kultex

Sorry, no ath5k card here to test...

2.6.37-slitaz :

# depmod -a

# modprobe -l | grep ath.ko.gz

/lib/modules/2.6.37-slitaz/kernel/drivers/net/wireless/ath/ath.ko.gz

# modprobe ath5k

# lsmod | grep ath

ath5k                 111977  0

ath                     9811  1 ath5k

mac80211              145388  1 ath5k

cfg80211               99896  3 ath5k,ath,mac80211

Do this on 2.6.37-slitaz :

First xterm:

tail -f /var/log/messages

Second xterm:

#modprobe ath5k

What are the error messages?

Offline

#5 2011-10-10 07:20:13

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

I am not home so I cannot check, but what I know until now:

there are no errors in dmesg - I did not check var/log/messages

the problem seems to be, that ath is not loaded by ath5k - in the other distros ath is loaded automatically by ath5k.

it does not help to unload ath5k - load ath and reload ath5k, restart network.sh and bring wlan0 up again - same result.

I had no more time to try to put ath in the rcS.conf or to load the module on the boot promt - but I think it will not help - I think it is a bug.

This bug seems to exist since long, because in SliTaz 3.0 there was even no module ath

EDIT:  I just checked, that there are ath and ath5k in the linux-libre kernel - how do I change to linux-libre?

Offline

#6 2011-10-10 15:14:51

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

Reason why no ath in slitaz-3.0 kernel 2.6.30.6 :

CONFIG_ATH_COMMON found in Linux kernels: 2.6.31–2.6.39, 3.0, 3.1-rc+HEAD

http://cateee.net/lkddb/web-lkddb/ATH_COMMON.html

Offline

#7 2011-10-12 20:58:31

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

but is this an explanation why there is no ath in Slitaz - I mean in all other distros (puredyne is 2.6.31), there is ath combined with ath5k or better ath5k needs ath to work.

ok - I installed linux-libre, this was quite easy, but there are no modules to load - strange the linux-libre packages seem to be buggy too.

and then when I tried to install wireless compat, I foünd something, that is interesting:

Tools using wext interface like iwconfig (and I think iwlist too) will not work, because in kernel config config_wireless_ext=n  try a new kernel with config_libipw=m

what can I do to get it working?

Offline

#8 2011-10-13 02:39:06

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

CONFIG_ATH_COMMON found in Linux kernels: 2.6.31–2.6.39, 3.0, 3.1-rc+HEAD

The distro doesn't matter it's the kernel version that determines the compile options.

slitaz-3.0 has no ath module because it's kernel version 2.6.30.6 is less than 2.6.31

slitaz cooking has the ath module because it's kernel version 2.6.37 is greater than 2.6.31

puredyne has the ath module because it's kernel version 2.6.31 is equal to 2.6.31

Wireless modules for linux-libre kernel are in the linux-libre-wireless.tazpkg

The clean way to run linux-libre would be to download a flavor,edit it's package list.

Change linux to linux-libre

Use the package list to generate the linux-libre.iso with tazlito.

Tools using wext interface like iwconfig (and I think iwlist too) will not work, because in kernel config config_wireless_ext=n try a new kernel with config_libipw=m

Did you check the kernel config?

zcat /proc/config.gz | grep CONFIG_WIRELESS_EXT

Linux-libre-2.6.37-libre-slitaz.config:

http://hg.slitaz.org/wok/file/8c4ca972ab3c/linux-libre/stuff/linux-libre-2.6.37-libre-slitaz.config

Line 1033  CONFIG_WIRELESS_EXT=y

Ndiswrapper works on kernel 2.6.37 cooking.

Offline

#9 2011-10-13 08:02:29

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

sorry, my post yesterday was a bit to quick just after coming home

1) linux-libre.iso  I am working with the base.iso - so I just added the linux-libre kernel and linux-libre-wireless, removed linux and linux-wireless - added vmlinuz-2.6.37-libre-slitaz to /boot, changed menu.lst and and created a new rootfs.gz with tazusb

it boots - evrything looks fine, but the modules are not found - (cannot find ath in modules.dep)

so the problem is, that it looks for the modules in /lib/modules/2.6.37-slitaz/modules.dep and not in /lib/modules/2.6.37-libre-slitaz/modules.dep (for me that is a bug)

so I replaced all files in /lib/modules/2.6.37-slitaz/ by the files from /lib/modules/2.6.37-libre-slitaz/

now the modules are found - but there is another problem:

when I try to load ath there comes: rfkill: version magic "2.6.37-libre-slitaz SMP mod.unload 486" should be "2.6.37-libre-slitaz SMP mod.unload 386" - cannot load module rfkill: invalid module format

but the positive thing is, that modprobe ath5k seems to load ath, because the same error comes - so perhaps I try to replace rfkill from linux-libre with rfkill from linux

2) I tried to install wireless-compat on the normal base iso and theses make errors are very strange, because CONFIG_WIRELESS_EXT=y and also config_libipw=m - so I do not understand these make errors

and Ndiswrapper is no alternativ to the atheros drivers - I need for my ola project working linux wireless drivers

Offline

#10 2011-10-13 12:49:41

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

compat-wireless is compiling!!!  no idea what was wrong two days ago....

Offline

#11 2011-10-13 20:49:53

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

ok the result of a 2 days struggle:

at least I found a slitaz.iso, that is working: the cooking with kernel 2.36 (I think it was the march cooking)

slitaz-cooking (31.05): there is something in linux-wireless with the modules

godanes slitaz iso:     modules are ok, but there is an error when running: ifconfig wlan0 up

slitaz-cooking (31.05) with compat-wireless: this looks good, but when I run iwlist scan

there is wlan0 Scan completed: Cell 01 - Adress xx:xx:xx:xx:xx:xx - Illegal instructon - I hope this is just a depency problem, because I did this all from base-iso

and last but not least the described linux-libre error was my mistake, because I think I forgot to save the changed menu.lst - so I ran the linux-libre kernel with the normal bzImage

Offline

#12 2011-10-14 15:00:24

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

just for doku - different dmsg outputs:

cooking with kernel 2.6.36:

cfg80211: Calling CRDA to update world regulatory domain

ath5k 0000:00:0c.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11

ath5k 0000:00:0c.0: registered as 'phy0'

ath: EEPROM regdomain: 0x809c

ath: EEPROM indicates we should expect a country code

ath: doing EEPROM country->regdmn map search

ath: country maps to regdmn code: 0x52

ath: Country alpha2 being used: CN

ath: Regpair used: 0x52

phy0: Selected rate control algorithm 'minstrel_ht'

ath5k phy0: Atheros AR2417 chip found (MAC: 0xf0, PHY: 0x70)

cfg80211: Calling CRDA for country: CN

Offline

#13 2011-10-14 18:10:19

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

first its stupid, that you cannot edit your own post, when booting from another computer

second - I dont bring out the info from my alix board (geode), because there is no way to get X working - neither with xvesa nor with the geode driver and the the dmesg.log stops after 30 lines (another bug?)

and I tested the rolling iso - ath5k is fine - the same as in compat-wireless and the error remains the same: illegal instruction - and this is in iwlist scan or if I try to connect with iwconfig -  so it is a bug in wireless tools - the strange thins is, that it seems to exist only for ath5k

Offline

#14 2011-11-18 16:46:56

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

trying to find something I continue

here the kernel.config for ATH in the spring iso - where ath5k it is working

tux@slitaz:~$ zcat /proc/config.gz | grep ATH

CONFIG_MATH_EMULATION=y

# CONFIG_BT_HCIUART_ATH3K is not set

# CONFIG_BT_ATH3K is not set

CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"

# CONFIG_MD_MULTIPATH is not set

# CONFIG_DM_MULTIPATH is not set

CONFIG_ATH_COMMON=m

# CONFIG_ATH_DEBUG is not set

CONFIG_ATH5K=m

# CONFIG_ATH5K_DEBUG is not set

CONFIG_ATH9K_HW=m

CONFIG_ATH9K_COMMON=m

CONFIG_ATH9K=m

CONFIG_ATH9K_HTC=m

tux@slitaz:~$

thats from actual cooking

CONFIG_MATH_EMULATION=y

# CONFIG_BT_HCIUART_ATH3K is not set

# CONFIG_BT_ATH3K is not set

CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"

# CONFIG_MD_MULTIPATH is not set

# CONFIG_DM_MULTIPATH is not set

CONFIG_ATH_COMMON=m

# CONFIG_ATH_DEBUG is not set

CONFIG_ATH5K=m

# CONFIG_ATH5K_DEBUG is not set

CONFIG_ATH9K_HW=m

CONFIG_ATH9K_COMMON=m

CONFIG_ATH9K=m

CONFIG_ATH9K_RATE_CONTROL=y

CONFIG_ATH9K_HTC=m

# CONFIG_ATH6K_LEGACY is not set

so the only difference is:

CONFIG_ATH9K_RATE_CONTROL=y

No idea if this effects, but at least stange, that this is set to y

Offline

#15 2012-01-28 16:22:27

claudinei
Administrator
Registered: 2011-03-29
Posts: 102

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

Maybe the atheros rate control should be not set, since it is meant to be used instead of the minstrel_ht rate control, that is set in the SliTaz kernel config. I can't test it myself, don't have wifi card here.

Offline

#16 2012-01-28 18:07:26

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

no - thats not the problem, because here the zcat from slitaz-libre, where the atheros card is working

tux@slitaz:~$ uname -r

2.6.37-libre-slitaz

tux@slitaz:~$ zcat /proc/config.gz | grep ATH9K

CONFIG_ATH9K_HW=m

CONFIG_ATH9K_COMMON=m

CONFIG_ATH9K=m

CONFIG_ATH9K_RATE_CONTROL=y

CONFIG_ATH9K_HTC=m

tux@slitaz:~$ zcat /proc/config.gz | grep minstrel_ht

CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"

tux@slitaz:~$

do you have the possibility to test a Atheros mini PCI card? - I can send you one - I have three lying around

Offline

#17 2012-02-13 20:43:18

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

some progress with atheros - cards - (I just have ath5k):

"iwlist scan" and "iwconfig" are still not working, but I managed to connect to the router

1) install rfkill

2) edit /etc/network.conf as described in http://doc.slitaz.org/en:guides:wifi-easy

3) restart the network with /etc/init.d/network.sh restart

so it is a problem with wireless tools - but its very strange, because iwlist and iwconfig are working with other wifi cards

Offline

#18 2012-02-17 17:59:48

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

it was to early - there is no influence of rfkill - it works sometimes and sometimes not - and its something like 2 times yes and 10 times not.

The error when I run "/etc/init.d/network.sh restart":

wlan0 SIOCSIFFLAGS: Operation not possible due to RF-kill

when I run "rfkill list all" wlan0 is some time Soft blocked, but most of the time it is not blocked, because I can run later on "ifconfig wlan0 up" without any problems.

If you work with X, it would be possible to connect now with wifibox, if you know the essid - if you dont know the essid, you can install "iw" http://linuxwireless.org/en/users/Documentation/iw - and run as root: "iw dev wlan0 scan" - its the same as iwlist scan does and it works without any problems compared to iwlist - if the network is unencypted you can run "iw wlan0 connect essid" or use wifibox.

in my opendmx CD there is no X - so I have to solve this problem with rfkill. But I have no idea where to start - it must be a rights problem of rfkill - from the module rfkill and not from the program rfkill, but ???????.

Just the errors of dmesg:

ath5k 0000:00:0e.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, low) -> IRQ 10

ath5k 0000:00:0e.0: registered as 'phy0'

ath: EEPROM regdomain: 0x0

ath: EEPROM indicates default country code should be used

ath: doing EEPROM country->regdmn map search

ath: country maps to regdmn code: 0x3a

ath: Country alpha2 being used: US

ath: Regpair used: 0x3a

ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'

ath5k phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61)

cfg80211: Calling CRDA for country: US

wlan0: authenticate with 00:24:a5:42:9d:b8 (try 1)

wlan0: authenticated

wlan0: associate with 00:24:a5:42:9d:b8 (try 1)

wlan0: associate with 00:24:a5:42:9d:b8 (try 2)

wlan0: associate with 00:24:a5:42:9d:b8 (try 3)

wlan0: association with 00:24:a5:42:9d:b8 timed out

wlan0: direct probe to 00:24:a5:42:9d:b8 (try 1)

wlan0: direct probe to 00:24:a5:42:9d:b8 (try 2)

wlan0: direct probe to 00:24:a5:42:9d:b8 (try 3)

wlan0: direct probe to 00:24:a5:42:9d:b8 timed out

Offline

#19 2012-02-18 22:18:38

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

its not a right problem - with the help of screen and rfkill event I could see, what is going on when running /etc/init.d/network.sh restart

1329604180.084188: idx 0 type 1 op 0 soft 0 hard 0

1329604619.672406: idx 0 type 1 op 2 soft 1 hard 0

1329604180.709930: idx 0 type 1 op 2 soft 0 hard 0

Offline

#20 2012-02-19 23:07:40

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

ok - I would not say, it is solved, but its also possible to bring up an atheros card direct after booting

you have to edit /etc/init.d/network.sh

and add I think in line 35 after

ifconfig $INTERFACE down     

sleep 2

now you get two times illegal instruction when you run /etc/init.d/network.sh restart - this is caused by iwconfig in the script - but at least it does what it should do......

Offline

#21 2012-02-20 18:57:53

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: some strange wifi questions for ALFA AWPCI085H supported by ath5k

This trouble has nothing to do with Atheros Wifi cards - its connected with the amd geode and via CPUs

I have tested today the Zioncom USB Adapter WL0162 on the Geode and it has the same strange behavior

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.026 seconds, 7 queries executed - Memory usage: 1.59 MiB (Peak: 1.77 MiB) ]