Other Parts Discussed in Thread: WL1837
Tool/software:
Hello everyone,
We use imx8mp with wl1837 wlan module, kernel version is 6.12.13, and we use calibrator tool which is provided by 18xx-ti-utils to perform regulatory test.
The problem is that after we upgrade wlan module firmware from R8.9.0.0.90 to R8.9.1.0.2_fips, calibrator tool doesn't work. I don't know whether plt mode is limited by R8.9.1.0.2_fips version, because when I replace firmware with R8.9.1.0.2 none-fips version, calibrator could work. So here is the test result.
firmware is got from git://git.ti.com/wilink8-wlan/wl18xx_fw.git
* calibrator could work with R8.9.0.0.90, this firmware version is from commit id d2588c16809ecca8e0dc7ea011fc6180c7b08a92
* calibrator could work with R8.9.1.0.2, this firmware version is from commit id 685097375c6530c98ce052fcd160001abaa1b256
* calibrator couldn't work with R8.9.1.0.2_fips, this firmware version is from commit id 0fd0e89a89fe8b9ee9ceca9479e531c255a64356
Below is the output and kernel log when I use firmware version.R8.9.1.0.2_fips.
```
~# ifconfig wlan0 down
~# calibrator --debug wlan0 plt power_mode on
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 68
.type = 2 <ERROR>
.flags = 0 <>
.seq = 1741613516
.port = 1405095400
[ERRORMSG] 20 octets
.error = -5 "Input/output error"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 24 <0x18>
.flags = 5 <REQUEST,ACK>
.seq = 1741613516
.port = 1405095400
--------------------------- END NETLINK MESSAGE ---------------------------
command failed: Input/output error (-5)
[ 1282.711350] wlcore: down
[ 1291.495319] wlcore: testmode cmd set plt mode
[ 1291.495345] wlcore: power up
[ 1291.844972] wlcore: booting firmware ti-connectivity/wl18xx-fw-4.bin
[ 1291.851418] wlcore: firmware chunks to be uploaded: 15
[ 1291.851447] wlcore: chunk 14 addr 0x0 len 120860
[ 1291.851456] wlcore: starting firmware upload
[ 1291.851461] wlcore: fw_data_len 120860 chunk_size 16384
[ 1291.851691] wlcore: uploading fw chunk 0x00000000ef3deb87 to 0x0
[ 1291.853162] wlcore: uploading fw chunk 0x00000000b27c0bee to 0x4000
[ 1291.854630] wlcore: uploading fw chunk 0x00000000bec4ca33 to 0x8000
[ 1291.856108] wlcore: uploading fw chunk 0x000000000a88f810 to 0xc000
[ 1291.857782] wlcore: uploading fw chunk 0x000000002ddf3848 to 0x10000
[ 1291.859255] wlcore: uploading fw chunk 0x00000000aca91a18 to 0x14000
[ 1291.860726] wlcore: uploading fw chunk 0x00000000da97fbf4 to 0x18000
[ 1291.862189] wlcore: uploading fw last chunk (6172 B) 0x0000000080501a2f to 0x1c000
[ 1291.862791] wlcore: chunk 13 addr 0x100000 len 131072
[ 1291.862801] wlcore: starting firmware upload
[ 1291.862806] wlcore: fw_data_len 131072 chunk_size 16384
[ 1291.863304] wlcore: uploading fw chunk 0x000000007a2f456a to 0x100000
[ 1291.864976] wlcore: uploading fw chunk 0x0000000081b9a2ce to 0x104000
[ 1291.866648] wlcore: uploading fw chunk 0x000000008f76b2b0 to 0x108000
[ 1291.868331] wlcore: uploading fw chunk 0x00000000a6010098 to 0x10c000
[ 1291.870012] wlcore: uploading fw chunk 0x000000004e177535 to 0x110000
[ 1291.871714] wlcore: uploading fw chunk 0x00000000a998154b to 0x114000
[ 1291.873396] wlcore: uploading fw chunk 0x0000000002058433 to 0x118000
[ 1291.875103] wlcore: uploading fw chunk 0x00000000afb2f7d1 to 0x11c000
[ 1291.876562] wlcore: uploading fw last chunk (0 B) 0x00000000534d8f15 to 0x120000
[ 1291.876776] wlcore: chunk 12 addr 0x20400000 len 54052
[ 1291.876786] wlcore: starting firmware upload
[ 1291.876791] wlcore: fw_data_len 54052 chunk_size 16384
[ 1291.877229] wlcore: uploading fw chunk 0x0000000065c36a05 to 0x20400000
[ 1291.878903] wlcore: uploading fw chunk 0x00000000b5cde773 to 0x20404000
[ 1291.880600] wlcore: uploading fw chunk 0x0000000016502211 to 0x20408000
[ 1291.882062] wlcore: uploading fw last chunk (4900 B) 0x000000002f282ca5 to 0x2040c000
[ 1291.882551] wlcore: chunk 11 addr 0xb00000 len 536
[ 1291.882560] wlcore: starting firmware upload
[ 1291.882565] wlcore: fw_data_len 536 chunk_size 16384
[ 1291.882785] wlcore: uploading fw last chunk (536 B) 0x00000000e9d863ae to 0xb00000
[ 1291.882892] wlcore: chunk 10 addr 0xb0ae40 len 28708
[ 1291.882901] wlcore: starting firmware upload
[ 1291.882906] wlcore: fw_data_len 28708 chunk_size 16384
[ 1291.883365] wlcore: uploading fw chunk 0x000000001343151f to 0xb0ae40
[ 1291.884832] wlcore: uploading fw last chunk (12324 B) 0x0000000030cd7872 to 0xb0ee40
[ 1291.885974] wlcore: chunk 9 addr 0x80900000 len 61692
[ 1291.885986] wlcore: starting firmware upload
[ 1291.885992] wlcore: fw_data_len 61692 chunk_size 16384
[ 1291.886226] wlcore: uploading fw chunk 0x00000000caa8f035 to 0x80900000
[ 1291.887700] wlcore: uploading fw chunk 0x00000000468ece67 to 0x80904000
[ 1291.889172] wlcore: uploading fw chunk 0x000000001d80abbd to 0x80908000
[ 1291.890639] wlcore: uploading fw last chunk (12540 B) 0x00000000e6d2d467 to 0x8090c000
[ 1291.891804] wlcore: chunk 8 addr 0x80920000 len 31992
[ 1291.891817] wlcore: starting firmware upload
[ 1291.891822] wlcore: fw_data_len 31992 chunk_size 16384
[ 1291.892059] wlcore: uploading fw chunk 0x0000000053ca9d37 to 0x80920000
[ 1291.893529] wlcore: uploading fw last chunk (15608 B) 0x00000000ee95902c to 0x80924000
[ 1291.894946] wlcore: chunk 7 addr 0x80940000 len 6144
[ 1291.894955] wlcore: starting firmware upload
[ 1291.894961] wlcore: fw_data_len 6144 chunk_size 16384
[ 1291.895221] wlcore: uploading fw last chunk (6144 B) 0x000000009f02dc3d to 0x80940000
[ 1291.895794] wlcore: chunk 6 addr 0x80944000 len 6144
[ 1291.895803] wlcore: starting firmware upload
[ 1291.895809] wlcore: fw_data_len 6144 chunk_size 16384
[ 1291.896034] wlcore: uploading fw last chunk (6144 B) 0x00000000c8a0abe5 to 0x80944000
[ 1291.896604] wlcore: chunk 5 addr 0x80948000 len 6144
[ 1291.896613] wlcore: starting firmware upload
[ 1291.896618] wlcore: fw_data_len 6144 chunk_size 16384
[ 1291.896842] wlcore: uploading fw last chunk (6144 B) 0x00000000335a8074 to 0x80948000
[ 1291.897412] wlcore: chunk 4 addr 0x8094c000 len 6144
[ 1291.897421] wlcore: starting firmware upload
[ 1291.897426] wlcore: fw_data_len 6144 chunk_size 16384
[ 1291.897651] wlcore: uploading fw last chunk (6144 B) 0x00000000ca280812 to 0x8094c000
[ 1291.898221] wlcore: chunk 3 addr 0x80950000 len 8192
[ 1291.898230] wlcore: starting firmware upload
[ 1291.898235] wlcore: fw_data_len 8192 chunk_size 16384
[ 1291.898459] wlcore: uploading fw last chunk (8192 B) 0x00000000565387ea to 0x80950000
[ 1291.899214] wlcore: chunk 2 addr 0x80960000 len 21260
[ 1291.899226] wlcore: starting firmware upload
[ 1291.899231] wlcore: fw_data_len 21260 chunk_size 16384
[ 1291.899464] wlcore: uploading fw chunk 0x00000000f36e9fef to 0x80960000
[ 1291.900924] wlcore: uploading fw last chunk (4876 B) 0x0000000078306af6 to 0x80964000
[ 1291.901409] wlcore: chunk 1 addr 0x80953000 len 1536
[ 1291.901418] wlcore: starting firmware upload
[ 1291.901424] wlcore: fw_data_len 1536 chunk_size 16384
[ 1291.901647] wlcore: uploading fw last chunk (1536 B) 0x00000000f5be13f6 to 0x80953000
[ 1291.901817] wlcore: chunk 0 addr 0x80958000 len 24576
[ 1291.901826] wlcore: starting firmware upload
[ 1291.901832] wlcore: fw_data_len 24576 chunk_size 16384
[ 1291.902060] wlcore: uploading fw chunk 0x00000000823cdb56 to 0x80958000
[ 1291.903527] wlcore: uploading fw last chunk (8192 B) 0x0000000059a7af6f to 0x8095c000
[ 1291.904864] wlcore: chip id after firmware boot: 0x6030111
[ 1294.449172] wlcore: ERROR timeout waiting for the hardware to complete initialization
```
Thanks.
Liu Yiwei