Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:common:troubleshooting:capture-log

This is an old revision of the document!


Capture Running Log

Ubuntu Linux

You can capture information from the running system log to diagnose abnormal behaviour and unexpected outputs.

Login via a Serial Terminal

Connect your PC to the SBC using a Serial Debug Tool.

The default account and password of Ubuntu Linux is as follows:

  • khadas - default account user name
  • khadas - default password

Running Log Capture

After logging in with the serial Terminal, you can capture the running system log via the following commands.

Fetch System Version Information

khadas@Khadas:~$ cat /etc/fenix-release > ~/system-version.log

Fetch System Kernel Information

khadas@Khadas:~$ sudo dmesg > ~/kernel.log

Fetch System Log Information

khadas@Khadas:~$ sudo tar cvzf ~/systemlog.tgz /var/log/

Android

If your system is behaving abnormally or we are getting some unexpected outputs, it will be necessary to capture information from the running system log. This log will help us analyze and solve the problem. This document will teach you how to capture the running log of your system.

Capture Log

After logging in, you can capture the log via the following commands.

1.Acquire ROOT Privileges

console:/ $ su
console:/ #

2.Fetch System Kernel Information

console:/ # dmesg > /storage/kernel.log

3.Fetch System Log Information

console:/ # logcat > /storage/logcat.log

Send Log File

When reporting problems to Khadas Community or support@khadas.com, you can save the log file from your SBC into an SD card, and then send it off to us using your PC.

Last modified: 2023/03/23 05:16 by xiong