Linux Reboot Log

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,314件の閲覧回数
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,269件の閲覧回数
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,270件の閲覧回数
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,257件の閲覧回数
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,292件の閲覧回数
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 件の賞賛
返信