Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: che on June 14, 2013, 05:48:20 AM

Title: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 14, 2013, 05:48:20 AM
I am missing the wlan0 interface for the wireless network.
I have an usb-adapter with rtl8192cu chipset. The led remains unlit.
First i tried the wifi-application but it shut down in silent.
Then I tried to set up wlan per wpa-supplicant.
The wpa_gui gives no adapter to choose and no networks.

installed packages are: wireless tools / wireless-3.0.21-tinycore / wpa_supplicant / wpa_gui

                             the driver is loaded at boot via bootlocal.sh: modprobe rtl8192.ko
dmesg gives:          usbcore registered new interface driver rtl8192cu
lsusb gives:           Bus 002 Device 002: ID obda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
ifconfig gives only: loopback and eth0
iwconfig gives:       lo /dummy0 /eth0 - no wireless extensions

The adapter is functionnaly ok - it works with puppy-linux.
Any suggestions would be much appreciated - although my linux-knowledge is very limited.
I will read messages tomorrow. Thanks!
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on June 14, 2013, 08:20:19 AM
Hi

Well you need the rtl8192cu driver
 wireless-3.0.21-tinycore.tcz (rtl8192cu)
   Which Supports USB devices based on the RTL8188CUS and RTL8192CU chips.

Also needed is firmware
firmware.tcz  (rtlwifi/rtl8192cufw.bin)

install the extensions through apps and install wifi.tcz  while you are the there, no need to start via modprobe

confirm the driver and firmware loading in dmesg 
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 15, 2013, 04:49:42 AM
Hi, thanks for your advice
doing as you told, dmesg shows no results / usb adapter is not detected and driver not loaded?
What now? Any idea?
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on June 15, 2013, 06:01:22 AM
sure, but first I think we need more information. please create and attach these files so that folks can determine your hardware

from the terminal enter

lspci -nn > lspci.txt
lsusb > lsusb.txt
dmesg > dmesg.txt


based on the comment 
Quote
dmesg shows no results / usb adapter is not detected
sometimes the information is missed but if this is true then there is a hardware issue.  perhaps try plugging the adapter into a different USB port (ie a USB 2.0 or earlier port)



Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 15, 2013, 09:40:20 AM
I'm using an IBM T23, USB has to be therefore s.th. old 1.1 version. There are two usb-slots; attached to the second usb is the mouse.
And here come the attached files...
Thank you for the commands suggested - they were very helpful and avoided messing around with screenshots and image - fiddling, which was what I thought of doing.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 15, 2013, 09:44:39 AM
as I see there' only the last file attached
I'll give it a second try.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: tinypoodle on June 15, 2013, 12:02:03 PM
Can you reliably reproduce getting dmesg output for the card when not loading a driver onboot, but no output when you do load a driver onboot?
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 15, 2013, 05:14:36 PM
Hi,
here are the two bootscripts:
one is done while all wireless packages were removed from "onboot-menu"
and the other one is done with "modprobe rtl9192cu.ko" in /opt/bootlocal.sh

b.t.w. I remember using puppy 5.2.5 there are two network-setup programs to choose, of which one is not able to connect to wireless networks - but the other one does the job. The driver is to choose from menu (it is downloadable as an extra-pet).
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: tinypoodle on June 15, 2013, 07:28:35 PM
Ok, driver gets loaded onboot (last 2 lines).

Best to boot with code "syslog", then you can leave a terminal open with
Code: [Select]
tail -f /var/log/messagesand see what output you get - if any - when plugging/unplugging device.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 16, 2013, 08:53:21 AM
would you be so kind to explain more specificially how to boot with the 'syslog' boot option.
The bootprompt [F4] option seems not to work while
I'm booting tcl from grub4dos - is there a possibility to bind in this bootparameter e.g. after the
 kernel commandline? I had one try with {cron|syslog} but no results.
yet so far there there is no folder /syslog/messages.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: Rich on June 16, 2013, 11:05:03 AM
Hi che
Try appending  syslog  to the  kernel  line.
Quote
yet so far there there is no folder /syslog/messages.
That would be  /var/log/messages
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 16, 2013, 03:39:04 PM
so I did reboot with:

 kernel /tce/boot/vmlinuz tinycore {cron|syslog}

