[Solved] Tinker Board S. Wireless problems

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[Solved] Tinker Board S. Wireless problems

Postby TheSaint » Sat Aug 18, 2018 12:48 pm

Hi forum.

After some trouble I got my TB S running with ALarm kernel. So I supposed to start un update, but there I got a stop. No wireless.
First discovery
Code: Select all
# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 88:d7:f6:c2:f1:42 brd ff:ff:ff:ff:ff:ff

I've tried to load the module
Code: Select all
# modprobe r8723bs
[ 2827.606079] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[ 2827.619605] RTL8723BS: module init start
[ 2827.624396] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 2827.632418] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[ 2827.639892] RTL8723BS: module init ret =0

# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 88:d7:f6:c2:f1:42 brd ff:ff:ff:ff:ff:ff

# lsmod |grep 8723
r8723bs               573440  0
cfg80211              294912  3 rt2x00lib,mac80211,r8723bs

So for such difficulty I thought to use a WiFi dongle.
Code: Select all
# modprobe rt2800usb
[ 2480.931107] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2480.947173] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2480.958840] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2480.968504] cfg80211: failed to load regulatory.db
[ 2480.993613] usbcore: registered new interface driver rt2800usb
[root@alarm alarm]# ip link

# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 88:d7:f6:c2:f1:42 brd ff:ff:ff:ff:ff:ff

I think I should find another way to connect to internet. But even via ethernet I'm facing hard time. I presume the most cause is to renew the crda package and the certificates.
Last edited by TheSaint on Wed Aug 29, 2018 6:53 am, edited 1 time in total.
TheSaint
 
Posts: 242
Joined: Mon Jul 23, 2018 7:57 am

Re: Tinker Board S. Wireless problems

Postby summers » Sun Aug 19, 2018 8:32 am

you could try
Code: Select all
modprobe r8723bs debug_level=1
where the number can go up to 5, it will have the module put more messages in "dmesg" and may (or may not) help ...
summers
 
Posts: 537
Joined: Sat Sep 06, 2014 12:56 pm

Re: Tinker Board S. Wireless problems

Postby TheSaint » Sun Aug 19, 2018 12:13 pm

Messages are already shown, because the kernel uses the same tty for messages. Anyway I'll increase the verbosity ;)
TheSaint
 
Posts: 242
Joined: Mon Jul 23, 2018 7:57 am

Re: Tinker Board S. Wireless problems

Postby summers » Sun Aug 19, 2018 12:20 pm

and another thought, your wifi chip uses sdio - and as it is an sdio I enabled to try and get eMMC working, the sdio maybe connected to either the eMMC or the wifi.

So if the new device tree doesn't help with eMMC, does it help with the wifi?
summers
 
Posts: 537
Joined: Sat Sep 06, 2014 12:56 pm

Re: Tinker Board S. Wireless problems

Postby TheSaint » Sun Aug 19, 2018 1:22 pm

As I mentioned early, the wifi works with linaro kernel and module. In most of the cases, don't matter the media.
It's just missing the AP and STA option, then It will the optimum :)
Anyway, I plugged the Dlink DWA125 dongle and tried to load the module rt2x00usb. The module loaded fine but no devices came up. I'll go deeper to check it.
TheSaint
 
Posts: 242
Joined: Mon Jul 23, 2018 7:57 am

Re: Tinker Board S. Wireless problems

Postby TheSaint » Sun Aug 19, 2018 8:12 pm

I'm running with SD. Trying the module this is the output:
Code: Select all
# dmesg |tail
[  556.044055] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[  556.051428] RTL8723BS: module init ret =0
[  855.890994] RTL8723BS: module exit start
[  855.895443] RTL8723BS: module exit success
[  875.771815] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[  875.784615] r8723bs: unknown parameter 'debug_level' ignored
[  875.791221] RTL8723BS: module init start
[  875.795646] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[  875.803550] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[  875.810896] RTL8723BS: module init ret =0

