Skip to main content

Build & Setup

1. Compile with meta-rtc

Follow the QLI 2.0 sync steps, then add the meta-rtc layer:

2. Verify RT Boot

After flashing, confirm both devices boot with the correct RT kernel command line. CPUs 3–7 must be isolated:
Expected output:

3. Set Script Permissions

Run on both devices after every flash:

4. Run postboot.sh

Run on both devices after every boot, before starting PTP:
This script applies all RT tuning that cannot be set at initscripts time. It:

5. Start PTP Synchronization

Run on both devices simultaneously:
  • Defaults to interface end0
  • Pins ptp4l to CPU 1 and phc2sys to CPU 2, both at SCHED_FIFO 98
  • Uses 802.1AS-2011 endstation profile (gPTP_qcom_emac.cfg)
  • Logs: /var/log/ptp4l_run.log and /var/log/phc2sys_run.log
Wait 5 minutes after starting ptp.sh on both devices before proceeding. This allows the PTP clock offset to fully converge. Do not skip or shorten this wait.

Test Execution

Configure peer MACs, run mirror/reference, interpret results

Reference Files

Full source for postboot.sh, ptp.sh, and gPTP config