Linux Reboot Log

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

Linux Reboot Log

Jump to solution
2,290 Views
DanielDuJijun
Contributor III

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?

 

Labels (1)
0 Kudos
Reply
1 Solution
2,245 Views
DanielDuJijun
Contributor III

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

 

View solution in original post

0 Kudos
Reply
3 Replies
2,246 Views
DanielDuJijun
Contributor III

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

 

0 Kudos
Reply
2,233 Views
Harvey021
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
2,268 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @DanielDuJijun 

All boot logs should be saved at /var/log, or you can try tools: dmesg, journalctl.

 

Best regards

Harvey

0 Kudos
Reply