调试指南
3 Mar 2025
调试开关
-
在内核配置界面,按如下选择,打开 SDMC 模块的 DEBUG 选项:
Linux Kernel hacking ArtInChip Debug [*] SD&MMC Host Controller driver debug
-
在 .c 中定义一个宏开关 VERBOSE_DEBUG,打开 SDMC 驱动中的 dev_vdbg() 调试接口。
使用下列命令可在 artinchip_mmc.c 的起始位置定义一个 VERBOSE_DEBUG:#define VERBOSE_DEBUG
-
打开后需重新编译,dev_vdbg() 就会转成 dev_dbg(),否则为空。