STM32MP157C WIFI issue

Trying to implement Wi-Fi Settings from wiki

Stucks at step
connmanctl> scan wifi
Error /net/connman/technology/wifi: No carrier

ifconfig -a shows

eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.1.65 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::ac9b:2bff:feda:a9e8 prefixlen 64 scopeid 0x20
ether ae:9b:2b:da:a9:e8 txqueuelen 1000 (Ethernet)
RX packets 595 bytes 66035 (64.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 511 bytes 65523 (63.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 60 base 0x4000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 84 bytes 7004 (6.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 84 bytes 7004 (6.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

usb0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.7.2 netmask 255.255.255.252 broadcast 192.168.7.3
ether 1c:ba:8c:a2:ed:68 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=-28670<BROADCAST,MULTICAST,DYNAMIC> mtu 1500
ether 70:4a:0e:df:4e:20 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

dmesg have some errors for

          Dongle Host Driver, version 1.579.77.41.16 (r-20190511-2)

[ 27.512291] wl_android_wifi_on in 1
[ 27.512301] wl_android_wifi_on in 2: g_wifi_on=0
[ 27.512307] ======== PULL WL_REG_ON HIGH! ========
[ 27.528544] sdioh_start: set sd_f2_blocksize 256
[ 27.529280]

           dhd_bus_devreset: == WLAN ON ==

[ 27.529534] F1 signature read @0x18000000=0x1541a9a6
[ 27.534754] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x4
[ 27.536509] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 27.536735] dhd_bus_set_default_min_res_mask: Unhandled chip id
[ 27.537275] dhd_os_open_image: /lib/firmware/brcm/config.txt (72 bytes) open success
[ 27.541810] [dhd] dhd_conf_read_pm_params : PM = 0
[ 27.545161] [dhd] dhd_conf_read_nv_by_chip : nv_by_chip_count=2
[ 27.551777] [dhd] dhd_conf_read_nv_by_chip : chip=0xa9a6, chiprev=0, name=nvram_ap6212.txt
[ 27.560193] [dhd] dhd_conf_read_nv_by_chip : chip=0xa9a6, chiprev=2, name=nvram_ap6236.txt
[ 27.567627] [dhd] dhd_conf_set_path_params : Final fw_path=/lib/firmware/brcm/fw_bcm43438a1.bin
[ 27.576899] [dhd] dhd_conf_set_path_params : Final nv_path=/lib/firmware/brcm/nvram.txt
[ 27.584969] [dhd] dhd_conf_set_path_params : Final clm_path=/lib/firmware/brcm/clm_bcm43438a1.blob
[ 27.594026] [dhd] dhd_conf_set_path_params : Final conf_path=/lib/firmware/brcm/config.txt
[ 27.603497] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/brcm/fw_bcm43438a1.bin
[ 27.603507] _dhdsdio_download_firmware: dongle image file download failed
[ 27.603577] dhd_bus_devreset Failed to download binary to the dongle
[ 27.603595] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 27.603605] dhd_wl_ioctl: returning as busstate=0
[ 27.603612] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 27.603750] ======== PULL WL_REG_ON LOW! ========
[ 27.603757] wl_android_wifi_on: Failed
[ 27.603765] dhd_open : wl_android_wifi_on failed (-35)
[ 27.603774] dhd_stop: Enter (ptrval)
[ 27.603781] wl_android_wifi_off in 1
[ 27.603788] wl_android_wifi_off in 2: g_wifi_on=0, on_failure=1
[ 27.603794] dhd_wl_ioctl: returning as busstate=0
[ 27.603801] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 27.603930] ======== PULL WL_REG_ON LOW! ========
[ 27.603936] wl_android_wifi_off out

There is no fw_bcm43438a1.bin in /lib/firmware/ folder…

How I can fix this errors?

I had th same problem . It helped me

  1. wget fw_bcm43438a1.bin ( https://raw.githubusercontent.com/friendlyarm/android_vendor_broadcom_nanopi2/nanopi2-lollipop-mr1/proprietary/fw_bcm43438a1.bin )
  2. copy to folder : cp fw_bcm43438a1.bin /lib/firmware/brmm/fw_bcm43438a1.bin
  3. rename file : cp /lib/firmware/brmm/nvram_ap6236.txt /lib/firmware/brmm/nvram.txt
  4. reboot
  5. use connmanctl for wifi connection

Thank you!
It worked for me.
Except that I have no brmm directory but brcm