-
Notifications
You must be signed in to change notification settings - Fork 9.6k
WIP: Agnos Kernel Debugging
pencilpusher edited this page Dec 13, 2023
·
9 revisions
Common commands:
Mounting the drive for writing:
mount -o remount, rw /
Ubuntu system logs are located at /var/log
and /sys/fs/pstore
print the kernel logs to terminal:
dmesg
or print the last few lines with dmesg | tail
if /sys/fs/pstore doesn't have any files, do a warm reboot then there should be logs.
tail -n 5 /sys/fs/pstore/console-ramoops-0
Connect to the device through a UART connection (slow):
On host computer:
sudo apt install screen
sudo screen /dev/ttyUSB* 115200
press enter to wake up the UART connection and show the login prompt username: comma password: comma
Make driving chill. Buy a comma 3X with a car harness today! Our new price is $999