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.

[参考译文] TDA4VH-Q1:est 配置的同步

Guru**** 2542460 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1358315/tda4vh-q1-synchronization-of-est-configuration

器件型号:TDA4VH-Q1
主题中讨论的其他器件:TDA4VH

您好、TI  专家

我正在使用 TDA4VH 本机驱动程序0900下的开关模式 来测试 EST (3.2.10.3.3.2)。 EST—适用于 J784s4的 Processor SDK Linux 文档)。 在 以下命令的末尾、有一个命令"sleep 120"、用于完成 SYNC。 我们是否可以通过读取寄存器的值来确认同步已完成、从而避免等待2分钟?

#!/bin/sh

ifconfig eth0 down ifconfig eth1 down

ethtool -L eth0 tx 4 ethtool
-L eth1 tx 4 ethtool --set-priv-flags
eth0 p0-rx-ptype-robin off ethtool
-- set-priv-flags eth1 p0-rx-ptype-robinin off

devlink dev param set platform/80000.Ethernet name switch_mode value 真 cmode 运行时

IP 链接添加名称 br0类型桥接 IP 链接



set dev br0类型桥接老化_time 1000 IP 链接设置 dev eth0 up IP 链路设置 dev eth1 up 休眠10 IP 链路设置 dev eth0 主器件 br0
IP 链路集 DEV eth1主器
件 br0
IP 链路集 DEV br0 up IP 链路集 DEV
br0型
桥 VLAN_FILTERING 1桥
VLAN 添加 DEV br0 vid 1自桥 VLAN 添加 DEV br0 vid 1 PVID 无标记自桥 VLAN 添加 DEV eth0 vid 100主器件
桥接 VLAN 将 DEV ETH1 vid 100主设备

#SYNC 系统时间添加到 CPSW CPTS
phc2sys -s clock_realtime -c eth0 -m -O 0 >/dev/null &

#calc base_time as now
+ 2min,为其提供 SYNC BASE=$((`date +%s`+ 2 * 60)*1000000000)

tc qdisc replacement dev eth0父根手柄100磁带\
num_tc 3 \
映射0 0 0 1 2 0 0 0 0 0 0 0 0 0 0 0 0 0 \
队列1@0 1@1 1@2 \
基准时间$base \
计划录入 S 4 10000 \
计划条目 S 2 30000 \
计划录入 S 1 60000 \
flags 2
tc qdisc replacement dev eth1父根手柄100 taprio \
num_tc 3 \
映射0 0 0 1 2 0 0 0 0 0 0 0 0 0 0 0 0 0 \
队列1@0 1@1 1@2 \
基准时间$base \
计划录入 S 4 10000 \
计划条目 S 2 30000 \
计划录入 S 1 60000 \
Flags 2#

等待2分钟同步以完成
睡眠120

回波"切换设置已完成。" 

此致、

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

    您好!

    在 以下命令的末尾,有一个命令"sleep 120"

    EST 配置需要与 CPSW CPTS 时间进行系统时间同步。 两次同步可能都需要一段时间。
    请参阅以下用于时间同步的命令。

    Unknown 说:
    #sync system time to CPSW CPTS phc2sys -s clock_freal-c eth0 -m -O 0 >/dev/null &

    因此、以上内容可能是将 EST 时间同步延迟2分钟的原因。

    Unknown 说:
    #calc base_time as now + 2分钟,给它时间同步 base=$((`date +%s`+ 2 * 60)*1000000000)

    此外、我们正在将 EST 基准时制编程为提前2分钟、并考虑同步将在此时间 b/w CPTS 时间和系统时间内发生。

    [QUOTE USERID="564864" url="~/support/processors-group/processors/f/processors-forum/1358315/tda4vh-q1-synchronization-of-est-configuration 通过读取寄存器的值来确认同步是否完成、我们可以避免等待2分钟吗?

    您可能需要读取 CPSW 的系统时间和 CPTS 并在匹配时进行比较、然后可以继续进行 EST 的进一步配置。


    此致、
    苏德黑尔