Tiny Core Linux
General TC => General TC Talk => Topic started by: aus9 on April 11, 2013, 12:27:56 AM
-
so I don't detract from the http://forum.tinycorelinux.net/index.php/topic,12910.0.html theme I am starting a new thread
I can connect to the net doing the following, as I normally use the ethernet
sudo rmmod 8139too
tce-load -i wl-rtl8712u-3.0.21-tinycore firmware wifi
sudo modprobe r8712u
sudo /usr/local/bin/wifi.sh -a 2>&1 > /tmp/wifi.log
b) If interested here is the log
Found wifi device wlan2
Standby for scan of available networks...
Attempting auto connection with Rusty
.......
udhcpc (v1.20.2) started
Sending discover...
Sending select for 192.168.1.101...
Lease of 192.168.1.101 obtained, lease time 86400
deleting routers
adding dns 208.67.222.222
adding dns 208.67.220.220
If interested here is my wifi.db file
Rusty (its password) WPA
Question ....I have WPA2 with a PSK password, is that normal to see only WPA mentioned in database?
I can't test the suggested module why I am not sure
tce-load -i wl-rtl8192u-3.0.21-tinycore firmware wifi
wl-rtl8192u-3.0.21-tinycore is already installed!
firmware is already installed!
wifi is already installed!
tc@box:~$ sudo depmod -a
WARNING: Can't read module /lib/modules/3.0.21-tinycore/kernel.tclocal/drivers/net/wireless/r8192u_usb.ko.gz: Not a directory
and
sudo modprobe r8192u_usb
modprobe: can't load module r8192u_usb (kernel.tclocal/drivers/net/wireless/r8192u_usb.ko.gz): invalid module format
2) I have yet to get the ethernet back without a reboot
this fails for me
sudo rmmod r8712u
sudo modprobe 8139too
sudo ifconfig eth0 up
sudo ifconfig eth0 --> looks to be up but can't get a web page
(2) is not important as reboot works
thanks for reading
Yes I am a wireless novice
-
Some detective work is needed, try this to determine exactly which driver and firmware is in use by any wifi and ethernet devices.
Be on the lookout for any conflicting internal wifi devices especially if we are using a notebook, some motherboards may also have wifi adapters
for a broader view you could try these first
lspci -vv
lsusb -v
Then I would filter these results with
lspci -v | grep -i -e wifi -e eth -e driver
and
lsusb -v | grep -i wlan
which provides for example:
06:00.0 Network controller: Intel Corporation Ultimate N WiFi Link 5300
Kernel driver in use: iwlagn
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
Kernel driver in use: r8168
and
Bus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
idProduct 0x8176 RTL8188CUS 802.11n WLAN Adapter
iProduct 2 802.11n WLAN Adapter
Then search dmesg for the above 3 devices
dmesg | grep -i -e wifi -e rtl
example
eth%d: RTL8168C/8111C at 0xf8034000, 00:xx:xx:xx:xx:xx, IRQ 47
eth0: Identified chip type is 'RTL8168C/8111C'.
iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
iwlagn 0000:06:00.0: Detected Intel(R) Ultimate N WiFi Link 5300 AGN, REV=0x24
rtl8192cu: MAC address: 00:9c:91:99:c4:88
rtl8192cu: Board Type 0
rtl8192cu: rx_max_size 15360, rx_urb_num 8, in_ep 1
ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
usbcore: registered new interface driver rtl8192cu
rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx queue select: 0x05
rtl8192c: Loading firmware file rtlwifi/rtl8192cufw.bin
Also view
lsmod
Module Size Used by Tainted: P
...
iwlagn 122880 0
rtl8192cu 65536 0
rtlwifi 65536 1 rtl8192cu
rtl8192c_common 40960 1 rtl8192cu
mac80211 114688 4 iwlagn,rtl8192cu,rtlwifi,rtl8192c_common
cfg80211 94208 3 iwlagn,rtlwifi,mac80211
r8168 208896 0
...
As you can see, the internal
Intel(R) Ultimate N WiFi Link 5300 device has it's driver (iwlagn) installed but is not in use, also
the RTL8168C Ethernet adapter has a driver (r8168) installed but is not in use. However,
the RTL8188CUS 802.11n WLAN Adapter has loaded it's rtl8192cu driver, rtl8192cufw.bin firmware, and it's dependencies rtlwifi core, rtl8192c_common, mac80211 and cfg80211.
searching for driver and firmware files in APPS confirms the required rtlwifi, rtl8192cu, rtl8192cufw.bin, mac80211 and cfg80211 files are available in wireless-3.0.21-tinycore.tcz and firmware.tcz for this device
-
@ aus9
Wireless NIC Chip = Realtek Semiconductor Corp. RTL8191SU
USB ID = 0bda:8172
sorry, after some investigation I find that the correct driver for this device is rtl8712u ( I mixed up the su and cu doh! my bad)
wl-rtl8712u-3.0.21-tinycore.tcz
use lsmod to determine the correct firmware is installed. which may possibly be something like rtl8712u.bin (but not 100% sure)
-
Hi
as per first post I am already using the correct one as I can connect to the router and then the internet.
Any chance you can re-visit my question on the details in the wifi.db.......for my router?
Question ....I have WPA2 with a PSK password, is that normal to see only WPA mentioned in database?
-
in the meantime I will mark the thread as solved as
dmesg | grep -i -e wifi -e rtl
8139too 0000:02:05.0: eth0: RealTek RTL8139 at 0xf8026c00, 00:21:97:76:2d:da, IRQ 20
r8712u: register rtl8712_netdev_ops to netdev_ops
8139too 0000:02:05.0: eth0: RealTek RTL8139 at 0xf89bec00, 00:21:97:76:2d:da, IRQ 20
r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
-
Question ....I have WPA2 with a PSK password, is that normal to see only WPA mentioned in database?
Yes. Wpa_supplicant is smart enough to figure out which protocol to use.
-
althalus
I am still confused. Does this mean that wpa_supplicant think I only have WPA and not WPA2 based on that database entry?
Because according to my router, its supposed to be WPA2 etc
Status:Enabled
SSID:Tinycore
Channel:Channel6
Channel Width:Auto
Mode:11bgn Mixed
Encryption:WPA-PSK/WPA2-PSK
MAC Address64:70:02:DE:DB:10
Max Tx Rate:300Mbps
WDS Status:Disabled
(http://ompldr.org/vaTJoZA/woa.jpg)
-
If you connect using wifi.sh, which uses wpa_supplicant, ~/wifi.db will show WPA even if it is connected to a router using WPA2
-
Ahhh that is a great relief
thank you Juanito and althalus