# Debug

Source: [https://docs.qualcomm.com/doc/80-70015-26/topic/debug.html](https://docs.qualcomm.com/doc/80-70015-26/topic/debug.html)

### About this task

You can use the following log types to log and debug issues related to Ethernet.

| Log type | Purpose |
| --- | --- |
| dmseg | Debugging issues related to the kernel driver. |
| tcpdump | Verifying the packet transfer. |

To debug the issues that may occur during Ethernet bringup, do the following:

### Procedure

1. To collect dmesg logs and debug issues related to kernel
                    driver, run the following command:
                
dmesg > /var/log/dmesg_logs.txtCopy to clipboard
2. To collect tcpdump logs and verify the packet transfer,
                    run the following command:
                
tcpdump -i any -s 0 -w /var/log/tcpdump.pcapCopy to clipboard
3. To pull the file after the test, run the following commands:
                
scp  root@<device_ip_address>:/var/log/tcpdump.pcap .Copy to clipboard

        scp  root@<device_ip_address>:/var/log/dmesg_logs.txt .Copy to clipboard

Note: When prompted for a password, enter
                            `oelinux123` to authenticate the file transfer via
                        SCP.
4. Collect the output from ethtool, ifconfig, netstat, and IP route tables for
                    debugging.
                
For more information on these tools, see [Tools](https://docs.qualcomm.com/doc/80-70015-26/topic/tools.html).

Last Published: Oct 14, 2024

[Previous Topic
Configure](https://docs.qualcomm.com/bundle/publicresource/80-70015-26/topics/configure.md) [Next Topic
References](https://docs.qualcomm.com/bundle/publicresource/80-70015-26/topics/references.md)