Firefly Open Source Community

Title: Problem with wifi on ubuntu [Print This Page]

Author: xav    Time: 8/27/2017 08:32
Title: Problem with wifi on ubuntu
Hi,

I managed to configure a custom xubuntu filesystem thanks to the tutorial with a lot of packages installed through qemu... Once the .img is done it boots and everything seems to work except the wifi.
The network manager keeps telling the "device is not ready". Restarting it doesn't change anything.
With :
  1. sudo ifconfig wlan0 up
Copy the code
I got : "SIOCSIFFLAGS: Operation not permitted". It seems the wifi adapter is powered off because there is no rfkill lock and :
  1. dmesg | tail
Copy the code
returns :

[ 2048.920017] dhd_wl_ioctl: returning as busstate=0
[ 2048.920031] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 2048.923774] sdioh_disable_func_intr: error for read SDIO_CCCR_IENx : 0xffffff92
[ 2048.923798] wifi_platform_set_power = 0
[ 2048.923811] ======== PULL WL_REG_ON LOW! ========
[ 2048.923826] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 2048.923847] [WLAN_RFKILL]: wifi shut off power.
[ 2048.923860] wl_android_wifi_off out
[ 2048.949115] dhd_stop: Exit
[ 2048.949136] dhd_open: Exit ret=-1

and with
  1. journalctl -ex
Copy the code

I got :

Aug 27 00:20:04 firefly kernel: ======== PULL WL_REG_ON LOW! ========
Aug 27 00:20:04 firefly kernel: [WLAN_RFKILL]: rockchip_wifi_power: 0
Aug 27 00:20:04 firefly kernel: [WLAN_RFKILL]: wifi shut off power.
Aug 27 00:20:04 firefly kernel: wl_android_wifi_on: Failed
Aug 27 00:20:04 firefly kernel: dhd_open : wl_android_wifi_on failed (-35)
Aug 27 00:20:04 firefly kernel: dhd_stop: Enter ffffffc0edcb4000
Aug 27 00:20:04 firefly kernel: wl_android_wifi_off in 1
Aug 27 00:20:04 firefly kernel: wl_android_wifi_off in 2: g_wifi_on=0, on_failur
Aug 27 00:20:04 firefly kernel: dhd_wl_ioctl: returning as busstate=0
Aug 27 00:20:04 firefly kernel: dhd_net_bus_devreset: dhd_bus_devreset: -35
Aug 27 00:20:04 firefly kernel: sdioh_disable_func_intr: error for read SDIO_CCC
Aug 27 00:20:04 firefly kernel: wifi_platform_set_power = 0
Aug 27 00:20:04 firefly kernel: ======== PULL WL_REG_ON LOW! ========
Aug 27 00:20:04 firefly kernel: [WLAN_RFKILL]: rockchip_wifi_power: 0
Aug 27 00:20:04 firefly kernel: [WLAN_RFKILL]: wifi shut off power.
Aug 27 00:20:04 firefly kernel: wl_android_wifi_off out
Aug 27 00:20:04 firefly kernel: dhd_stop: Exit
Aug 27 00:20:04 firefly kernel: dhd_open: Exit ret=-1

Last, with serial debugging:

[    2.359684] dhd_conf_set_txglom_params: swtxglom=0, txglom_ext=0
[    2.360214] dhd_conf_set_txglom_params: txglom_bucket_size=0
[    2.360710] dhd_conf_set_txglom_params: txglomsize=0, deferred_tx_len=0, bus_txglom=0
[    2.361398] dhd_conf_set_txglom_params: tx_in_rx=1, tx_max_offset=0
[    2.361945] dhd_bus_devreset:  WLAN OFF DONE
[    2.362395] wifi_platform_set_power = 0
[    2.362735] ======== PULL WL_REG_ON LOW! ========
[    2.363156] [WLAN_RFKILL]: rockchip_wifi_power: 0
[    2.363576] [WLAN_RFKILL]: wifi shut off power.
[    2.364059] dhd_module_init: Exit err=0


The kernel is 4.4.55 (and everything worked with the vanilla filesystem)


Any idea ?


Author: isle    Time: 8/28/2017 10:03
get anything in "/system/etc/firmware/" ?
Author: xav    Time: 8/30/2017 05:03
Wow thanks now I realize I miss the entire  /system folder..
How am I supposed to install the firmware stuff ? I followed the guidelines (http://wiki.t-firefly.com/index. ... Build_Ubuntu_rfs/en) but there was no mention of it..
Need I just to copy it from your default filesystem ?
Author: isle    Time: 8/30/2017 09:47
yes, just copy it.
Author: xav    Time: 8/31/2017 04:42
It did the trick, thanks !

Xavier
Author: myz    Time: 2/10/2022 16:14
xav Posted at 8/31/2017 04:42
It did the trick, thanks !

Xavier

怎么搞定的啊,我出现了同样的问题,教教我
Author: daniaeverett    Time: 4/8/2022 12:29
I realized that I have not included the entire /system folder.
Wordle




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1