i.MX8MPlus EVK, Android 13
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.
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
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?