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.

[参考译文] DRA821U:使用 linuxptp 项目中的 ptp4l 和 phc2sys 进行 CPSW2G 测试

Guru**** 2013580 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1029538/dra821u-cpsw2g-testing-using-ptp4l-and-phc2sys-from-linuxptp-project

器件型号:DRA821U

根据使用 linuxptp 项目中的 ptp4l 工具进行的测试,将 ptp4l 命令显示为下一页


https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-j7200/latest/exports/docs/j7200/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW2g.html#common-platform-time-sync-cpts-module


了解 ptp4l 和 phc2sys 测试演示和测试结果的更多详细信息

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jay、

    我没有收到您的问题,您在寻找什么细节? 您是否尝试了该页上提到的命令?

    此致

    葡萄园

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Vineet

    我们尝试该页面上提到的命令、  

    (1)主控侧 命令@ Ubuntu 18.04

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    root@js:/opt# ptp4l -E -4 -S -i enp0s8 -l 7 -m -q -f ptp.cfg
    ptp4l[4848.891]: config item (null).assume_two_step is 0
    ptp4l[4848.891]: config item (null).check_fup_sync is 0
    ptp4l[4848.891]: config item (null).tx_timestamp_timeout is 1
    ptp4l[4848.891]: config item (null).hwts_filter is 0
    ptp4l[4848.891]: config item (null).clock_servo is 0
    ptp4l[4848.891]: config item (null).clock_type is 32768
    ptp4l[4848.891]: config item (null).clock_servo is 0
    ptp4l[4848.891]: config item (null).clockClass is 248
    ptp4l[4848.891]: config item (null).clockAccuracy is 254
    ptp4l[4848.891]: config item (null).offsetScaledLogVariance is 65535
    ptp4l[4848.891]: config item (null).productDescription is ';;'
    ptp4l[4848.891]: config item (null).revisionData is ';;'
    ptp4l[4848.891]: config item (null).userDescription is ''
    ptp4l[4848.891]: config item (null).manufacturerIdentity is '00:00:00'
    ptp4l[4848.891]: config item (null).domainNumber is 0
    ptp4l[4848.891]: config item (null).clientOnly is 0
    ptp4l[4848.891]: config item (null).gmCapable is 1
    ptp4l[4848.891]: config item (null).gmCapable is 1
    ptp4l[4848.891]: config item (null).G.8275.defaultDS.localPriority is 128
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    (2)从端命令@ J7200 EVM

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    root@j7200-evm:/opt# ptp4l -E -4 -H -i eth0 -s -l 7 -m -q -p /dev/ptp0 -f ptp.cfg
    ptp4l[865.211]: config item (null).assume_two_step is 0
    ptp4l[865.211]: config item (null).check_fup_sync is 0
    ptp4l[865.211]: config item (null).tx_timestamp_timeout is 400
    ptp4l[865.211]: config item (null).hwts_filter is 0
    ptp4l[865.211]: config item (null).clock_servo is 0
    ptp4l[865.211]: config item (null).clock_type is 32768
    ptp4l[865.211]: config item (null).doubly_attached_clock is 0
    ptp4l[865.211]: config item (null).clock_servo is 0
    ptp4l[865.211]: config item (null).clockClass is 248
    ptp4l[865.211]: config item (null).clockAccuracy is 254
    ptp4l[865.211]: config item (null).offsetScaledLogVariance is 65535
    ptp4l[865.211]: config item (null).productDescription is ';;'
    ptp4l[865.211]: config item (null).revisionData is ';;'
    ptp4l[865.211]: config item (null).userDescription is ''
    ptp4l[865.211]: config item (null).manufacturerIdentity is '00:00:00'
    ptp4l[865.211]: config item (null).domainNumber is 0
    ptp4l[865.211]: config item (null).slaveOnly is 1
    ptp4l[865.211]: config item (null).gmCapable is 1
    ptp4l[865.211]: config item (null).gmCapable is 1
    ptp4l[865.211]: config item (null).G.8275.defaultDS.localPriority is 128
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    (3)检查 PTP 时钟时间@ j7200 EVM

    Fullscreen
    1
    2
    root@j7200-evm:/opt# /usr/bin/kselftests/ptp/testptp -d /dev/ptp0 -g
    clock time: 1658.739659060 or Thu Jan 1 00:27:38 1970
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    我们的问题是

    (1)我们在 ptp4l 命令@ j7200 EVM 之后检查主偏移是否增加,主偏移形式 -28807509 至-37328099  

    ptp4l[870.914]:主偏移 -28807509 s0 freq   +0路径延迟  715054

    ptp4l[1031.312]:主偏移 -37328099 s2 freq -195312路径延迟  588494

    如何降低主失调电压?

    (2)我们在 ptp4l 命令@ j7200 EVM 之后检查 PTP 时钟时间

    EVM 时钟时间仍不会更改为同步主器件侧、  

    从机时钟时间如何与主机时间同步?

    (3)同步系统时钟时间 @ j7200 EVM

    如何将系统时间与 PTP 时钟时间同步、再见、phc2sys?

    BR

    Jay

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jay、

    很抱歉耽误你的时间。

    我将尝试进行仿真并返回给您

    此致

    葡萄园

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jay、

    我现在正在处理这个问题

    此致

    葡萄园