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

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