WiFi on mangoOH Red


#1

I dispose of the MangOH red board equiped with WP7607 chip. I installed on the IOT0 slot the MIRAGE-PIFA wifi module from Talon. I followed the tutorial to scan the wifi, however each time I got an error ass follows:

root@swi-mdm9x28:~# wifi client start
ERROR: le_wifiClient_Start returns ERROR.
root@swi-mdm9x28:~# ifup wlan0
ERR* failed to write i2c data
FTL* Failed to enable PCA9548A I2C switch
root@swi-mdm9x28:~#
Thus I could not complete with the wifi scan command.

Can you please help me with this issue.


#2

Any help please, this is what I got when I activated the logred :

root@swi-mdm9x15:~# wifi client start
Feb 12 09:13:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[797]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (11).
Feb 12 09:13:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[797]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (12).
Feb 12 09:13:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[797]/daemon T=main | le_wifiClient.c le_wifiClient_Start() 598 | Client starts
Feb 12 09:13:00 swi-mdm9x15 user.info Legato: INFO | wifiService[797]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Start() 306 | WiFi client starts
Feb 12 09:13:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[797]/framework T=WifiClientPaThread | LE_FILENAME PThreadStartRoutine() 362 | Set nice level to 0.
Feb 12 09:13:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[797]/framework T=WifiClientPaThread | LE_FILENAME le_mem_ForceAlloc() 841 | Memory pool ‘framework.DestructorObjs’ overflowed. Expanded to 4 blocks.
Feb 12 09:13:00 swi-mdm9x15 user.info Legato: INFO | wifiService[797]/daemon T=WifiClientPaThread | pa_wifi_client_ti.c WifiClientPaThreadMain() 211 | Started!
Feb 12 09:13:00 swi-mdm9x15 user.info Legato: INFO | wifiService[797] | WIFI_START
Feb 12 09:13:00 swi-mdm9x15 user.info Legato: INFO | wifiService[797]/daemon T=WifiClientPaThread | pa_wifi_client_ti.c WifiClientPaThreadMain() 228 | PARSING:WIFI_SET_EVENT : len:15
Feb 12 09:13:00 swi-mdm9x15 user.info kernel: [ 5871.537035] Loading modules backported from Linux version R8.5
Feb 12 09:13:00 swi-mdm9x15 user.info kernel: [ 5871.541858] Backport generated by backports.git R8.5
Feb 12 09:13:00 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x71: Device or resource busy
Feb 12 09:13:00 swi-mdm9x15 user.info kernel: [ 5871.720737] cfg80211: Calling CRDA to update world regulatory domain
Feb 12 09:13:00 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:00 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | sh: write error: Device or resource busy
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5871.878558] gpio_sync_ri: RI owner is Modem
Feb 12 09:13:01 swi-mdm9x15 user.debug kernel: [ 5871.881763] ->gpio16 = 0
Feb 12 09:13:01 swi-mdm9x15 user.debug kernel: [ 5871.881763] ->gpio17 = 0
Feb 12 09:13:01 swi-mdm9x15 user.debug kernel: [ 5871.881793] ->gpio18 = 0
Feb 12 09:13:01 swi-mdm9x15 user.debug kernel: [ 5871.881793] ->gpio19 = 0
Feb 12 09:13:01 swi-mdm9x15 user.debug kernel: [ 5871.881824] gpio-59 (IoT slot 0 reset): gpiod_request: status -16
Feb 12 09:13:01 swi-mdm9x15 user.debug kernel: [ 5871.881854] export_store: status -16
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | /etc/init.d/tiwifi:
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | line 125:
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | can’t create /sys/class/gpio/gpio2/direction: nonexistent directory
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] |
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | /etc/init.d/tiwifi:
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | line 125:
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | can’t create /sys/class/gpio/gpio2/value: nonexistent directory
Feb 12 09:13:01 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] |
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5871.948389] mmc0: mci-version: 18
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5871.957118] mmc0: bam physical base=0x12182000
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5871.960536] mmc0: bam virtual base=0xd0d8c000
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5871.964900] sps:BAM 0x12182000 is registered.
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5871.987547] cfg80211: World regulatory domain updated:
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5871.991850] cfg80211: DFS Master region: unset
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5871.996184] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.006774] mmc0: BAM device registered. bam_handle=0xcde7da00
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.011963] sps:REVISION of BAM 0xd0d8c000 is 0x5.
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.023835] mmc0: Qualcomm MSM SDCC-BAM at 0x0000000012182000 irq 130
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.029787] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.037600] mmc0: Qualcomm MSM SDCC-DML at 0x0000000012180800
Feb 12 09:13:01 swi-mdm9x15 user.err kernel: [ 5872.043063] mmc0: No card detect facilities available
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.048435] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.056004] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.068883] mmc0: Qualcomm MSM SDCC-core at 0x0000000012180000 irq 136,0 dma -1 dmacrcri -1
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.086616] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.095741] mmc0: 8 bit data mode disabled
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.106698] mmc0: 4 bit data mode enabled
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.114786] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.141705] mmc0: polling status mode disabled
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.155653] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.173538] mmc0: MMC clock 400000 -> 48000000 Hz, PCLK 0 Hz
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.183548] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.201098] mmc0: Slot eject status = 0
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.224446] mmc0: Power save feature enable = 1
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.228627] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Feb 12 09:13:01 swi-mdm9x15 user.info Legato: INFO | wifiService[797]/daemon T=WifiClientPaThread | pa_wifi_client_ti.c WifiClientPaThreadMain() 228 | PARSING:phy #0: regulatory domain change: set to world roaming by the wireless core upon initialization request : len:104
Feb 12 09:13:01 swi-mdm9x15 user.info kernel: [ 5872.237234] mmc0: SPS-BAM data transfer mode available
Feb 12 09:13:06 swi-mdm9x15 user.info Legato: INFO | wifiService[797] | Failed to start TI wifi
Feb 12 09:13:07 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | /etc/init.d/tiwifi:
Feb 12 09:13:07 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | line 125:
Feb 12 09:13:07 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | can’t create /sys/class/gpio/gpio2/value: nonexistent directory
Feb 12 09:13:07 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] |
Feb 12 09:13:07 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.008117] mmc0: mci-version: 18
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.020783] mmc0: bam physical base=0x12182000
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.024232] mmc0: bam virtual base=0xd0f14000
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.036745] sps:BAM 0x12182000 is registered.
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.039919] mmc0: BAM device registered. bam_handle=0xceb3d600<6>[ 5878.046115] sps:REVISION of BAM 0xd0f14000 is 0x5.
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.062382] mmc0: Qualcomm MSM SDCC-BAM at 0x0000000012182000 irq 130
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.068395] mmc0: Qualcomm MSM SDCC-DML at 0x0000000012180800
Feb 12 09:13:07 swi-mdm9x15 user.err kernel: [ 5878.073644] mmc0: No card detect facilities available
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.083533] mmc0: Qualcomm MSM SDCC-core at 0x0000000012180000 irq 136,0 dma -1 dmacrcri -1
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.105111] mmc0: 8 bit data mode disabled
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.108773] mmc0: 4 bit data mode enabled
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.112192] mmc0: polling status mode disabled
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.132976] mmc0: MMC clock 400000 -> 48000000 Hz, PCLK 0 Hz
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.149671] mmc0: Slot eject status = 0
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.168441] mmc0: Power save feature enable = 1
Feb 12 09:13:07 swi-mdm9x15 user.info kernel: [ 5878.182572] mmc0: SPS-BAM data transfer mode available
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x71: Device or resource busy
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | Error: Could not set address to 0x3e: Device or resource busy
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | sh: write error: Device or resource busy
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | /etc/init.d/tiwifi:
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | line 125:
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | can’t create /sys/class/gpio/gpio2/direction: nonexistent directory
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] |
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | /etc/init.d/tiwifi:
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | line 125:
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] | can’t create /sys/class/gpio/gpio2/value: nonexistent directory
Feb 12 09:13:08 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797] |
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.409613] gpio_sync_ri: RI owner is Modem
Feb 12 09:13:08 swi-mdm9x15 user.debug kernel: [ 5879.412817] ->gpio16 = 0
Feb 12 09:13:08 swi-mdm9x15 user.debug kernel: [ 5879.412817] ->gpio17 = 0
Feb 12 09:13:08 swi-mdm9x15 user.debug kernel: [ 5879.412848] ->gpio18 = 0
Feb 12 09:13:08 swi-mdm9x15 user.debug kernel: [ 5879.412848] ->gpio19 = 0
Feb 12 09:13:08 swi-mdm9x15 user.debug kernel: [ 5879.412878] gpio-59 (IoT slot 0 reset): gpiod_request: status -16
Feb 12 09:13:08 swi-mdm9x15 user.debug kernel: [ 5879.412909] export_store: status -16
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.432198] mmc0: mci-version: 18
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.437234] mmc0: bam physical base=0x12182000
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.440652] mmc0: bam virtual base=0xd0f88000
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.444986] sps:BAM 0x12182000 is registered.
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.466594] mmc0: BAM device registered. bam_handle=0xcde7d000<6>[ 5879.471813] sps:REVISION of BAM 0xd0f88000 is 0x5.
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.482129] mmc0: Qualcomm MSM SDCC-BAM at 0x0000000012182000 irq 130
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.488233] mmc0: Qualcomm MSM SDCC-DML at 0x0000000012180800
Feb 12 09:13:08 swi-mdm9x15 user.err kernel: [ 5879.494124] mmc0: No card detect facilities available
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.503158] mmc0: Qualcomm MSM SDCC-core at 0x0000000012180000 irq 136,0 dma -1 dmacrcri -1
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.524797] mmc0: 8 bit data mode disabled
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.528459] mmc0: 4 bit data mode enabled
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.531877] mmc0: polling status mode disabled
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.553211] mmc0: MMC clock 400000 -> 48000000 Hz, PCLK 0 Hz
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.572775] mmc0: Slot eject status = 0
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.591575] mmc0: Power save feature enable = 1
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.605584] mmc0: SPS-BAM data transfer mode available
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.667052] Loading modules backported from Linux version R8.5
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.671905] Backport generated by backports.git R8.5
Feb 12 09:13:08 swi-mdm9x15 user.info kernel: [ 5879.777536] cfg80211: Calling CRDA to update world regulatory domain
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5879.978177] cfg80211: World regulatory domain updated:
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5879.982328] cfg80211: DFS Master region: unset
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5879.998564] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5880.046573] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5880.053593] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5880.116587] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5880.123606] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5880.162123] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5880.174056] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5880.182022] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Feb 12 09:13:09 swi-mdm9x15 user.info kernel: [ 5880.189439] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Feb 12 09:13:14 swi-mdm9x15 user.info Legato: INFO | wifiService[797] | Failed to start TI wifi

