mangOH yellow wifi not working

Hi, how can I get mangOH yellow builtin wifi to work? When wifiService is running and I “wifi client start”, it responds me with this: ERROR: le_wifiClient_Start returns ERROR. When I set all the necessary settings and try “wifi ap start”, i get back: ERROR:le_wifiAp_Start returns -1.

Thanks in advance
-Elmo

Hi Elmo,

What exactly did you do before your have started the wifi service and client? Did you do some system changes? Like installing a new Mangoh Build? Or using the swiflash command?

We also had some problems with Yellow Wifi last week after installing the Mangoh Build without Octave. Here is the ticket:

Due to time constrainst we ended up implementing the POC with FX30 and IOT wifi card but would be good to clear this issue.

Please share us the log messages (logread cmd) when you start the wifi client. If you have the same problem you should see an error message like “‘/legato/systems/current/modules/brcmfmac.ko’: File exists”” .

Best,
tom

Thanks for the answer, here is my logread of wifi client start command:

Nov 13 22:30:13 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[4236]/supervisor T=main | proc.c GetWatchdogAction() 362 | wifi@0 watchdogAction ‘’ in proc section
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[4236]/supervisor T=main | app.c app_Start() 3469 | Starting app ‘wifi’
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[4236]/supervisor T=main | app.c CreateFileLink() 2083 | Skipping file link ‘/legato/systems/current/apps/wifi/read-only/lib/libComponent_wifi.so’ to '/legato/systems/current/appsWriteable/wifi/lib/libComponen
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[4236]/supervisor T=main | app.c CreateFileLink() 2083 | Skipping file link ‘/legato/systems/current/apps/wifi/read-only/bin/wifi’ to ‘/legato/systems/current/appsWriteable/wifi/bin/wifi’: Already exists
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[4236]/supervisor T=main | proc.c proc_Start() 1403 | Starting process ‘wifi@0’ with pid 13543
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[4236]/supervisor T=main | supervisor.c SigChildHandler() 899 | Reaping unconfigured child process 13539.
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[13543]/supervisor T=main | proc.c proc_Start() 1363 | Execing ‘bin/wifi’
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[13543]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[13543]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileBytes to value 90112.
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[13543]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxLockedMemoryBytes to value 8192.
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[13543]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileDescriptors to value 256.
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[13543]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxMQueueBytes to value 512.
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[13543]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxThreads to value 20.
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | supervisor[13543]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxQueuedSignals to value 100.
Nov 13 22:30:13 swi-mdm9x28-wp user.debug Legato: DBUG | wifiService[4405]/framework T=main | unixSocket.c ExtractFileDescriptor() 34 | Received fd (14).
Nov 13 22:30:13 swi-mdm9x28-wp user.debug Legato: DBUG | wifiService[4405]/framework T=main | unixSocket.c ExtractFileDescriptor() 34 | Received fd (15).
Nov 13 22:30:13 swi-mdm9x28-wp user.info Legato: INFO | wifiService[4405] | WIFI_START
Nov 13 22:30:14 swi-mdm9x28-wp user.err kernel: [21645.182350] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:14 swi-mdm9x28-wp user.err kernel: [21645.197480] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:14 swi-mdm9x28-wp user.err kernel: [21645.213303] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:14 swi-mdm9x28-wp user.err kernel: [21645.228852] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:14 swi-mdm9x28-wp user.err kernel: [21645.244587] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:14 swi-mdm9x28-wp user.info Legato: INFO | wifiService[4405] | mangOH red board
Nov 13 22:30:14 swi-mdm9x28-wp user.err kernel: [21645.260295] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:14 swi-mdm9x28-wp user.debug kernel: [21645.276993] gpio_map_name_to_num: find GPIO 76
Nov 13 22:30:14 swi-mdm9x28-wp user.debug kernel: [21645.278075] gpio_map_name_to_num: find GPIO 38
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315050] cfg80211: Calling CRDA to update world regulatory domain
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315172] cfg80211: World regulatory domain updated:
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315184] cfg80211: DFS Master region: unset
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315193] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315206] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315217] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315228] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315238] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315249] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315260] cfg80211: (5490000 KHz - 5710000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315270] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Nov 13 22:30:14 swi-mdm9x28-wp user.info kernel: [21645.315281] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Nov 13 22:30:20 swi-mdm9x28-wp user.info Legato: INFO | wifiService[4405] | Failed to start TI wifi, interface does not exist.
Nov 13 22:30:20 swi-mdm9x28-wp user.err kernel: [21650.745889] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x011363c8 OPER:0x00000010
Nov 13 22:30:20 swi-mdm9x28-wp user.err kernel: [21650.760749] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x011363c8 OPER:0x00000010
Nov 13 22:30:20 swi-mdm9x28-wp user.err kernel: [21650.787465] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:20 swi-mdm9x28-wp user.err kernel: [21650.802667] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:20 swi-mdm9x28-wp user.err kernel: [21650.818373] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:20 swi-mdm9x28-wp user.info Legato: INFO | wifiService[4405] | mangOH red board
Nov 13 22:30:20 swi-mdm9x28-wp user.err kernel: [21650.834056] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010
Nov 13 22:30:20 swi-mdm9x28-wp user.err Legato: =ERR= | wifiService[4405]/daemon T=main | pa_wifi_client.c pa_wifiClient_Start() 519 | WiFi card is not inserted
Nov 13 22:30:20 swi-mdm9x28-wp user.warn Legato: -WRN- | wifiService[4405]/daemon T=main | le_wifiClient.c le_wifiClient_Start() 821 | Unable to start WIFI client; return code: -1
Nov 13 22:30:20 swi-mdm9x28-wp user.info Legato: INFO | supervisor[4236]/supervisor T=main | proc.c proc_SigChildHandler() 2079 | Process ‘wifi@0’ (PID: 13543) has exited with exit code 1.
Nov 13 22:30:20 swi-mdm9x28-wp user.debug kernel: [21650.860945] gpio_map_name_to_num: find GPIO 76
Nov 13 22:30:20 swi-mdm9x28-wp user.debug kernel: [21650.861527] gpio_map_name_to_num: find GPIO 38
Nov 13 22:30:20 swi-mdm9x28-wp user.debug Legato: DBUG | wifiService[4405]/framework T=main | le_wifiClient_server.c CleanupClientData() 163 | Client 0x7f56c268 is closed !!!
Nov 13 22:30:20 swi-mdm9x28-wp user.debug Legato: DBUG | wifiService[4405]/framework T=main | le_wifiClient_server.c CleanupClientData() 184 | Found session ref 0x7f56c388; does not match
Nov 13 22:30:20 swi-mdm9x28-wp user.debug Legato: DBUG | wifiService[4405]/framework T=main | le_wifiAp_server.c CleanupClientData() 163 | Client 0x7f56c2f8 is closed !!!
Nov 13 22:30:20 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[4236]/supervisor T=main | app.c app_SigChildHandler() 4064 | Process ‘wifi@0’ in app ‘wifi’ faulted: Ignored.
Nov 13 22:30:20 swi-mdm9x28-wp user.info Legato: INFO | supervisor[4236]/supervisor T=main | app.c app_StopComplete() 4751 | app ‘wifi’ has stopped.
Nov 13 22:30:20 swi-mdm9x28-wp user.info Legato: INFO | supervisor[4236]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘wifi’ has stopped.

