Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: thane on September 25, 2024, 01:25:38 AM
-
I'm running CorePure64 15.0 on a Lenovo Thinkpad X201.
The wifi worked on this machine until I yesterday (9/23/2024) updated the wpa_supplicant_dbus.tcz extension. After that the app appears to scan for networks successfully, but when I try to connect to mine I get this message and am not able to connect:
tgetattr: Inappropriate ioctl for device
I don't know what the command is (if any) to start wifi from a terminal to see if I'm missing a library or something.
[edit] usr/local/bin sudo wifi.sh [duh]. Doesn't help though, does the same thing as the desktop icon.
Suggestions?
-
I use this to connect - the latest wpa_supplicant-dbus extension works fine for me:
cat /mnt/sdb1/conf/wpa_configure.conf
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Livebox-62BC"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
psk="blahblah"
}
#!/bin/sh -e
#
sudo cp /mnt/sdb1/conf/wpa_configure.conf /etc/wpa_configure.conf
#
tce-load -i firmware_iwlwifi-7260
tce-load -i wpa_supplicant-dbus
#
sleep 2
#
sudo wpa_supplicant -B -Dwext -i wlan0 -c/etc/wpa_configure.conf
#
sudo udhcpc -b -i wlan0 -x hostname:boxdell -p /var/run/udhcpc.wlan0.pid
#
# EOF
-
The app sends credentials to the access point, displays the message "reading passphrase from stdin" and then the message "tcgetattr: Inappropriate ioctl for device". I deleted and reloaded wifi.tcz and its dependencies including wpa_supplicant-dbus.tcz, with the same result.
Based on what I'm seeing on the web, I wonder if there's a problem in the script.
-
Wpa_supplicant 2.11 has removed the ability to read the password from a file. Which is how the WiFi script works. I reverted this in. The package for piCore
http://www.tinycorelinux.net/15.x/aarch64/tcz/src/wpa_supplicant/patches/
-
Thanks for figuring this out!
I'm running Corepure 64 on an Intel box, so I guess my only option is to revert to the older version of the extension.
-
Hi thane
This issue was brought by timbee up last August:
https://forum.tinycorelinux.net/index.php/topic,27222.0.html
You can either request a patched update of wpa_supplicant
or adjust your local copy of wifi.sh:
https://forum.tinycorelinux.net/index.php/topic,27222.msg174968.html#msg174968
-
Thanks Rich.
I found a copy of the older extension so I can now reconnect on the Thinkpad. I realize this is a bit of a kludge so I'll look into the fixes you suggest.
Thanks everyone for your help!
thane
-
I will recompile wpa_supplicant 2.11 with Paul_123's patch so that getting wifi password from stdin continues to work. Sorry for the breakage. I'm traveling but will resubmit the x86_64 extension tomorrow upon my return.
-
Patched wpa_supplicant-dbus.tcz has been submitted for the TCL15 x86_64 repo :)
-
updated wpa_suuplicant-dbus posted
-
Updated the extension. Works for me!
Thanks everyone for your help.
thane