NXP Semiconductors
UM11558
Getting Started with NXP-based Wireless Modules on i.MX 8M Quad EVK Running Android 10 OS
6.2.3 Firmware dump
Firmware dump is the capability to retrieve the firmware memory from the device and
store it into a file for debugging purposes. A firmware dump can be triggerred from the
/
proc
. The driver also dumps the firmware memory in the dmesg logs when fatal errors
such as command timeout, Tx timeout occur.
Example of command to trigger the firmware dump
evk_8mq:/ # echo "debug_dump" > /proc/mwlan/adapter0/config
Command output example
[ 9273.136909] Receive debug_dump command
[ 9273.140730] ------------mlan_debug_info-------------
[ 9273.145714] mlan_processing =0
[ 9273.148776] main_lock_flag =0
[ 9273.151756] main_process_cnt =681
[ 9273.155078] delay_task_flag =0
[ 9273.158132] mlan_rx_processing =0
[ 9273.161456] rx_pkts_queued=0
[ 9273.164343] tx_pkts_queued=0
….
[ 9273.472313] tx_lock_flag = 0
[ 9273.475206] port_open = 0
[ 9273.477823] scan_processing = 0
[ 9273.480978] ------------mlan_debug_info End-------------
[ 9273.486300] Driver version = SD8987---16.92.10.p80-MX4X16175-GPL-
(FP92)
[ 9273.573011] Create directory /data/dump_9273 successfully
[ 9273.580013] Directory name is /data/dump_9273
[ 9273.584383] === START DRIVER INFO DUMP===
[ 9273.584501] DRV dump data in /data/dump_9273/file_drv_info
[ 9273.594141] Wakeup device...
[ 9273.666600] wlan_interrupt: sdio_ireg = 0x40
[ 9273.670939] wlan0:
[ 9273.670940] _
[ 9273.673040] Delay Sleep Confirm ()
[ 9273.678033] Delay Sleep Confirm ()
[ 9273.681445] Delay Sleep Confirm ()
[ 9273.722932] Drv info total bytes = 349889 (0x556c1)
[ 9273.727831] === DRIVER INFO DUMP END===
[ 9273.727888] ==== DEBUG MODE OUTPUT START: 9273.629641 ====
[ 9273.748370] DUMP_SIZE=0xf0000
[ 9273.751519] Start DUMP output 9273.653273, please wait...
[ 9294.594068] DUMP done:size = 0x129780
[ 9294.598001] Dump data file_sdio_DUMP saved in /data/dump_9273/
file_sdio_DUMP
[ 9294.608983] Dump data file_sdio_DUMP saved in /data/dump_9273/
file_sdio_DUMP successfully
[ 9294.617605] ==== DEBUG MODE OUTPUT END: 9294.519358 ====
[ 9294.622940] ==== DEBUG MODE END ====
The firmware dump files are created in the following directory:
evk_8mq:/ # ls /data/dump_XXXX/file_drv_info file_sdio_DUMP
UM11558
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2021. All rights reserved.
User manual
Rev. 1 — 29 January 2021
50 / 78