NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
3.3 Firmware dump
This section shows how to retrieve the firmware memory from the device and dump it
into a file for debugging purposes. A firmware dump can be triggered from the /proc. The
driver also dumps the firmware memory in the dmesg logs when a fatal error occurs for
example due to command timeout or Tx timeout.
Command to trigger the firmware dump:
root@imx8mqevk:~# echo "debug_dump" >> /proc/mwlan/adapter0/config
Command output example:
[ 4647.885895] Receive debug_dump command
[ 4647.889735] ------------mlan_debug_info-------------
[ 4647.894749] mlan_processing =0
[ 4647.897838] main_lock_flag =0
[ 4647.900808] main_process_cnt =50
[ 4647.904070] delay_task_flag =0
[ 4647.907151] mlan_rx_processing =0
[ 4647.910498] rx_pkts_queued=0
[ 4647.913381] tx_pkts_queued=0
[ 4648.314446] Create directory /var/dump_4648 successfully
[ 4648.319463] SDIO Func1 (0x10-0x17): 00 00 00 00 ff ff ff ff
[ 4648.325351] Directory name is /var/dump_4648
[ 4648.325353] === START DRIVER INFO DUMP===
[ 4648.325407] DRV dump data in /var/dump_4648/file_drv_info
[ 4648.330895] SDIO Func1: (0x8) c3 (0x58) 00 (0x5c) 08 (0x5d) 00
(0x60) 07 (0x61) 0c (0x62) 00 (0x64) 10 (0x65) 00 (0x66) 00 (0x68) 00
(0x69) 00 (0x6a
[ 4648.363988] SDIO Func1 (0xe8-0xf2): dc fe 04 00 d9 00 00 20 20 01
70
[ 4648.448491] Drv info total bytes = 349618 (0x555b2)
[ 4648.453388] === DRIVER INFO DUMP END===
[ 4648.453448] ==== DEBUG MODE OUTPUT START: 4648.303870 ====
[ 4648.464517] DUMP_SIZE=0xf0000
[ 4648.467648] Start DUMP output 4648.318072, please wait...
[ 4691.532749] DUMP done:size = 0x129780
[ 4691.536605] Dump data file_sdio_DUMP saved in /var/dump_4648/
file_sdio_DUMP
[ 4691.552935] Dump data file_sdio_DUMP saved in /var/dump_4648/
file_sdio_DUMP successfully
[ 4691.561469] ==== DEBUG MODE OUTPUT END: 4691.411892 ====
[ 4691.566806] ==== DEBUG MODE END ====
The firmware dump files are created in
dump_XXXX
directory.
Command to list the content of
dump_XXXX
directory:
root@imx8mqevk:~# ls /var/dump_XXXX/
Command output example:
file_drv_info file_sdio_DUMP
UM11490
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2021. All rights reserved.
User manual
Rev. 2 — 29 January 2021
46 / 88