You are not logged in.
Pages: 1
Hello everyone, I'm new in this forum, and in the SliTaz/Linux world too.
English isn't my first language, so I'll try to speak it right!
I'm resurrecting an old pc, and I think SliTaz it's perfect for this!
But.. I'm stuck installig the wireless card.
I've got the TP-LINK TL-WN722N USB wireless card. I've tried all the packages advised in forums, but still don't work.
The packages I've tried are:
.linux-libre-wireless-2.6.37-libre
.linux-wireless-2.6.37
.usbids-20111016
.usbutils-004
.libusb-compat-0.1.3
.libusb-1.0.8
SliTaz still don't see my USB wireless card :'(
Can anyone please help me? Thanks a lot for your time!
Offline
Hi,
Output from this command probably will be useful:
lsusb
ip link
lsmod|grep ath
I think this card use ath9k modules. You can try type: modprobe ath9k_htc, and then check is card is available by:
ip link
There should be wlan0 on the list.
Sorry if this too obvious ;-)
Offline
Thank you a lot for your help!
The output from those commands is like Arab, for me. And I can't speak it.
So, I'll post a screen!
[attachment=17417,710] [attachment=17417,711]
Offline
As you can see, there's no "wlan0".
Offline
Download firmware:
http://linuxwireless.org/download/htc_fw/1.3/htc_7010.fw
http://linuxwireless.org/download/htc_fw/1.3/htc_9271.fw
Open terminal,su,password: root
Copy the 2 firmware files to /lib/firmware
# [c]cp *.fw /lib/firmware[/c]
Reload driver:
# [c]modprobe -r ath9k_htc ; modprobe ath9k_htc[/c]
Restart networking:
# [c]/etc/init.d/network.sh restart[/c]
Applications/System tools/Wifi configuration
Online
All done!
..and this is what I get:
"root@Slitaz:/home/Vale# /etc/init.d/network.sh restart
Stopping all interfaces
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
Killing all daemons
killall: udhcpc: no process killed
wlan0 No such device
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
wlan0 is not a wifi interface, changing it.
Configuring ...lo no wireless extensions.
eth0 no wireless extensions.
dummy0 no wireless extensions.
[ OK ]
Starting udhcpc client on: ...
udhcpc: SIOCGIFINDEX: No such device"
What's wrong with this Wifi key??
Offline
The wifi adapter is still the problem.
[1]Open 2nd terminal to monitor kernel messages while firmware/module loads:
[c]tail -f /var/log/messages[/c]
Go to first terminal:
[c]# modprobe -r ath9k_htc ; modprobe ath9k_htc[/c]
Post any errors related to module,firmware,or rfkill switch in the 2nd terminal.
[2]Post output from these commands:
[c]ls /sys/class/net[/c]
[c]ifconfig[/c]
[c]cat /etc/network.conf[/c]
[c]iwconfig[/c]
Online
Monitoring from modprobe -r ath9k_htc ; modprobe ath9k_htc:
"root@Slitaz:/home/Vale# tail -f /var/log/messages
Oct 22 13:13:30 (none) daemon.err udevd[1569]: bind failed: Address already in use
Oct 22 13:13:30 (none) user.notice error binding udev control socket
Oct 22 13:13:30 (none) daemon.err udevd[1569]: error binding udev control socket
Oct 22 13:13:30 (none) user.info kernel: [drm] Using v1.4 init.
Oct 22 13:13:30 (none) user.warn kernel: mtrr: base(0xe8000000) is not aligned on a size(0x3000000) boundary
Oct 22 13:13:33 (none) user.err kernel: [drm:drm_reclaim_locked_buffers] *ERROR* reclaim_buffers_locked() deadlock. Please rework this
Oct 22 13:13:33 (none) user.err kernel: driver to use reclaim_buffers_idlelocked() instead.
Oct 22 13:13:33 (none) user.err kernel: I will go on reclaiming the buffers anyway.
Oct 22 13:14:22 (none) auth.notice su: + /dev/pts/2 Vale:root
Oct 22 13:14:27 (none) auth.notice su: + /dev/pts/1 Vale:root
Oct 22 13:14:50 (none) user.info kernel: usbcore: deregistering interface driver ath9k_hif_usb
Oct 22 13:14:50 (none) user.info kernel: ath9k_htc: Driver unloaded
Oct 22 13:14:50 (none) daemon.err udevd[1635]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1635]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1636]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1636]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1637]: bind failed: Address already in use
Oct 22 13:14:50 (none) daemon.err udevd[1638]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1637]: error binding udev control socket
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1638]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1640]: bind failed: Address already in use
Oct 22 13:14:50 (none) daemon.err udevd[1639]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1639]: error binding udev control socket
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1640]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1641]: bind failed: Address already in use
Oct 22 13:14:50 (none) daemon.err udevd[1642]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1641]: error binding udev control socket
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1642]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1643]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1643]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1644]: bind failed: Address already in use
Oct 22 13:14:50 (none) daemon.err udevd[1645]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1644]: error binding udev control socket
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1645]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1646]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1646]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1649]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1649]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1650]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1650]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1651]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1651]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1653]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1653]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1654]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1654]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1656]: bind failed: Address already in use
Oct 22 13:14:50 (none) daemon.err udevd[1657]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1656]: error binding udev control socket
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1657]: error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1660]: bind failed: Address already in use
Oct 22 13:14:50 (none) user.notice error binding udev control socket
Oct 22 13:14:50 (none) daemon.err udevd[1660]: error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1663]: bind failed: Address already in use
Oct 22 13:14:51 (none) user.notice error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1663]: error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1665]: bind failed: Address already in use
Oct 22 13:14:51 (none) user.notice error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1665]: error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1667]: bind failed: Address already in use
Oct 22 13:14:51 (none) user.notice error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1667]: error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1669]: bind failed: Address already in use
Oct 22 13:14:51 (none) user.notice error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1669]: error binding udev control socket
Oct 22 13:14:51 (none) user.err kernel: usb 1-1: ath9k_htc: Firmware - ar9271.fw not found
Oct 22 13:14:51 (none) user.warn kernel: ath9k_hif_usb: probe of 1-1:1.0 failed with error -22
Oct 22 13:14:51 (none) user.info kernel: usbcore: registered new interface driver ath9k_hif_usb
Oct 22 13:14:51 (none) daemon.err udevd[1670]: bind failed: Address already in use
Oct 22 13:14:51 (none) user.notice error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1670]: error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1672]: bind failed: Address already in use
Oct 22 13:14:51 (none) user.notice error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1672]: error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1673]: bind failed: Address already in use
Oct 22 13:14:51 (none) user.notice error binding udev control socket
Oct 22 13:14:51 (none) daemon.err udevd[1673]: error binding udev control socket"
Output from
ls /sys/class/net
ifconfig
cat /etc/network.conf
iwconfig:
"root@Slitaz:/home/Vale# ls /sys/class/net
dummy0 eth0 lo
root@Slitaz:/home/Vale# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@Slitaz:/home/Vale# cat /etc/network.conf
# /etc/network.conf: SliTaz system wide networking configuration.
# Config file used by: /etc/init.d/network.sh
#
# Set default interface.
INTERFACE="wlan0"
# Dynamic IP address.
# Enable/disable DHCP client at boot time.
DHCP="yes"
# Static IP address.
# Enable/disable static IP at boot time.
STATIC="no"
# Set IP address and netmask for a static IP.
IP="192.168.0.6"
NETMASK="255.255.255.0"
# Set route gateway for a static IP.
GATEWAY="192.168.0.1"
# Set DNS server for a static IP.
DNS_SERVER="192.168.0.1"
# Wifi connection.
# Enable/disable wireless connection at boot time.
WIFI="yes"
# Wifi interface (iwconfig) and ESSID.
WIFI_INTERFACE="wlan0"
WIFI_ESSID=""
WIFI_MODE="managed"
WIFI_KEY=""
WIFI_KEY_TYPE="(null)"
WPA_DRIVER=""
WIFI_CHANNEL=""
WIFI_IWCONFIG_ARGS=""
root@Slitaz:/home/Vale# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
dummy0 no wireless extensions."
Offline
Firmware Error:
Oct 22 13:14:51 (none) user.err kernel: usb 1-1: ath9k_htc: Firmware - ar9271.fw not found
Download: http://www.mediafire.com/download/r2kqgntyf4jhggj/firmware-atheros-20120625.tazpkg
Install: [c]tazpkg install firmware-atheros-20120625.tazpkg[/c]
Rerun my previous directions.
Online
Okay, now SliTaz recognizes the wireless key!
But I'm still not able to surf the internet..
I don't now why I can't take screenshots, so I've token a photo to the network settings.
Here: http://db.tt/7j9BfVfl
This' the output from /etc/init.d/network.sh restart:
[c]"Stopping all interfaces
Killing all daemons
killall: udhcpc: no process killed
Shutting down wifi card
ifconfig: SIOCSIFFLAGS: Operation not possible due to RF-kill
Configuring wlan0... [ OK ]
Starting udhcpc client on: wlan0...
udhcpc (v1.18.4) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background"[/c]
Offline
Post output from:
ls /sys/class/net
ifconfig
cat /etc/network.conf
iwconfig
The wireless access point must be broadcasting an ESSID name.
What security protocol on router: WPA WPA2 WEP ?
Online
Hi Emanuele,
I saw the known words in your listing—
Operation not possible due to RF-kill
RF-kill is hardware switch to power on/off your Wi-Fi card. I have this one in my netbook, and it work, and I can switch off my Wi-Fi card.
My RF-kill switch is separate slide-key. But on your machine it can be as Fn+Fx key combination. Look more closely to find RF-kill switch.
That would be the easiest solution!
+++
Oh, no! I'm silly. I have just looked at your picture. Your Wi-Fi not seem like switch-offed 
May be it's known bug with /etc/resolv.conf and /etc/ppp/resolv.conf when you can connect to internet only under root? This bug fixed, upgrade your ppp package. No?
And my out:
[c]tux@slitaz:~$ su
Password:
root@slitaz:/home/tux# /etc/init.d/network.sh restart
Stopping all interfaces
Killing all daemons
Shutting down wifi card
Configuring wlan0... [ OK ]
Starting wpa_supplicant for WPA-PSK...
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Starting udhcpc client on: wlan0...
Selected interface 'wlan0'
Warning: Failed to attach to wpa_supplicant.[/c]
Oops! My Wi-Fi not work. Try not to restart but start:
[c]root@slitaz:/home/tux# /etc/init.d/network.sh start
Configuring wlan0... [ OK ]
Starting wpa_supplicant for WPA-PSK...
Starting udhcpc client on: wlan0...
Selected interface 'wlan0'
root@slitaz:/home/tux#[/c]
Ok, works. (And works in clean SliTaz 4.0 Core system, by the way).
+++
In your picture I see:
[c]Encryption type: on[/c]
But I have
[c]Encryption type: WPA[/c]
Try to switch between WPA, WPA2 and WEP.
Offline
That's the output from
ls /sys/class/net
ifconfig
cat /etc/network.conf
iwconfig:
[c]root@Slitaz:/home/Vale# ls /sys/class/net
dummy0 eth0 lo wlan0
root@Slitaz:/home/Vale# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:651 errors:0 dropped:0 overruns:0 frame:0
TX packets:651 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:144202 (140.8 KiB) TX bytes:144202 (140.8 KiB)
wlan0 Link encap:Ethernet HWaddr 94:0C:6D:88:C3:F4
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@Slitaz:/home/Vale# cat /etc/network.conf
# /etc/network.conf: SliTaz system wide networking configuration.
# Config file used by: /etc/init.d/network.sh
#
# Set default interface.
INTERFACE="wlan0"
# Dynamic IP address.
# Enable/disable DHCP client at boot time.
DHCP="yes"
# Static IP address.
# Enable/disable static IP at boot time.
STATIC="no"
# Set IP address and netmask for a static IP.
IP="192.168.0.6"
NETMASK="255.255.255.0"
# Set route gateway for a static IP.
GATEWAY="192.168.0.1"
# Set DNS server for a static IP.
DNS_SERVER="192.168.0.1"
# Wifi connection.
# Enable/disable wireless connection at boot time.
WIFI="yes"
# Wifi interface (iwconfig) and ESSID.
WIFI_INTERFACE="wlan0"
WIFI_ESSID="Regan"
WIFI_MODE="managed"
WIFI_KEY="samsung123456"
WIFI_KEY_TYPE="WEP"
WPA_DRIVER=""
WIFI_CHANNEL=""
WIFI_IWCONFIG_ARGS=""
root@Slitaz:/home/Vale# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
dummy0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off[/c]
Now the PC recognizes the Wifi card. The Wifi card recognizes my wireless network but it cant connect to it!!
I've changed from "on" to "WEP" (my router encription) and nothing has happened..
Offline
Install rfkill:
# [c]tazpkg -gi rfkill[/c]
Post output:
# [c]rfkill list all[/c]
# [c]iwlist wlan0 scan[/c]
WEP key: don't surround wep key with quotes ""
# [c]leafpad /etc/network.conf[/c]
Change
[c]WIFI_KEY="samsung123456"[/c]
to
[c]WIFI_KEY=samsung123456[/c]
File/Save File/Quit
Restart networking:
# [c]/etc/networking.sh restart[/c]
Online
Output from
# rfkill list all
# iwlist wlan0 scan:
[c]root@Slitaz:/home/Vale# rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
root@Slitaz:/home/Vale# iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:1D:8B:C7:BF:2F
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=66/70 Signal level=-44 dBm
Encryption key:on
ESSID:"Regan"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000002358796188
Extra: Last beacon: 73ms ago
IE: Unknown: 0005526567616E
IE: Unknown: 010882848B962430486C
IE: Unknown: 03010B
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: Unknown: 32040C121860
IE: Unknown: DD06001018020015"[/c]
If I restart networking, it says:
[c]Stopping all interfaces
Killing all daemons
Shutting down wifi card
ifconfig: SIOCSIFFLAGS: Operation not possible due to RF-kill
Configuring wlan0... [ OK ]
Starting wpa_supplicant for NONE/WEP...
Line 762: Invalid WEP key 0 'samsung123456'.
Line 762: failed to parse wep_key0 'samsung123456'.
Line 765: failed to parse network block.
Failed to read or parse configuration '/tmp/wpa.conf'.
Starting udhcpc client on: wlan0...
udhcpc (v1.18.4) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background[/c]
Offline
Hi mojo and Emanuele,
First at all, execuse me for changing your posts—using of backticks making it easier to read listings.
mojo, rfkill looks like it does not work for me, and everytime shows me that all unblocked (like as it in Emanuele) regardless if I kill my Wi-Fi card or no.
Offline
Your WEP key is a problem for network.sh
[c]Line 762: Invalid WEP key 0 'samsung123456'.
Line 762: failed to parse wep_key0 'samsung123456'.
Line 765: failed to parse network block.[/c]
# leafpad /etc/network.conf
Change
[c]WIFI_KEY=samsung123456[/c]
to
[c]WIFI_KEY= samsung123456[/c]
File/Save File/Quit
Restart networking:
# /etc/networking.sh restart
@Aleksej
Maybe it is specific to your hardware?
rfkill works on my dell inspiron e1505 laptop
Emanuele's wifi adapter is powered on, it is receiving [c]iwlist wlan scanning[/c]
info from wifi router
Online
OH MAN YOU'RE A PRO!!
Works like a charm!
I've turned off my wireless encryption and now SliTaz can connect to it. I'm writing from SliTaz 
I've also tried to re-encrypt the network with WEP open: SliTaz cannot connect to it.
But if I use WPA it works.
Why SliTaz cannot recognize WEP encryption? Is this normal?
However, thanks a lot for your time and your help.
Offline
Congratulations, Emanuele! 
WEP cracking can be done in just a few minutes, don't use it!
Quote from Wikipedia article Wired Equivalent Privacy:
WEP has been demonstrated to have numerous flaws and has been deprecated in favor of newer standards such as WPA2
Offline
Good to hear it works with no security.
Try the edit on the WEP key I mentioned above.
There should be a space between = and samsung123456
WEP worked for Imart in this thread:
http://forum.slitaz.org/topic/slitaz-40-ipw2200#post-17207
Online
Pages: 1
[ Generated in 0.031 seconds, 7 queries executed - Memory usage: 1.61 MiB (Peak: 1.77 MiB) ]