This is an old revision of the document!
You can capture information from the running system log to diagnose abnormal behaviour and unexpected outputs.
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 namekhadas
- default passwordAfter logging in with the serial Terminal, you can capture the running system log via the following commands.
khadas@Khadas:~$ cat /etc/fenix-release > ~/system-version.log
khadas@Khadas:~$ sudo dmesg > ~/kernel.log
khadas@Khadas:~$ sudo tar cvzf ~/systemlog.tgz /var/log/
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.
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
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.