Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: mcdudeabides on March 17, 2014, 08:48:17 PM

Title: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on March 17, 2014, 08:48:17 PM
I have an existing piCore5.2alpha1 image that is able to boot the TP-Link WN725n (Realtek r8188eu firmware) USB NIC.

Code: [Select]
tc@TestPlayer:~$ uname -a
Linux TestPlayer 3.12.9-piCore #1 PREEMPT Sun Feb 9 09:42:09 CET 2014 armv6l GNU/Linux
tc@TestPlayer:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
tc@TestPlayer:~$ lsmod
Module                  Size  Used by    Tainted: G
snd_soc_hifiberry_dac     2091  0
snd_soc_pcm5102a        1390  1
bcm2708_dmaengine       5104  1
virt_dma                2021  1 bcm2708_dmaengine
snd_usb_audio       


  116218  0
snd_usbmidi_lib        18720  1 snd_usb_audio
snd_rawmidi            20133  1 snd_usbmidi_lib
snd_seq_device          6034  1 snd_rawmidi
snd_hwdep               5917  1 snd_usb_audio
snd_bcm2835            16116  1
r8188eu               794215  0
snd_soc_wm8804          7692  0
snd_soc_bcm2708_i2s     5486  2
snd_soc_core          115066  4 snd_soc_hifiberry_dac,snd_soc_pcm5102a,snd_soc_wm8804,snd_soc_bcm2708_i2s
snd_pcm_dmaengine       4564  1 snd_soc_core
snd_pcm                74840  6 snd_soc_hifiberry_dac,snd_usb_audio,snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_page_alloc          4680  1 snd_pcm
snd_timer              19270  1 snd_pcm
snd_compress            7974  1 snd_soc_core
snd                    56397 11 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_seq_device,snd_hwdep,snd_bcm2835,snd_soc_core,snd_pcm,snd_timer,snd_compress
regmap_i2c              1522  2 snd_soc_wm8804,snd_soc_core
regmap_spi              1778  2 snd_soc_wm8804,snd_soc_core
regmap_mmio             2673  1 snd_soc_bcm2708_i2s


dmesg output
Code: [Select]
[    2.125169] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.125368] Indeed it is in host mode hprt0 = 00001101
[    2.405606] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.405640] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.406660] hub 1-1:1.0: USB hub found
[    2.406964] hub 1-1:1.0: 3 ports detected
[    2.685265] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.785780] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.785814] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.788857] smsc95xx v1.0.4
[    2.850748] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet,
[    2.945232] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.046160] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8179
[    3.046194] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.046211] usb 1-1.2: Product: 802.11n NIC
[    3.046225] usb 1-1.2: Manufacturer: Realtek
[    3.046238] usb 1-1.2: SerialNumber: 00E04C0001
[    7.398093] Adding 106852k swap on /dev/zram0.  Priority:-1 extents:1 across:106852k SSFS
[    9.871095] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    9.962774] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   10.058966] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   24.037179] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[   24.200905] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[   24.508583] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_A_CUT_1T1R_RomVer(0)
[   24.610118] usbcore: registered new interface driver r8188eu
[   26.571759] usbcore: registered new interface driver snd-usb-audio
[   29.247843] usbcore: deregistering interface driver snd-usb-audio
[   29.512576] usbcore: registered new interface driver snd-usb-audio
[   29.923226] snd-hifiberry-dac snd-hifiberry-dac.0:  pcm5102a-hifi <-> bcm2708-i2s.0 mapping ok
[   30.566031] MAC Address =
[   32.482232] smsc95xx 1-1.1:1.0 eth0: hardware is[code]n't capable of remote wakeup
[   34.001769] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   34.791568] R8188EU: ERROR assoc success

I'm not sure the meaning of the last line as the NIC is able to associate and work properly.

In trying to bring up the NIC in Core5.2.1 the firmware fails to load.
Code: [Select]
tc@box:~$ uname -a
Linux box 3.13.6-piCore+ #1 PREEMPT Mon Mar 10 16:50:05 CET 2014 armv6l GNU/Linux
tc@box:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
tc@box:~$ lsmod
Module                  Size  Used by    Tainted: G
r8188eu               780504  0

dmesg output
Code: [Select]
[    4.395793] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    4.395826] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.396865] hub 1-1:1.0: USB hub found
[    4.397142] hub 1-1:1.0: 3 ports detected
[    4.675452] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.775817] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    4.775852] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.778817] smsc95xx v1.0.4
[    4.840560] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet,
[    4.935495] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    5.036478] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8179
[    5.036512] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.036527] usb 1-1.2: Product: 802.11n NIC
[    5.036541] usb 1-1.2: Manufacturer: Realtek
[    5.036553] usb 1-1.2: SerialNumber: 00E04C0001
[    9.434872] random: mkswap urandom read with 71 bits of entropy available
[    9.449046] Adding 106860k swap on /dev/zram0.  Priority:-1 extents:1 across:106860k SSFS
[   12.312835] random: nonblocking pool is initialized
[   12.373128] EXT4-fs (mmcblk0p2): recovery complete
[   12.375607] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   12.528941] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   26.198423] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[   26.435047] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_A_CUT_1T1R_RomVer(0)
[   26.578080] usbcore: registered new interface driver r8188eu
[   30.011655] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   31.537814] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[  242.762409] r8188eu 1-1.2:1.0: Direct firmware load failed with error -2
[  242.762439] r8188eu 1-1.2:1.0: Falling back to user helper

Was there a change in the firmware between releases that is causing a failure for the firmware to load?  It appears that the size of r8188eu was 794215 for piCore5.2a1 and shrunk to 780504 in Core5.2.1. Any information would be most appreciated.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on March 18, 2014, 02:53:00 AM
It is a staging (experimental) driver which may work or may not. Different size indicates change in the kernel. It is no related to piCore but the Kernel.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: sbp on March 18, 2014, 09:23:14 AM
Hi, Im also getting a lot questions from piCorePlayer user regarding this wifi - it is not working for them with the new version.

I have seen in the raspberry forum that this wifi adaptor is poorly supported, and a user MREngmann http://www.raspberrypi.org/phpBB3/viewtopic.php?p=462982#p462982 (http://www.raspberrypi.org/phpBB3/viewtopic.php?p=462982#p462982) is providing help. It seems like it is dependent upon a firmware file also - the file rtl8188eufw.bin.

Unfortunately, I'm away from my computer the next days, so I can't check if this firmware is included in the new piCore?

Steen
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on March 18, 2014, 10:51:14 AM
Thanks to both for your replies.  At least it confirms I'm not imagining things.

@Steen - the working image is from an older piCorePlayer release.  I will continue to use this as one of my players as I reconstruct my music system.  I have two different adapters in other players working with latest now (EDIMAX and ASUS N10).  As new piCore releases evolve, I can test against the TP-Link and report back.  Unfortunate that the vendor support is not better.  These seem to be readily available and most economical (<$10US) in my area.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on March 18, 2014, 11:17:54 AM
Is firmware-rtlwifi.tcz installed?

In the last four month there was only one change in the driver source, an ID change. We can revert this change to see wheher it is the problem or not.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on March 18, 2014, 05:35:00 PM
Is firmware-rtlwifi.tcz installed?


I loaded both firmware and firmware-rtlwifi.  Here are extensions:

Code: [Select]
tc@box:~$ df
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   218.4M         0    218.4M   0% /dev/shm
/dev/mmcblk0p2            3.5G     12.6M      3.4G   0% /mnt/mmcblk0p2
/dev/loop0              336.0K    336.0K         0 100% /tmp/tcloop/slang
/dev/loop1               16.0K     16.0K         0 100% /tmp/tcloop/libgpg-error
/dev/loop2              256.0K    256.0K         0 100% /tmp/tcloop/libgcrypt
/dev/loop3               64.0K     64.0K         0 100% /tmp/tcloop/libssh2
/dev/loop4               16.0K     16.0K         0 100% /tmp/tcloop/libffi
/dev/loop5               28.0K     28.0K         0 100% /tmp/tcloop/gamin
/dev/loop6                1.3M      1.3M         0 100% /tmp/tcloop/glib2
/dev/loop7                1.2M      1.2M         0 100% /tmp/tcloop/mc
/dev/loop8                1.4M      1.4M         0 100% /tmp/tcloop/openssl-1.0.0
/dev/loop9                1.0M      1.0M         0 100% /tmp/tcloop/openssh
/dev/loop10               2.4M      2.4M         0 100% /tmp/tcloop/wireless-3.13.6-piCore+
/dev/loop11              16.0K     16.0K         0 100% /tmp/tcloop/libiw
/dev/loop12              52.0K     52.0K         0 100% /tmp/tcloop/wireless_tools
/dev/loop13              12.0K     12.0K         0 100% /tmp/tcloop/ncurses-common
/dev/loop14             148.0K    148.0K         0 100% /tmp/tcloop/ncurses
/dev/loop15             112.0K    112.0K         0 100% /tmp/tcloop/readline
/dev/loop16             232.0K    232.0K         0 100% /tmp/tcloop/libnl
/dev/loop17             340.0K    340.0K         0 100% /tmp/tcloop/wpa_supplicant
/dev/loop18               8.0K      8.0K         0 100% /tmp/tcloop/wifi
/dev/loop19              28.0K     28.0K         0 100% /tmp/tcloop/libusb
/dev/loop20             432.0K    432.0K         0 100% /tmp/tcloop/usbutils
/dev/loop21               2.9M      2.9M         0 100% /tmp/tcloop/firmware
/dev/loop22             204.0K    204.0K         0 100% /tmp/tcloop/firmware-rtlwifi
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: GreatDane on March 19, 2014, 03:21:00 PM
I can confirm exactly the same problem. By going back to the older kernel version 3.12.9, the TP-Link WN725N v2 (r8188eu) works perfectly for me again. However, it would be very nice to get it to work in the present kernel also.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on March 19, 2014, 04:27:15 PM
Rebuilt rtl8088eu driver from 3.12.9 source, wireless-3.13.6-piCore+.tcz updated in repo. All other items unchanged. Please try.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on March 19, 2014, 06:45:54 PM
Success!
Code: [Select]
tc@box:~$ sudo wifi.sh
Found wifi device wlan0
Standby for scan of available networks...
Set to try a few times to obtain a lease.
Sorting

Select Wifi Network

    ESSID                         Enc   Qual    Channel Type
 1. 2WIRE164                       on     0       1     WPA
 2. McHouse                       off     0       2
 3. McHouse                       off     0       7

Enter selection ( 1 - 3 ) or (q)uit: 2
..
udhcpc (v1.22.1) started
Sending discover...
Sending select for 192.168.1.230...
Lease of 192.168.1.230 obtained, lease time 86400
deleting routers
adding dns 192.168.1.1