Anyway, it doesn't come with a device in ip link
A side note.... Luckily I got the NIC working :)

EDIT

Additional information:
Code: Select all
# modinfo r8723bs                 
filename:       /lib/modules/4.17.11-1-ARCH/kernel/drivers/staging/rtl8723bs/r8723bs.ko.gz
version:        v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     35FFCFAD661F9E4C6BBD0F4
alias:          sdio:c*v024CdB723*
alias:          sdio:c*v024Cd0626*
alias:          sdio:c*v024Cd0623*
alias:          sdio:c*v024Cd0523*
alias:          acpi*:OBDA8723:*
depends:        cfg80211
staging:        Y
intree:         Y
name:           r8723bs
vermagic:       4.17.11-1-ARCH SMP preempt mod_unload modversions ARMv7 p2v8
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_btcoex_enable:Enable BT co-existence mechanism (int)
parm:           rtw_ant_num:Antenna number setting (int)
parm:           rtw_qos_opt_enable:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           rtw_initmac:charp
parm:           rtw_channel_plan:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_ampdu_amsdu:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_rf_config:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable:int
parm:           rtw_80211d:Enable 802.11d mechanism (int)
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm:           rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_phy_file_path:The path of phy parameter (charp)
parm:           rtw_load_phy_file:PHY File Bit Map (int)
parm:           rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
TheSaint
 
Posts: 242
Joined: Mon Jul 23, 2018 7:57 am

Re: Tinker Board S. Wireless problems

Postby TheSaint » Tue Aug 28, 2018 11:05 am

Almost working condition with linux 4.17, I'm back to arrange some test for the wifi.
The hardware is working now, but I've the problem that the installation doesn't provide the necessary to connect wireless.

So actually I'm facing to to set up the necessary to connect to my access point. The installation doesn't provide wpa_supplicant and openssl installed.

I think I have to work with a chroot from another installation.

EDIT

Worked in chroot, but it seems that I'm not lucky.
Code: Select all
Jul 05 20:07:27 alarm systemd[1]: Starting Networking for netctl profile wireless-wpa...
Jul 05 20:07:27 alarm network[618]: Starting network profile 'wireless-wpa'...
Jul 05 20:07:27 alarm network[618]: wpa_supplicant: /usr/lib/libc.so.6: version `GLIBC_2.28' not found (required by wpa>
Jul 05 20:07:28 alarm network[618]: The WPA supplicant did not start for interface 'wlan0'
Jul 05 20:07:28 alarm network[618]: Failed to bring the network up for profile 'wireless-wpa'
Jul 05 20:07:28 alarm systemd[1]: netctl@wireless\x2dwpa.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 20:07:28 alarm systemd[1]: netctl@wireless\x2dwpa.service: Failed with result 'exit-code'.
Jul 05 20:07:28 alarm systemd[1]: Failed to start Networking for netctl profile wireless-wpa.


Besides I'm a bit afraid to update the system, but I don't know where to find the glib that will satisfy the wpa_supplicant demand.
TheSaint
 
Posts: 242
Joined: Mon Jul 23, 2018 7:57 am

Re: Tinker Board S. Wireless problems

Postby TheSaint » Wed Aug 29, 2018 6:52 am

Good news,
Now is working as expected. It was my oversight that the glibc was not update with the rest.

I only need to recompile the module, because the actual status doesn't support AP and STA together.
TheSaint
 
Posts: 242
Joined: Mon Jul 23, 2018 7:57 am

Re: [Solved] Tinker Board S. Wireless problems

Postby TheSaint » Sun Sep 02, 2018 6:29 am

I'm back here to explain how the thing works.
For the simple usage on downloading data it seems to go for good, but for AP it will cause kernel crashes suddenly. Managed is not available.
I still in search for a solution.
I thought to use the TinkerOS module, but I doubt it will work with a differente kernel. I suppose there are certain checks against the kernel version :(
TheSaint
 
Posts: 242
Joined: Mon Jul 23, 2018 7:57 am


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 1 guest