WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: RTL8191SU on piCore 6.1beta1  (Read 5405 times)

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
RTL8191SU on piCore 6.1beta1
« on: April 14, 2015, 10:36:20 AM »
Hello,
I'm trying to use a wifi dongle with a realtek RTL8191SU (after installing the wifi.tcz extension of course) and the device is not found.
After some research it seems that the right driver is the rtl8712u that I thought it is included on the wireless extension.
Am I wrong? do I need to activate / load anything else?
I'm testing the piCore 6.1beta1 version

Thank you

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
RTL8191SU on piCore 6.1beta1
« Reply #1 on: April 14, 2015, 11:48:21 AM »
Check wifi related messages at the end of dmesg
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
Re: RTL8191SU on piCore 6.1beta1
« Reply #2 on: April 18, 2015, 09:59:39 AM »
Hello, Sorry for the delay answering:

This is the dmesg relevant part:
Code: [Select]
[    3.112869] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.215729] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8172
[    3.215769] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.215789] usb 1-1.2: Product: RTL8191S WLAN Adapter
[    3.215810] usb 1-1.2: Manufacturer: Manufacturer Realtek
[    3.215829] usb 1-1.2: SerialNumber: 00e04c000001

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: RTL8191SU on piCore 6.1beta1
« Reply #3 on: April 18, 2015, 11:39:32 AM »
It's clear that the driver is not loaded, probably not present in the kernel package. Try to install the firmware-realtek. But I'm afraid that the idVendor=0bda, idProduct=8172 is not listed either. To use it that the driver need to be updated, means recompiled which is not so easy.

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
Re: RTL8191SU on piCore 6.1beta1
« Reply #4 on: April 18, 2015, 04:18:42 PM »
Hello,
The RTL8191S is not a very new chipset and I have found some post regarding tinycorelinux to include it on the old wl-rtl8712u-3.0.21-tinycore.tcz extension that now is the current wireless extension.
For example on an ubuntu distro 14.10 the dongle works without needing to load any extra module.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: RTL8191SU on piCore 6.1beta1
« Reply #5 on: April 18, 2015, 07:35:01 PM »
Is wireless-3.18.10-piCore+.tcz (wireless-3.18.10_v7-piCore+.tcz on RPI2) installed?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
Re: RTL8191SU on piCore 6.1beta1
« Reply #6 on: April 19, 2015, 05:17:38 AM »
Yes, it is included on the onbootlist just after loading the wifi.tcz extension.

After booting, if I call the "wifi" script, it hang the session and doens't do anything.
And if I try "sudo wifi.sh"
It returns with "No wifi devices found!"

Is there anything more that I can check  or provide the output?

Thank you for helping
« Last Edit: April 19, 2015, 05:33:59 AM by gpulido »

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: RTL8191SU on piCore 6.1beta1
« Reply #7 on: April 19, 2015, 10:14:51 AM »
Some drivers were in the kernel, but later they were removed and later on again put there. What was working with older kernel don't mean that it will work now. Check the kernel module directory if the driver is there. If no, try to install firmware-realtek. Than replug the dongle.

Use
Code: (bash) [Select]
lsmodand look if the module is there, mostly at the top. If no, than the issue is still in the driver.

If yes, than try:
Code: (bash) [Select]
iwconfigThere may appear wlan0. If it is there, than everything will work fine.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: RTL8191SU on piCore 6.1beta1
« Reply #8 on: April 19, 2015, 10:18:48 AM »
Does it work with the current Raspbian? If so please post dmesg and lsmod output.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
Re: RTL8191SU on piCore 6.1beta1
« Reply #9 on: April 19, 2015, 11:01:38 AM »
Some drivers were in the kernel, but later they were removed and later on again put there. What was working with older kernel don't mean that it will work now. Check the kernel module directory if the driver is there. If no, try to install firmware-realtek. Than replug the dongle.

Use
Code: (bash) [Select]
lsmodand look if the module is there, mostly at the top. If no, than the issue is still in the driver.

If yes, than try:
Code: (bash) [Select]
iwconfigThere may appear wlan0. If it is there, than everything will work fine.

lsmod returns the following:
Code: [Select]
Module                  Size  Used by    Tainted: G 
i2c_dev                 6657  0
r8712u                188192  0
evdev                  10888  0
uio_pdrv_genirq         3646  0
uio                     9941  1 uio_pdrv_genirq

and iwconfig:
Code: [Select]
lo        no wireless extensions.
eth0      no wireless extensions.

So it seems that the module is loaded (the r8712u is the one to be used for the RTL8191SU) but it is still not working

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
Re: RTL8191SU on piCore 6.1beta1
« Reply #10 on: April 19, 2015, 11:07:18 AM »
Does it work with the current Raspbian? If so please post dmesg and lsmod output.

It works in raspbian:
dmesg relevant parts:
Code: [Select]
[    3.262763] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.375662] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8172
[    3.386986] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.398802] usb 1-1.2: Product: RTL8191S WLAN Adapter
[    3.410819] usb 1-1.2: Manufacturer: Manufacturer Realtek
[    3.420813] usb 1-1.2: SerialNumber: 00e04c000001
[    9.039591] r8712u: Staging version
[    9.270429] r8712u: register rtl8712_netdev_ops to netdev_ops
[    9.592621] r8712u: USB_SPEED_HIGH with 4 endpoints
[    9.804864] r8712u: Boot from EFUSE: Autoload OK
[   10.999760] r8712u: CustomerID = 0x0000
[   11.057996] r8712u: MAC Address from efuse = 00:0b:81:99:1d:6d
[   11.077203] r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
[   11.094553] usbcore: registered new interface driver r8712u
[   26.973223] r8712u: 1 RCR=0x153f00e
[   26.974224] r8712u: 2 RCR=0x553f00e
lsmod output:

Code: [Select]
Module                  Size  Used by
snd_bcm2835            16304  0
snd_pcm                77560  1 snd_bcm2835
snd_page_alloc          5145  1 snd_pcm
snd_seq                53329  0
snd_seq_device          6438  1 snd_seq
snd_timer              19998  2 snd_pcm,snd_seq
snd                    58447  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
spidev                  5224  0
r8712u                168195  0
joydev                  9316  0
evdev                   9426  2
i2c_bcm2708             3923  0
spi_bcm2708             4816  0

Just as info:
Code: [Select]
uname -a
Linux raspberrypi 3.6.11+ #494 PREEMPT Fri Jul 5 15:30:31 BST 2013 armv6l GNU/Linux

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: RTL8191SU on piCore 6.1beta1
« Reply #11 on: April 19, 2015, 11:25:00 AM »
r8712u kernel modul provided by wireless-3.18.10-piCore+.tcz and firmware by firmware-rtlwifi.tcz


Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
Re: RTL8191SU on piCore 6.1beta1
« Reply #12 on: April 19, 2015, 11:40:19 AM »
It worked!!

I have added the firmware-rtlwifi.tcz extension to be loaded after the wireless and before the wifi.tcz and now the wifi.sh script works.

Thank you all for your help and support!