Bananian Linux - Bananian Linux
View Issue Details
0000106Bananian Linux[All Projects] Kernelpublic2015-02-04 07:152015-08-08 15:08
lmsilva 
Nico 
highcrashrandom
resolvedfixed 
 
15.01 
15.0815.08 
0000106: Request to patch Realtek driver for 8192cu / 8188cu devices
I've been having some random crashes in my BPI-R1 and, after looking into it, I suspect the problem is related with the realtek drivers that ship with bananapi.

My system was stable and, after installing hostapd (as described here http://forum.lemaker.org/thread-13017-1-1-setting_up_wlan0_as_an_access_point_in_bpi_r1.html [^]), I started experiencing random crashes.

Today, as I looked deeper into it, I found these two git repos:
- this includes a patch to hostapd, so it supports the realtek wifi hardware on the BPI-R1
https://github.com/pritambaral/hostapd-rtl871xdrv [^]
- and then I found this other repo, where they have updated realtek drivers, based on some official drivers released by Realtek several years ago:
https://github.com/dz0ny/rt8192cu [^]

According to the repo's readme:
"The in-tree kernel drivers for these devices do not work so the official realtek drivers have to be used. Gladly, these were released as GPL code so we can publish them freely. Unfortunately, they have some issues with 64bit machines so this repository contains the fixes to make them work."

They do not claim official support but, knowing that the official drivers that ship with the kernel are broken, it might be a good idea to look into this.
Hard to reproduce...but...try and install hostapd on a BPI-R1 (as described here http://forum.lemaker.org/thread-13017-1-1-setting_up_wlan0_as_an_access_point_in_bpi_r1.html [^]) and use the device as an access point!
A few minutes / hours later, the system with crash with no apparent reason.
I'll gladly work with you guys and try out these drivers but I don't think I can do it without your help (seeing I do not have access to Bananian's linux headers).
No tags attached.
has duplicate 0000120resolved Nico hostapd from official debian repo on BPI-R1 don't work (need rtl8188 patches) 
? hostapd_1.0-3+deb7u2_armhf.deb (405,940) 2015-03-10 15:22
https://dev.bananian.org/file_download.php?file_id=7&type=bug
gz wpa_1.0-3+deb7u2.debian.tar.gz (106,405) 2015-03-10 17:00
https://dev.bananian.org/file_download.php?file_id=8&type=bug
? wpa_1.0-3+deb7u2.dsc (1,597) 2015-03-10 17:00
https://dev.bananian.org/file_download.php?file_id=9&type=bug
? wpa_1.0-3+deb7u2_source.changes (1,298) 2015-03-10 17:00
https://dev.bananian.org/file_download.php?file_id=10&type=bug
gz wpa_1.0.orig.tar.gz (1,973,926) 2015-03-10 17:00
https://dev.bananian.org/file_download.php?file_id=11&type=bug
Issue History
2015-02-04 07:15lmsilvaNew Issue
2015-02-27 10:16NicoAssigned To => Nico
2015-02-27 10:16NicoStatusnew => assigned
2015-03-10 15:22pludikovskyFile Added: hostapd_1.0-3+deb7u2_armhf.deb
2015-03-10 15:23pludikovskyNote Added: 0000177
2015-03-10 16:24NicoNote Added: 0000178
2015-03-10 17:00pludikovskyFile Added: wpa_1.0-3+deb7u2.debian.tar.gz
2015-03-10 17:00pludikovskyFile Added: wpa_1.0-3+deb7u2.dsc
2015-03-10 17:00pludikovskyFile Added: wpa_1.0-3+deb7u2_source.changes
2015-03-10 17:00pludikovskyFile Added: wpa_1.0.orig.tar.gz
2015-03-10 17:02pludikovskyNote Added: 0000179
2015-03-28 17:16jekaderNote Added: 0000186
2015-04-01 19:30NicoNote Added: 0000189
2015-04-01 19:40lmsilvaNote Added: 0000190
2015-04-04 21:35NicoRelationship addedrelated to 0000120
2015-04-04 21:36NicoTarget Version => 16.04
2015-08-08 13:40NicoRelationship replacedhas duplicate 0000120
2015-08-08 13:41NicoTarget Version16.04 => 15.08
2015-08-08 15:08NicoNote Added: 0000264
2015-08-08 15:08NicoStatusassigned => resolved
2015-08-08 15:08NicoFixed in Version => 15.08
2015-08-08 15:08NicoResolutionopen => fixed

Notes
(0000177)
pludikovsky   
2015-03-10 15:23   
I have made an attempt to integrate the RealTek sources for 0.8 into the 1.0 Debian package.
So far it compiles & hostapd starts, but I haven't tested it beyond that yet. The package is attached to this ticket, sources available on request.
(0000178)
Nico   
2015-03-10 16:24   
Thank you. Please provide sources. We won't integrate anything without complete sources.
(0000179)
pludikovsky   
2015-03-10 17:02   
Attached the requested source files, which should be everything required to build the package(s).
(0000186)
jekader   
2015-03-28 17:16   
I want to note that I also applied the realtek patchset against hostapd-2.4

the sources are here:
https://github.com/jekader/hostapd-rtl [^]

the Debian package is named hostapd-rtl and conflicts with "normal" hostapd to avoid confusion for users.
(0000189)
Nico   
2015-04-01 19:30   
great work, thank you jekader! I've just forked your repository on GitHub
(0000190)
lmsilva   
2015-04-01 19:40   
You guys are awesome, thank you so much for working on this :o)
(0000264)
Nico   
2015-08-08 15:08   
The package will be in the Bananian 15.08 repository:
jessie|main|armhf: hostapd-rtl 2.4-4