Forums - QCLI_demo WLAN enable hangs indefinitely

3 posts / 0 new
Last post
QCLI_demo WLAN enable hangs indefinitely
drglennwolfe
Join Date: 23 Sep 19
Posts: 9
Posted: Tue, 2020-03-10 13:14

Hello,

I have been able to sucessfully build and flash both the Helloworld_demo and QCLI_demo on Linux.  I get the expected "Hello World" output on the terminal and I also get a working CLI interface for the QCLI_demo.  However, when I attempt to enable wifi using "WLAN enable" the CLI hangs indefinitely.  I suspect that the wifi binaries are not getting combined into the final .elf file and that all wifi function pointers are undefined (or rather pointing to nothing).  Everything looks like it is building correctly, however, when performing a "make -n" and running through the commands manually I notice that one of the final steps is having issues, namely the "DIAG Message Compaction".  There is no file called "diag_msg.pkl" anywhere in the SDK...  Any help would be greatly appreciated.

Thanks,

Dr. Wolfe

$ pwd
/home/gwolfe/Projects/Badge2/QCA4020.OR.3.0_00011.1.wifi_not_working/target/quartz/demo/QCLI_demo/build/gcc
$ ls -l ../../../../../bin/cortex-m4/diag_msg.pkl
ls: cannot access '../../../../../bin/cortex-m4/diag_msg.pkl': No such file or directory
 

$ find /home/gwolfe/Projects/Badge2/QCA4020.OR.3.0_00011.1.wifi_not_working/ | grep diag_msg
/home/gwolfe/Projects/Badge2/QCA4020.OR.3.0_00011.1.wifi_not_working/target/bin/cortex-m0/threadx/diag_msg_BRNTRI.strdb
/home/gwolfe/Projects/Badge2/QCA4020.OR.3.0_00011.1.wifi_not_working/target/bin/cortex-m4/diag_msg_ARNFRI.strdb
/home/gwolfe/Projects/Badge2/QCA4020.OR.3.0_00011.1.wifi_not_working/target/bin/cortex-m4/diag_msg_QCLI_demo.strdb
/home/gwolfe/Projects/Badge2/QCA4020.OR.3.0_00011.1.wifi_not_working/target/include/qapi/qapi_diag_msg.h
 

echo DIAG Message Compaction...
python ../../../../../build/scripts/diagMsgCompact.py output/Quartz.elf ../../../../../bin/cortex-m4/diag_msg_QCLI_demo.strdb output/Quartz_nocompact.elf ../../../../../bin/cortex-m4/diag_msg.pkl Final > dictLog

cat dictLog
diagMsgCompact: Failed to open ../../../../../bin/cortex-m4/diag_msg.pkl
diagMsgCompact: Removing Diag debug strings segment from elf: RAM_DIAG_STRING_RO_REGION
diagMsgCompact: Saving the elf output/Quartz.elf
{3388457109: '0x%08X\n', 3881020545: 'GLINK open failed\n', 328253558: 'MAC PROGRAM ERROR: unknown driver error\n', 3101465195: '\nCustom_Platform_Assert_Handler(): driver assert at line: %d Error: %d \n', 994539013: 'Invalid len=%d\n', 201632902: 'ATH_REG_OP_RMW: Driver_ReadRegDiag fail %d\n', 2453505665: '\nDBGLOGS dropped in FW: %d', 4107333003: 'Net: Tunables not found. Falling back to defaults.\n', 380221709: 'channel number is invalid\n', 530298382: 'Custom_Platform_Tunable_Init(): error', 749809027: 'rodata = %d\n', 1099217557: 'Net: Socket info alloc failed\n', 540202007: 'malloc fail\n', 1683116429: 'Atheros ERROR: mediactl command not valid. command_id=0x%x\n', 905735321: ' Pool updated : %d\n', 1573184922: 'sample test command with no argument', 3356571546: 'MAC PROGRAM ERROR: the driver was unable to complete the request.\n', 2576769185: '0x%08X ', 4214398359: '\nDiag print failed for pktlog...!!', 3019058981: '\nPKTLOG pkt size: %d', 544864678: 'TX status Host Pending\n', 2242098601: 'MAC PROGRAM SUCCESS.\n', 2021387946: 'Net: Socket command %d timed out\n', 1623134509: 'DIAG:RSP 0\n', 4013006173: 'sample test command with 3 arguments arg1:%d arg2:%d arg3:%d ', 1142784945: '\nDBGLOG pkt size: %d', 1015469749: 'text = %d\n', 1623012918: 'data = %d\n', 3288320313: 'TX Idle\n', 3048478397: 'diag_cli_process_pkt: received invalid command \n', 2891686974: 'Command Failed\n', 4045254709: 'MAC PROGRAM ERROR: the firmware failed to program the mac address.\n', 1630884673: 'heap remaining = %d\n', 1797171266: 'driver ioctl error\n', 1350359862: 'value=%08x\n', 568518218: 'ATH_REG_OP_WRITE: Driver_WriteRegDiag fail %d\n', 2213559115: 'MAC PROGRAM ERROR: Device unknown failure.\n', 923109197: '\n Diag print failed...!!', 3370581327: 'invalid index value\n', 3080288209: 'sample test command with 1 argument arg1:%d', 1123038163: 'firmware memory stats:\n', 4147283029: 'invalid max profiles value\n', 2299037655: 'sample test command with 2 arguments arg1:%d arg2:%d ', 1321387993: 'Invalid MAC address length\n', 499178331: 'bss = %d\n', 1449662685: 'Net: Socket function alloc failed\n', 3014689505: ' possibly the same MAC address is already programmed.\n', 2153867235: 'Crypto: Tunables not found. Falling back to defaults.\n', 2361855211: 'Net: DNSc socket open failed\n', 1783007983: 'GLINK Q rx intent failed %d\n', 4033816689: 'Net: Socket handle alloc failed. max# %d\n', 2025813746: 'Invalid character\n', 2360976659: 'ATH_REG_OP_READ: Driver_ReadRegDiag fail %d\n', 3665909621: 'ATH_REG_OP_RMW: Driver_WriteRegDiag fail %d\n', 3585259510: 'DIAG:no rsp buf match\n', 1726784631: 'Net: NS info alloc failed\n', 655963001: 'literals = %d\n', 4271267962: 'Invalid result\n', 3734280765: 'Net: NS alloc failed\n', 242174741: 'TX status WIFI Pending \n'}

 

  • Up0
  • Down0
drglennwolfe
Join Date: 23 Sep 19
Posts: 9
Posted: Wed, 2020-03-11 10:30

I own both the Qualcomm QDB20 dev kit as well as the Silex WCBN3516A-EVG(v1.0) version of the dev kit.  I decided to try the Silex dev kit and everything works correctly without changing a thing.  Perhaps my QDB20 is bad.  I may order another to test. 

Thanks,

Glenn

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Tue, 2020-03-31 20:23

Kindly provide us the picture of QDB20 to verify the jumper settings ?

Also, make sure the wlan_fw_img.bin is inclued in "generated_fwd_table.xml".

/////////////////////////
<?xml version="1.0" ?>
<jdata>
   <!--This is an autogenerated file-->
   <!--Sector size used is 4096-->
   <program filename="firmware_table.bin" num_partition_sectors="1" start_sector="0"/>
   <program filename="Quartz_HASHED.elf" num_partition_sectors="437" start_sector="35"/>
   <program filename="ioe_ram_m0_threadx_ipt.mbn" num_partition_sectors="23" start_sector="472"/>
   <program filename="wlan_fw_img.bin" num_partition_sectors="34" start_sector="495"/>
   <erase filename="" num_partition_sectors="2" start_sector="1"/>
</jdata>
 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.