dmesg shows r8188eu registered
Code: [Select]
[    4.125412] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    4.125607] Indeed it is in host mode hprt0 = 00001101
[    4.395785] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    4.395818] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.396850] hub 1-1:1.0: USB hub found
[    4.397154] hub 1-1:1.0: 3 ports detected
[    4.675454] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.775964] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    4.775997] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.779069] smsc95xx v1.0.4
[    4.840809] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet,
[    4.935492] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    5.036863] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8179
[    5.036896] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.036912] usb 1-1.2: Product: 802.11n NIC
[    5.036925] usb 1-1.2: Manufacturer: Realtek
[    5.036938] usb 1-1.2: SerialNumber: 00E04C0001
[    9.432652] random: mkswap urandom read with 71 bits of entropy available
[    9.446869] Adding 106892k swap on /dev/zram0.  Priority:-1 extents:1 across:106892k SSFS
[   12.207875] random: nonblocking pool is initialized
[   12.317385] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   12.468498] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   25.908059] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[   25.980180] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_A_CUT_1T1R_RomVer(0)
[   26.024165] usbcore: registered new interface driver r8188eu
[   27.811973] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   29.419549] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[  109.596071] MAC Address =
[  128.453108] R8188EU: ERROR assoc success
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on March 20, 2014, 01:51:37 AM
Thanks for the feadback. Lets see others :)
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: GreatDane on March 20, 2014, 02:29:47 AM
Great, thank you for swift action and good feedback on this problem. Now only looking forward to Steen hopefully being able to resolve this problem in forthcoming versions of piCorePlayer ;-)
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on March 20, 2014, 11:09:04 PM
If you have the WN725 and would like to help verify the driver fix before the next piCorePlayer release, you can try the following with the existing 1.14 image: 
1) Connect your player to the router directly with wired Ethernet
2) Boot and log in via SSH (or your preference)
3) Remove the existing wifi extension
Code: [Select]
tc@piCorePlayer:~$ tce-audit builddb
Building Extension Database from /etc/sysconfig/tcedir/optional
................................
tc@piCorePlayer:~$ tce-audit delete wifi
/etc/sysconfig/tcedir/optional/wifi.tcz
/etc/sysconfig/tcedir/optional/wireless_tools.tcz
/etc/sysconfig/tcedir/optional/libiw.tcz
/etc/sysconfig/tcedir/optional/wireless-3.13.6-piCore+.tcz
/etc/sysconfig/tcedir/optional/wpa_supplicant.tcz
/etc/sysconfig/tcedir/optional/openssl-1.0.0.tcz
/etc/sysconfig/tcedir/optional/libnl.tcz
tc@piCorePlayer:~$ sudo reboot
4) reboot
5) SSH back in
6) install the wifi extension
Code: [Select]
tc@piCorePlayer:~$ tce-load -wi wifi.tcz
wireless_tools.tcz.dep OK
wpa_supplicant.tcz.dep OK
readline.tcz.dep OK
Downloading: wireless-3.13.6-piCore+.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wireless-3.13.6-piCo 100% |********************************************************************************************************************************|  2468k  0:00:00 ETA
wireless-3.13.6-piCore+.tcz: OK
Downloading: libiw.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libiw.tcz            100% |********************************************************************************************************************************| 16384   0:00:00 ETA
libiw.tcz: OK
Downloading: wireless_tools.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wireless_tools.tcz   100% |********************************************************************************************************************************| 53248   0:00:00 ETA
wireless_tools.tcz: OK
Downloading: readline.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
readline.tcz         100% |********************************************************************************************************************************|   112k  0:00:00 ETA
readline.tcz: OK
Downloading: openssl-1.0.0.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
openssl-1.0.0.tcz    100% |********************************************************************************************************************************|  1420k  0:00:00 ETA
openssl-1.0.0.tcz: OK
Downloading: libnl.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libnl.tcz            100% |********************************************************************************************************************************|   232k  0:00:00 ETA
libnl.tcz: OK
Downloading: wpa_supplicant.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wpa_supplicant.tcz   100% |********************************************************************************************************************************|   340k  0:00:00 ETA
wpa_supplicant.tcz: OK
Downloading: wifi.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wifi.tcz             100% |********************************************************************************************************************************|  8192   0:00:00 ETA
wifi.tcz: OK
7) reboot
8) follow the normal setup procedure (//picoreplayer:8077)

Let us know if you also get a working adapter.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: GreatDane on March 21, 2014, 01:09:22 PM
Just came home and tested on my equipment. Now it works perfectly for me, too with my modified piCorePlayer 1.14, listening to nice music as I write this. Thank you very much to Bela Markus for rebuilding and uploading the driver, and to mcdudeabides for giving detailed instructions on how to get the new version installed.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on March 21, 2014, 01:12:17 PM
You are welcome

:)
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on March 22, 2014, 03:28:31 AM
Ditto :-)
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bcdaus on March 22, 2014, 09:52:31 PM
I can confirm this fix also works for my cheap Fast R8188EU based dongle - http://imall.iteadstudio.com/wireless/gsm-gprs-and-wifi/fast-mini-wifi-usb-adapter-150mbps-dongle.html.

Thanks to you both for the update and the clear instructions.

Thanks,
Bill.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on April 08, 2014, 04:05:00 AM
In piCore-5.3alpha1 driver built from unmodified source, means Power saving enabled. Please try, whether there is a change or not.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on April 08, 2014, 09:34:12 AM
In piCore-5.3alpha1 driver built from unmodified source, means Power saving enabled. Please try, whether there is a change or not.

