Wifi connection not working on newer IMX7 chip

Hi.
Since the Institue I’m working in “updated” their iMX7 chips, somehow after using modprobe bcmdhd the system doesn’t want to connect to the network.

Here’s the output:

    root@pico-imx7:~# modprobe bcmdhd
    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: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc1: new high speed SDIO card at address 0001
    imx-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
    imx-sgtl5000 sound: snd_soc_register_card failed (-517)
    imx-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
    imx-sgtl5000 sound: snd_soc_register_card failed (-517)
    F1 signature OK, socitype:0x1 chip:0x4339 rev:0x1 pkg:0x2
    imx-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
    imx-sgtl5000 sound: snd_soc_register_card failed (-517)
    DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
    wifi_platform_get_mac_addr
    fw path is /lib/firmware/brcm/fw_bcm4339a0_ag.bin
    nvram_path is /lib/firmware/brcm/nvram_ap6335.txt
    CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211)
    wl_create_event_handler(): thread:wl_event_handler:29f started
    CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0x88f2143c
    dhd_attach(): thread:dhd_watchdog_thread:2a0 started
    dhd_attach(): thread:dhd_dpc:2a1 started
    dhd_attach(): thread:dhd_rxf:2a2 started
    dhd_deferred_work_init: work queue initialized
    fw path is /lib/firmware/brcm/fw_bcm4339a0_ag.bin
    nvram_path is /lib/firmware/brcm/nvram_ap6335.txt
    random: nonblocking pool is initialized
    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=28:ed:e0:0e:fd:de
    dhd_preinit_ioctls pspretend_threshold for HostAPD failed  -23
    Firmware version = wl0: Apr  3 2014 12:12:42 version 6.37.32.28.2_ip (r424058)
    dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
    dhd_wlfc_init(): wlfc_mode=0x0, ret=-23
    dhd_interworking_enable: failed to set WNM info, ret=-23
    Dongle Host Driver, version 1.141.92 (r)
    Compiled in drivers/net/wireless/bcmdhd
    Register interface [wlan0]  MAC: 28:ed:e0:0e:fd:de
    
    imx-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
    imx-sgtl5000 sound: snd_soc_register_card failed (-517)
    root@pico-imx7:~# imx-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
    imx-sgtl5000 sound: snd_soc_register_card failed (-517)
    CFG80211-ERROR) wl_cfg80211_connect : Connecting withe8:de:27:96:b2:a9 channel (6) ssid "TP-LINK_AP_96B2A9", len (17)
    
    wl_bss_connect_done succeeded with e8:de:27:96:b2:a9
    wl_bss_connect_done succeeded with e8:de:27:96:b2:a9

After that when using ifconfig wlan0, I get the following:

root@pico-imx7:~# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 28:ed:e0:0e:fd:de
          inet addr:130.75.43.226  Bcast:130.75.43.255  Mask:255.255.255.0
          inet6 addr: fe80::2aed:e0ff:fe0e:fdde/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:330 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:41033 (40.0 KiB)  TX bytes:10284 (10.0 KiB)

Using the old Chip, I can’t ping to any Ip and giving it a static Ip address doesn’t solve anything (requesting dhcp takes me to an infinite loop).

If I connect it to the laptop, I can use putty, but the “modprobe g_mass_storage” command is also buggy (bo error, but also no recognition of the partition).

Do I need to update the firmware? The one in use is fw_bcm4339a0_ag.bin

Both Chips are Colibri PICO-IMX7D 1 GiB and both have the same antenna attached.

With kind regards,

Mateusz

EDIT:
inet addr:130.75.43.226 Bcast:130.75.43.255 Mask:255.255.255.0
normally, he doesn’t have an inet addr or Bcast, only inet6.
I tried with a static Ip, thats why there is the line. -.-

hi @Mateusz

Could you provide the version of the hardware (including Motherboard) and software of your SoM?

Which Wifi Dongle/Chip are you using in your application?

Have you done any changes to the software? If yes, can you share these changes?

Best regards,
Jaski