# Debug

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

### About this task

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

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

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

### Procedure

1. To debug issues related to kernel driver, collect dmesg
                    logs by running the following command:
                
dmesg > /var/log/dmesg_logs.txtCopy to clipboard
2. To verify the packet transfer, collect tcpdump logs by
                    running the following command:
                
tcpdump -i any -s 0 -w /var/log/tcpdump.pcapCopy to clipboard
3. After the test, pull the file by running the following command:
                
setenforce 0
          scp  root@<device_ip_address>:/var/log/tcpdump.pcap .
          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-70014-26/topic/tools.html).

Last Published: Jul 11, 2024

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