Appears that rtl8188eu (TP-Link WN-725n) regression is back. 
Code: [Select]
tc@box:~$ uname -a
Linux box 3.14.0-piCore+ #1 PREEMPT Sun Apr 6 19:53:00 CEST 2014 armv6l GNU/Linux
tc@box:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
tc@box:~$ lsmod
Module                  Size  Used by    Tainted: G
r8188eu               734082  0
regmap_i2c              1534  0
regmap_spi              1786  0
regmap_mmio             2669  0

dmesg output.  r8188eu appears to register
Code: [Select]
[    3.891022] Indeed it is in host mode hprt0 = 00021501
[    4.131076] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    4.131264] Indeed it is in host mode hprt0 = 00001101
[    4.411395] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    4.411429] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.412342] hub 1-1:1.0: USB hub found
[    4.412478] hub 1-1:1.0: 3 ports detected
[    4.691057] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.791287] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    4.791319] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.794469] smsc95xx v1.0.4
[    4.871243] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet,
[    4.951120] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    5.051694] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8179
[    5.051730] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.051745] usb 1-1.2: Product: 802.11n NIC
[    5.051758] usb 1-1.2: Manufacturer: Realtek
[    5.051771] usb 1-1.2: SerialNumber: 00E04C0001
[    9.441632] random: mkswap urandom read with 27 bits of entropy available
[    9.455620] Adding 106816k swap on /dev/zram0.  Priority:-1 extents:1 across:106816k SSFS
[   12.377366] EXT4-fs (mmcblk0p2): recovery complete
[   12.379850] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   12.523196] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   14.874581] random: nonblocking pool is initialized
[   25.364830] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[   25.537217] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_A_CUT_1T1R_RomVer(0)
[   25.791043] usbcore: registered new interface driver r8188eu
[   30.461584] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   32.063805] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

I did try the full wifi.sh setup, but I included only the iwlist results below for brevity
Code: [Select]
tc@box:~$ iwconfig
wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

dummy0    no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.

tunl0     no wireless extensions.

tc@box:~$ iwlist wlan0 scanning
wlan0     No scan results

At least iwconfig shows power management off.  I have a generic adapter that works with 5.3a1.  Will post that next.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on April 08, 2014, 09:45:19 AM
Output from generic r8192cu adapter.

Code: [Select]
tc@box:~$ uname -a
Linux box 3.14.0-piCore+ #1 PREEMPT Sun Apr 6 19:53:00 CEST 2014 armv6l GNU/Linux
tc@box:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
8192cu                545767  0
regmap_i2c              1534  0
regmap_spi              1786  0
regmap_mmio             2669  0

dmesg output
Code: [Select]
[    3.890986] Indeed it is in host mode hprt0 = 00021501
[    4.131048] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    4.131235] Indeed it is in host mode hprt0 = 00001101
[    4.411378] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    4.411412] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.412328] hub 1-1:1.0: USB hub found
[    4.412480] hub 1-1:1.0: 3 ports detected
[    4.691099] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.791320] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    4.791355] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.794519] smsc95xx v1.0.4
[    4.854680] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet,
[    4.931103] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    5.032689] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8176
[    5.032723] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.032738] usb 1-1.2: Product: 802.11n WLAN Adapter
[    5.032752] usb 1-1.2: Manufacturer: Realtek
[    5.032764] usb 1-1.2: SerialNumber: 00e04c000001
[    9.440222] random: mkswap urandom read with 27 bits of entropy available
[    9.454381] Adding 106820k swap on /dev/zram0.  Priority:-1 extents:1 across:106820k SSFS
[   12.366870] EXT4-fs (mmcblk0p2): recovery complete
[   12.369350] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   12.513526] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   14.863887] random: nonblocking pool is initialized
[   27.494116] usbcore: registered new interface driver rtl8192cu
[   30.559546] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   32.153823] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

This adapter responds to scan.  At least iwconfig shows power saving off.
Code: [Select]
tc@box:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"McHouse"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.442 GHz  Access Point: 48:5B:39:39:CE:64
          Bit Rate:150 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=100/100  Signal level=100/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