Seems like it’s not the same problem as you had. I might have messed up this unit trying to fix the problem, but i managed to test wifi with a brand new yellow also. Same errors there.

-Elmo

Yes it seems to be a different problem. I don’t know what changes you have made before It seems to be that it is trying to enable the TI wifi which can be found for example on the IOT card. I presume you are not using a wifi IOT card as Mangoh Yellow should have a fully working on-board Cypress wifi chip, so it is not your goal. Could you install the offical Mangoh Yellow spk (https://mangoh.io/mangoh-yellow-resources-software) and see if it starts the right wifi script.

(BTW. Have you not changed something in the /etc/network/interfaces or some other files ? I think the Cypress wifi should be connected to wlan1 and TI chip to wlan0 but I am not sure)

Did you update your firmware or is it standard yellow software? If yellow, I dont understand why you see mangohred on your log messages.

Thanks a lot, I will try to install yellow spk. I’m still afraid it won’t fix the problem as this has been the problem from the beginning. I haven’t touched interfaces as far as I remember. If I install yellow spk, will the interface file reset?

-Elmo

With this unit, I have updated the firmware. But when I first got this, I tried right away ”ifup wlan0” and I remember wondering why it said ”mangOH red board”. I thought it used some same drivers or something for the wifi. I will test another unit with the firmware it came with when I have time, but the wifi has not been working on that one either.

-Elmo

There is no reason to see mangoh red in log file.
Anyways, we will have a new spk and leaf packages available by tomorrow that should allow wifi to work with published commands

Hi, thanks for advices. i got it working by installing spk-file tom suggested. Everything’s fine now. Still when you try ”ifup wlan0” you get back some mangOH red-stuff, idk why is that.
-Elmo

Can you point to the package?

ifup and ifdown use the /etc/network/interfaces file. There is some junk in that file pertaining to the TI WiFi IoT card. Please use ifconfig or use the wifi command provided by legato.

We have the spk available with the fix. Please try it and let us know.

Works like a charm. Thanks for the help.

-Elmo

1 Like