Test pstore/ramoops based on Android 13

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Test pstore/ramoops based on Android 13

Test pstore/ramoops based on Android 13

Platform

i.MX8MPlus EVK, Android 13

Background

Customer find we have enabled all configs about pstore and ramoops, but they can't get ramoops log in /sys/fs/pstore node on Android 13.

Solution

The default reboot will reset all hardware including the DDR control, so this will result in the loss of the log stored in RAM.

We have include such codes in ATF, the default code will use imx_wdog_restart(true) to reset all hardware.

void __dead2 imx_system_reset(void)
{
#ifdef IMX_WDOG_B_RESET
	imx_wdog_restart(true);
#else
	imx_wdog_restart(false);
#endif
}

 

To avoid DDR reset, we should comment  IMX_WDOG_B_RESET in vendor/nxp-opensource/arm-trusted-firmware/plat/imx/imx8m/imx8mp/include/platform_def.h

Zhiming_Liu_0-1693468718652.png

 

Result

evk_8mp:/sys/fs/pstore # ls
console-ramoops-0  dmesg-ramoops-0  pmsg-ramoops-0

 

コメント

Hi, @Zhiming_Liu ,

Can this method use on pure Linux OS (Yocto)?

 

BTW, is there similar way to debug imx6?

100%が役に立ったと言っています (1/1)
バージョン履歴
最終更新日:
‎08-31-2023 01:00 AM
更新者: