TechNexion / edm-yocto-bsp

(Archived, please change to use tn-imx-yocto-manifest) Yocto Project manifests
17 stars 18 forks source link

pico-imx6ul support - wifi driver error only if connman is installed #17

Open Admdebian opened 5 years ago

Admdebian commented 5 years ago

I made a layer and some recipes to:

  1. install correct WiFi drivers with the module bcmdhd;
  2. boot my board with the correct dtb file imx6ul-pico_pi.dtb;

When I do:

modprobe bcmdhd

This is the output and this is correct:

dhd_module_init in
wifi_plat_dev_drv_probe no GPIO for OOB in device tree.
wifi_plat_dev_drv_probe continue with non-OOB mode.
Power-up adapter 'DHD generic adapter'
wifi_platform_bus_enumerate device present 1
mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc1: new high speed SDIO card at address 0001
F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x3
DHD: dongle ram size is set to 524288(orig 524288) at 0x0
wifi_platform_get_mac_addr
fw path is /lib/firmware/brcm/fw_bcm43438a0.bin 
nvram_path is /lib/firmware/brcm/nvram_ap6212.txt 
wl_create_event_handler(): thread:wl_event_handler:107 started
dhd_attach(): thread:dhd_watchdog_thread:108 started
dhd_attach(): thread:dhd_dpc:109 started
dhd_deferred_work_init: work queue initialized 
fw path is /lib/firmware/brcm/fw_bcm43438a0.bin 
nvram_path is /lib/firmware/brcm/nvram_ap6212.txt 
random: crng init done
dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
wifi_platform_get_mac_addr
Firmware up: op_mode=0x0005, MAC=44:2c:05:be:c7:16
Firmware version = wl0: Nov 25 2016 15:04:47 version 7.46.57.5.apsta.r4.o12 (Station/Softap) FWID 01-b70fff29 es6.c5.n4.a3
dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
dhd_wlfc_init: query wlfc_mode succeed, fw_caps=0x1c
dhd_wlfc_init(): wlfc_mode=0x1c, ret=0
Dongle Host Driver, version 1.141.100.6 (r)
Compiled in drivers/net/wireless/bcmdhd
Register interface [wlan0]  MAC: 44:2c:05:be:c7:16

The problem is if I add connman or connman-client to my machine, I get:

dhd_module_init in
wifi_plat_dev_drv_probe no GPIO for OOB in device tree.
wifi_plat_dev_drv_probe continue with non-OOB mode.
Power-up adapter 'DHD generic adapter'
wifi_platform_bus_enumerate device present 1
mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc1: new high speed SDIO card at address 0001
F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x3
DHD: dongle ram size is set to 524288(orig 524288) at 0x0
wifi_platform_get_mac_addr
fw path is /lib/firmware/brcm/fw_bcm43438a0.bin 
nvram_path is /lib/firmware/brcm/nvram_ap6212.txt 
wl_create_event_handler(): thread:wl_event_handler:115 started
dhd_attach(): thread:dhd_watchdog_thread:117 started
dhd_attach(): thread:dhd_dpc:118 started
dhd_deferred_work_init: work queue initialized 
fw path is /lib/firmware/brcm/fw_bcm43438a0.bin 
nvram_path is /lib/firmware/brcm/nvram_ap6212.txt 
dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
wifi_platform_get_mac_addr
Firmware up: op_mode=0x0005, MAC=44:2c:05:be:c7:16
Firmware version = wl0: Nov 25 2016 15:04:47 version 7.46.57.5.apsta.r4.o12 (Station/Softap) FWID 01-b70fff29 es6.c5.n4.a3
dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
dhd_wlfc_init: query wlfc_mode succeed, fw_caps=0x1c
dhd_wlfc_init(): wlfc_mode=0x1c, ret=0
Dongle Host Driver, version 1.141.100.6 (r)
Compiled in drivers/net/wireless/bcmdhd
Register interface [wlan0]  MAC: 44:2c:05:be:c7:16
CFG80211-ERROR) wl_update_wiphybands : error reading vhtmode (-23)

My connman version is:

1.34

I'm able to connect to the WiFi even if I've the error.

What's that error?

UPDATE This last line seems to be a message from system that is printed in the debug serial console

CFG80211-ERROR) wl_update_wiphybands : error reading vhtmode (-23)