nxp-archive / openil

OpenIL is an open source project based on Buildroot and designed for embedded industrial solution.
Other
136 stars 55 forks source link

[LS1021ATSN - 802.1AS (gPTP)] linuxptp.cfg, linuxptp-system-clock.cfg, gPTP.cfg #87

Closed diegotxegp closed 3 years ago

diegotxegp commented 3 years ago

Hello,

My network is a LS1021ATSN platform with 2 boards. 802.1AS (gPTP) is the standard used.

When I run the ptp4l instruction in both the LS1021ATSN platform and the boards... ptp4l -i eth0 -f gPTP.cfg --tx_timestamp_timeout 20 (for example)

My questions are: Does gPTP.cfg overwrite the configuration of linuxptp.cfg (for LS1021ATSN) or default.cfg (for linuxptp of the boards)? Or parameters of gPTP are taken into account regardless linuxptp.cfg (for LS1021ATSN) or default.cfg (for linuxptp of the boards)?

I ask this because I noticed that linuxptp.cfg (for LS1021ATSN) and default.cfg (for linuxptp of the boards) and event linuxptp-system-clock.cfg (for LS1021ATSN) contain two parameters called "step_threshold" and "first_step_threshold". Correct me if I am wrong, but these parameters allow jumps in the clock if it is over its value.

What I want is no jumps. Just that the frequency of the clock changes.

I think that the best configuration for that is "step_threshold" by default (0.0), always changing the frequency, and the "first_step_threshold" by default, just jump over 20us on the first update. Correct me if I am wrong.

Anyway, do you recommend me to change those parameters or there are more parameters under consideration?

Remember, I do not want strange jumps in the middle of the synchronization.

Kind regards, Diego

diegotxegp commented 3 years ago

I need this information for knowing if I must to write redundant extra commands like "--step_threshold 0.0 --first_step_threshold 0.00002" to the ptp4l instruction.