Test pstore/ramoops based on Android 13

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

 

Comments

Hi, @Zhiming_Liu ,

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

 

BTW, is there similar way to debug imx6?

100% helpful (1/1)
Version history
Last update:
‎08-31-2023 01:00 AM
Updated by: