Skip to main content

Reference Files

Full source for the three files shipped with the RTC Testbench. These are installed to /usr/share/rtc-testbench/tests/common/ and /etc/ by the meta-rtc layer.

postboot.sh

Run once after every boot, before ptp.sh. Applies all RT tuning that cannot be set at initscripts time. Install path: /usr/share/rtc-testbench/tests/common/postboot.sh

ptp.sh

Starts ptp4l and phc2sys for 802.1AS gPTP clock synchronisation. Run on both devices simultaneously. Install path: /usr/share/rtc-testbench/tests/common/ptp.sh
ptp.sh defaults to enP1p1s0. For the RTC Testbench on Qualcomm EMAC, pass end0 as the argument, or ensure the interface is mapped correctly in your environment.

gPTP_qcom_emac.cfg

802.1AS-2011 gPTP profile configuration passed to ptp4l via -f /etc/gPTP.cfg. Install path: /etc/gPTP.cfg

Build & Setup

How to use these scripts

Test Execution

Run the test and interpret results