wifi over SDIO

Started by olimexman, April 24, 2017, 05:56:14 PM

Previous topic - Next topic

olimexman

Hi,
We're doing a breakout board with wifi over SDIO, using the pins available through the expansion header. I'am confused about "script.fex" because it have a "[wifi_para]" section rather than "[sdio_wifi_para]", how should i change it in my case?
Thank's in advance
Daniel

LubOlimex

#1
These are equivalent. Just use the "[wifi_para]" section.

Edit: word
Technical support and documentation manager at Olimex

olimexman

Hi LubOlimex

Thank's for the response ... and sorry for too late resume ...

We have made the following changes to the script.bin:

[wifi_para]
wifi_used = 0 -> 1
wifi_sdc_id = 3
wifi_usbc_id = 2
wifi_usbc_type = 1
wifi_mod_sel = 3 -> 10
wifi_power = ""

Value for wifi_mod_sel based on this url: http://linux-sunxi.org/Fex_Guide
"10    rtl8189es    RTL8189ES(SM89E00)"

Trying ...

root@A20-OLinuXino:~# modprobe 8189es
modprobe: ERROR: could not insert '8189es': Operation not permitted

dmesg ...

[ 3475.188494] [mmc_pm]: No sdio card, please check your config !!
[ 3475.199194] [rtl8189es] rtw_drv_entry: mod_sel = 0 is incorrect.

Why could be the reason to claim "mod_sel = 0" ... no matter what value we set to wifi_mod_sel it always claim about mod_sel = 0 is incorrect ... could it be hard coded within the module?

Any clues are welcome ... we are locked with this :(

Thank's in advance

Daniel


LubOlimex

Technical support and documentation manager at Olimex

olimexman

#4
Hi LubOlimex,

Thank's for your responses ... we are currently using the legacy kernel rather than the mainline one ... the suggested driver won't compile using the legacy kernel as we discover ... probably because is designed for other kernel version superior (mainline kernel)

Then we have tried the last source code at this url "http://linux-sunxi.org/Wifi#8188eu_driver_on_sunxi-3.4" ... which must function on legacy kernel ... "https://github.com/LazyZhu/myblog/raw/gh-pages/file/RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104.zip"

It compile without errors and load with modprobe
root@A20-OLinuXino:~# lsmod
Module                  Size  Used by
disp_ump                 869  0
mali_drm                2616  1
drm                   207727  2 mali_drm
8189es                732194  0 <-------------------------------------<<
ftdi_sio               33939  0
...

But it won't work and not wlan0 interface exist

Then we search sdio bus status and found the following:

root@A20-OLinuXino:~# ls /sys/bus/sdio/devices/
It does not appear

root@A20-OLinuXino:~# ls /sys/bus/sdio/drivers
rtl8189es

In dmesg extract ... we could see this

[   11.629779] RTL871X: module init start version:v4.1.8_9499.20131104
[   11.641247] RTL871X: rtl8189es driver version=v4.1.8_9499.20131104
[   11.651231] RTL871X: build time: May 15 2017 18:34:53
[   11.660297] RTL871X: module init ret=0

The Realtek firmware folder

root@A20-OLinuXino:~# ls -lh /lib/firmware/rtlwifi/
total 640K
-rw-r--r-- 1 root root 2.3K May  8  2017 boot_xr819.bin
-rw-r--r-- 1 root root 124K May  8  2017 fw_xr819.bin
-rw-r--r-- 1 root root  11K Jun 15  2014 rtl8188efw.bin
-rw-r--r-- 1 root root  14K Jun 15  2014 rtl8188eufw.bin
-rw-r--r-- 1 root root  14K Jun 15  2014 rtl8192cfw.bin
-rw-r--r-- 1 root root  15K Jun 15  2014 rtl8192cfwU.bin
-rw-r--r-- 1 root root  15K Jun 15  2014 rtl8192cfwU_B.bin
-rw-r--r-- 1 root root  16K Jun 15  2014 rtl8192cufw.bin
-rw-r--r-- 1 root root  16K Jun 15  2014 rtl8192cufw_A.bin
-rw-r--r-- 1 root root  16K Jun 15  2014 rtl8192cufw_B.bin
-rw-r--r-- 1 root root  16K Jun 15  2014 rtl8192cufw_TMSC.bin
-rw-r--r-- 1 root root  23K Jun 15  2014 rtl8192defw.bin
-rw-r--r-- 1 root root  79K Jun 15  2014 rtl8192sefw.bin
-rw-r--r-- 1 root root 120K Jun 15  2014 rtl8712u.bin
-rw-r--r-- 1 root root  24K Jun 15  2014 rtl8723aufw_B.bin
-rw-r--r-- 1 root root  19K Jun 15  2014 rtl8723aufw_B_NoBT.bin
-rw-r--r-- 1 root root  31K Jun 15  2014 rtl8723befw.bin
-rw-r--r-- 1 root root  12K Jun 15  2014 rtl8723fw.bin
-rw-r--r-- 1 root root  23K Jun 15  2014 rtl8723fw_B.bin
-rw-r--r-- 1 root root  29K Jun 15  2014 rtl8821aefw.bin
-rw-r--r-- 1 root root  744 May  8  2017 sdd_xr819.bin

We are researching ... there is not firmware specific for 8189es as long as we see ...

Thank's in advance

Daniel