dummy0    no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.

tunl0     no wireless extensions.

tc@box:~$ iwlist wlan0 scanning
wlan0     Scan completed :
          Cell 01 - Address:
                    ESSID:"2WIRE164"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Extra:wpa_ie=dd1a0050f20101000050f20202000050f2040050f20201000050f202
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    Extra:rsn_ie=30180100000fac020200000fac04000fac020100000fac020000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    Quality=100/100  Signal level=100/100
          Cell 02 - Address:
                    ESSID:"McHouse"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.417 GHz (Channel 2)
                    Encryption key:off
                    Bit Rates:300 Mb/s
                    Quality=15/100  Signal level=47/100
          Cell 03 - Address:
                    ESSID:"McHouse"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.442 GHz (Channel 7)
                    Encryption key:off
                    Bit Rates:300 Mb/s
                    Quality=100/100  Signal level=100/100
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: sbp on April 25, 2014, 02:22:22 AM
Rebuilt rtl8088eu driver from 3.12.9 source, wireless-3.13.6-piCore+.tcz updated in repo. All other items unchanged. Please try.

Hi bmarkus.

It seems like support for this wifi is broken again in the 3.14 versions of piCore and piCorePlayer.
I noticed that MREngmand who has been providing drivers for this wifi in the raspberry forum, stated that the new version was working, but it needed a firmware. It needs rtl8188eufw.bin which is not included in our rtlfirmware package.
http://www.raspberrypi.org/forums/viewtopic.php?f=91&t=29752&start=175 (http://www.raspberrypi.org/forums/viewtopic.php?f=91&t=29752&start=175)

So maybe we need this firmware in our firmware package?
Or would it be better to continue rebuilding an older driver for use in the newer kernels?

Steen
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on April 25, 2014, 02:42:17 AM

So maybe we need this firmware in our firmware package?
Or would it be better to continue rebuilding an older driver for use in the newer kernels?


Better to try the current 3.14.y driver. Can you provide the missing firmware? If so, I add it to firmware-rtlwifi.tcz
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: sbp on April 25, 2014, 03:00:16 AM
Private message sent.

Steen
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on April 25, 2014, 03:14:36 AM
Private message sent.

Steen

Dowloaded, thanks Will update tcz in repo today.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on April 25, 2014, 04:33:16 AM
 firmware-rtlwifi.tcz updated in repo. Please try.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: mcdudeabides on April 25, 2014, 09:51:37 AM
firmware-rtlwifi.tcz updated in repo. Please try.

Installed latest firmware with WN725 NIC and 3.14.0 kernel (piCorePlayer 1.15 image).  It appears to work correctly on initial installation.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: GreatDane on May 15, 2014, 03:09:58 PM
Sorry about reviving this old thread, but I have just updated Steen's piCorePlayer to version 1.15e (kernel 3.14.2-piCore+) and again my TP-Link WN725N v2 USB NIC (r8188eu) does not seem to work. I have tried to repeat previous instructions for an older kernel (older post in this thread), but it does not seem to solve the problem. Could anybody please provide me with instructions on how to get it back to working condition? Did you work out a permanent solution (or work around instructions that work across different kernel versions) for this problem? Thank you very much.
Title: Re: r8188eu firmware fail from piCore5.2a1 to Core5.2.1?
Post by: bmarkus on May 15, 2014, 03:21:12 PM
Sorry about reviving this old thread, but I have just updated Steen's piCorePlayer to version 1.15e (kernel 3.14.2-piCore+) and again my TP-Link WN725N v2 USB NIC (r8188eu) does not seem to work. I have tried to repeat previous instructions for an older kernel (older post in this thread), but it does not seem to solve the problem. Could anybody please provide me with instructions on how to get it back to working condition? Did you work out a permanent solution (or work around instructions that work across different kernel versions) for this problem? Thank you very much.

As piCorePlayer comes with its own kernel usually better to discuss it on the piCorePlayer page.

However I would appreciate if you could try the current piCore-5.3rc4 with your setup and report back here.