Linux Reboot Log

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Linux Reboot Log

跳至解决方案
2,291 次查看
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?

 

标签 (1)
0 项奖励
回复
1 解答
2,246 次查看
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 项奖励
回复
3 回复数
2,247 次查看
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 项奖励
回复
2,234 次查看
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 项奖励
回复
2,269 次查看
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 项奖励
回复