This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

K2H checking cpsw and PA stats through ARM

Hi all,

I am using K2H evm with ramfs boot.  I want to check the cpsw logs, it is prefered to check these logs from ARM side, so how to check these cpsw_stats and PA stats to know that the packets are reaching upto that points through ethernet.

Regards

Tushar

  • Tushar,

    You can try the below sequence for check the cpsw stat,
    root@keystone-evm:~# ls -l /sys/devices/soc.0/2090000.netcp/cpsw/stats
    root@keystone-evm:~# ethtool -S eth0

    root@keystone-evm:~# echo 0 > /sys/devices/soc.0/2090000.netcp/cpsw/stats/A
    root@keystone-evm:~# echo 0 > /sys/devices/soc.0/2090000.netcp/cpsw/stats/B
    root@keystone-evm:~# ethtool -S eth0


    Please have a look at this wiki, get more detailed information.

    http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Exploring#Modifying_CPSW_Configurations_Through_Sysfs_User_Interface