Dear NXP IMX8 Support Team.
How can I get the last boot log and analyses the exception when a Linux system reboots due to an exception?
Solved! Go to Solution.
Dear Harvey;
thanks a lot for your support.
But we cannot find the boot log file via the /var/log.
would you please kindly help to share more information?
thanks.
dmesg
dmesg: [ 107.403010] type=1400 audit(1545213827.792:3613): avc: denied { dac_read_search } for pid=3935 comm="main" capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0
klogctl: Permission denied
[ 107.421064] type=1400 audit(1545213914.432:3645): avc: denied { syslog_read } for pid=4096 comm="dmesg" scontext=u:r:shell:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
Dear Harvey;
thanks a lot for your support.
But we cannot find the boot log file via the /var/log.
would you please kindly help to share more information?
thanks.
dmesg
dmesg: [ 107.403010] type=1400 audit(1545213827.792:3613): avc: denied { dac_read_search } for pid=3935 comm="main" capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0
klogctl: Permission denied
[ 107.421064] type=1400 audit(1545213914.432:3645): avc: denied { syslog_read } for pid=4096 comm="dmesg" scontext=u:r:shell:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
Hi
Those should work.
Or you can try tools similar to linux-imx/kdump.rst at lf-6.1.y · nxp-imx/linux-imx · GitHub
Best regards
Harvey
All boot logs should be saved at /var/log, or you can try tools: dmesg, journalctl.
Best regards
Harvey