anyhow with plugged in / plugged out usb-adapter
there is no file added to /var/log;
the result stays the same terminal-errormessage:
tail -f /var/log: tail: read error: Is a directory
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: Rich on June 16, 2013, 04:58:52 PM
Hi che
Try it like this:
Code: [Select]
kernel /tce/boot/vmlinuz syslogthen this should work:
Code: [Select]
tail -f /var/log/messages
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 17, 2013, 04:35:00 AM
Hi, back again with the log

I did syslog with nothing connected to usb and whith wl-adapter only connected to it.
in the  log-message done with usb_adapter_plugged_in
i presume it is line 566 where it is mentioned:
>> Jun 17 07:26:18 box user.info kernel: usb 2-1: new full speed USB device number 2 using uhci_hcd <<

as I mentioned before, it is also detected by "lsusb":
>> Bus 002 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter <<

'tail -f /var/log/messages'
 give the laste ten lines only, which are not of great interest, so I attached one full log-file (wl-adapter plugged to usb) in case of any interest.
The log 'without having anything connected to usb' is equal to this, except line 566, as mentioned above.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: tinypoodle on June 17, 2013, 07:36:51 AM
All of the above after having loaded driver and firmware first?
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 17, 2013, 11:10:15 AM
it is onboot.lst:

Xprogs
wbar
flwm_topside
xf86-video-savage
kmaps
graphics-3.0.3
intel-ttb
Xorg-7.6
i2c-.3.12
mirrors
alsa
alsamixergui
xfe
firmware
wireless-3.0.21
wifi
wpa_gui
wpa_suplicant

and as earlier mentioned driver loaded per modprobe
because if there is no modprobe - there is no driver

believe me I wouln't ask if this wasn't a trouble!
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 17, 2013, 12:47:34 PM
to give more compete information about which kind of  adapter is used
I attach the results of 'lsusb -v'

wl-adapter and mouse are plugged in.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 17, 2013, 01:55:05 PM
what surprises me:

This comparison might be very interesting:
I found this example in the following thread:

Re: wifi device and testing its module


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



And now, how is the result if I do

dmesg|grep -i -e wifi -e rtl


I'm forced to copy it by hand from terminal - because if I use 'dmesg|grep -i -e wifi -e rtl >dmesg_wifi'
the result is pretty 'tiny' (as you see downwards)).

This is the output of the >>terminal<<
---------------------------------------------------------------------------------------------------------------------------------------
Bus 002 Device 002: ID Obda:8178 Realtek Semiconductor Corp. TEL8192CU 802.11n WLAN Adapter
   idProduct      0x8178 RTL8192CU 801.11n WLAN Adapter
   iProduct          2 802.11n WLAN Adapter
-----------------------------------------------------------------------------------------------------------------------------------------



and this is the output as >>file<< of  'dmesg|grep -i -e wifi -e rtl >dmesg_wifi' :
-------------------------------------------------------------------------------------------------------------------------------------
usbcore: registered new interface driver rtl8192cu
----------------------------------------------------------------------------------------------------------------------------------------
why are these outputs different?

Now, if I compare these results with the example above - I still know nothing (because I'm just a user) - but perhaps
could it be that here is a hint to where to serch for my mysery?
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: tinypoodle on June 17, 2013, 02:05:48 PM
Hmm, I couldn't spot anything missing, poking in the mist, you could try to omit connecting other usb devices like external mouse.

Also, you might get some hints if you try same radio with a different PC and/or OS and compare.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 17, 2013, 04:10:09 PM
Seems like I will stick to puppy - curiosly but with that OS it's working.
Thank you very much for your interest and advice.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: Rich on June 17, 2013, 04:58:43 PM
Hi che
Have you tried booting with the network cable disconnected or using the  nodhcp  boot code?
You might also try running  lsmod  and comparing the results between Puppy and Tinycore.

On a side note:
Why are you running  graphics-3.0.3  on a 3.0.21 kernel?
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 17, 2013, 05:21:23 PM
yes disconnected boot I did, but it was of no use.
What might it be good for to boot in nodhcp when the system does not even establish an network interface?
graphics -3 I didn't really choose it because there was no other choice, but graphics was recommended with xf86.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 18, 2013, 12:22:43 PM
Fresh boot from CD with firmware and wireless extensions and a supported realtek rtl8192cu chipset usb wl-adapter plugged in,

all I get from "sudo wifi.sh": No wifi devices found!
Hey guys this can't be true - is this really all you can offer?
No information what went wrong?
There has to be a command to get some information from that install-srcipt what was the missing information.
Come on!

Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on June 18, 2013, 07:09:20 PM
Notice that the wireless chip you have has not been tested   see here http://wiki.tinycorelinux.net/wiki:list_of_supported_wifi_devices (http://wiki.tinycorelinux.net/wiki:list_of_supported_wifi_devices)   This chip was a limited edition, but still we may have a driver for it.  While the rtl8712u wireless driver has undergone many updates and supports a wide range of wireless chips,  unfortunately the rtl8192 driver has not.   


Supported USB/WiFi adapters are cheap and in plentiful supply.   I'd simply go get one that is supported, or one that has B/G or N up to N150 seems like the best choice.   

I think this has been asked before, which driver and firmware does puppy use??   


Also note we should never have an Ethernet cable connected when trying to connect via WiFi


Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on June 18, 2013, 07:24:42 PM
Yes the graphics was recommended, but the version installed is not for this current kernel.  Uninstall graphics-3.0.3-tinycore  and install graphics-3.0.21-tinycore

Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on June 18, 2013, 07:45:39 PM
Quote
Re: wifi device and testing its module


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 where did this come from please?  Your notebook?
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: Rich on June 18, 2013, 07:50:31 PM
Hi coreplayer2
Quote
Also where did this come from please?  Your notebook?
Interestingly enough, it came from you:
http://forum.tinycorelinux.net/index.php/topic,15217.msg87827.html#msg87827
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on June 18, 2013, 07:58:06 PM
ROFL

I thought I recognized it
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 19, 2013, 03:16:36 AM
I would really appreciate if anyone would put an answer to my questions, please:

No information what went wrong?
There has to be a command to get some information from that install-srcipt what was the missing information.

Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: che on June 19, 2013, 01:26:02 PM
I just tried an install of Archlinux and to my surprise wlan worked on first attempt plain vanilla auto-install menu guided from CD-boot!
Why can't TCE do the same? Such a pity.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: gerald_clark on June 19, 2013, 01:46:06 PM
TC is not a ready-to-run distribution.  It is a toolkit for building systems.
Not everything is automated.  You may have to do some troubleshooting and scripting to get things the way you want them.

You have been asked questions you have not answered, and asked to do things that you have not acknowledged doing.
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on June 19, 2013, 01:49:26 PM
It's clear we do not currently have a driver/firmware int tc-4.7.7 to support this wireless adapter.   Looks like I have in my possession a similar Wireless adapter using the RTL8192CU chip, however you'll notice that for some reason this deice has never made it into the list of supported Wireless devices.

If you can provide more information on the driver/firmware used in other distributions I'd be happy to make an extension to include support for this device.  Although the new TC-5.x might provide the required support.

 



Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on July 06, 2013, 06:26:22 AM
Have been browsing my notes and found this which shows I might be wrong and at least we have the driver which is a good start

Your 8192cu USB wireless chip should work with

wireless-3.0.21-tinycore.tcz  which contains the rtl8192cu.ko  driver you're looking for.

All you need now is the firmware.  I have the older version and will submit it soon.  So look for
this extension  firmware-rtl8192u.tcz later

Alternatively you may try the extension  firmware-rtlwifi.tcz  which is in the tc-5.x repo, this has the latest firmware (rtl8192cufw.bin) for your wireless chip AIUI

Pleas let us know if
wireless-3.0.21-tinycore.tcz
and
firmware-rtlwifi.tcz
work for you

if the new firmware is not compatible, I'll make the older firmware version and submit it asap
 
Title: Re: no wireless extensions using usb-wlan adapter with chipset rtl8192cu
Post by: coreplayer2 on July 22, 2013, 02:42:58 AM
We have a working solution for this wireless chip available in TC-5,  if you'd care to try it?


Sent from my iPad using Tapatalk HD