IMX8MP - enableing MMC_DEBUG_CONFIG

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX8MP - enableing MMC_DEBUG_CONFIG

2,443 次查看
LilianeD
Contributor II

Hello,

I have an i.MX8MP board (Phytec phycore to be precise) and am building a custom yocto recipe.

I am adding an second MMC on usdhc1 (mmc0)

I unfortunately have some communication problems and would like to have more MMC debugging data.

I enabled CONFIG_MMC_DEBUG in my fragment.cfg (and checked it was applied in my build directory)

Unfortunately I have no extra messages in dmeg / run/log/journal (using klog for logging)

is there another option that needs to be activated to see mmc debugging messages?

 

Thank you for your help!

Liliane

标记 (2)
0 项奖励
回复
2 回复数

2,404 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @LilianeD,

 

Could you please try adding printk for the prints and changing the print debug level to the max for all prints?

 

Best Regards,
Dhruvit.

0 项奖励
回复

2,428 次查看
edwardtyrrell
Senior Contributor I

Hi,

There are a number of options in your menuconfig -> bitbake linux-imx -c menuconfig (or some kernel name). Check -> Device drivers ->  MMC/SD/SDIO support ->  [*] MMC host drivers debugging

<help> CONFIG_MMC_DEBUG: This enables MMC host driver debugging.  There's some other debug stuff in there as well.

Worst case there's printk which can be added like printf in drivers and that woud require enabling under 'kernel hacking'. Inside 'kernel hacking' there are lots of other debugging options in there as well.

After any changes do a rebuild. Beware kernel changes can be lost after kernel cleans etc..

Check dmesg as well for kernel info..

 

Hope any of this helps.   

 

0 项奖励
回复