ERROR: le_wifiClient_Start returns ERROR.
root@swi-mdm9x15:~#
root@swi-mdm9x15:~# Feb 12 09:13:19 swi-mdm9x15 user.info Legato: INFO | wifiService[797] | Failed to start TI wifi
Feb 12 09:13:19 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Start() 329 | WiFi Client Command Failed: (23296)wlan0 WIFI_START
Feb 12 09:13:19 swi-mdm9x15 user.err Legato: =ERR= | wifiService[797]/daemon T=main | le_wifiClient.c le_wifiClient_Start() 611 | ERROR: pa_wifiClient_Start returns -6
Feb 12 09:13:19 swi-mdm9x15 user.debug Legato: DBUG | wifiService[797]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 452 | sessionRef 0xb6f36d94 GetFirstSessionRef (nil)
Feb 12 09:13:19 swi-mdm9x15 user.debug Legato: DBUG | wifiService[797]/framework T=main | le_wifiClient_server.c CleanupClientData() 139 | Client 0xb6f36d94 is closed !!!
Feb 12 09:13:19 swi-mdm9x15 user.debug Legato: DBUG | wifiService[797]/framework T=main | le_wifiAp_server.c CleanupClientData() 139 | Client 0xb6f36d04 is closed !!!

the legato plateform version used is the last one 18. 01.0.


#3

Can you see if this forum post helps:


#4

Thank you that helps, it works fine now.