<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/linuxptp/files/phc2sys.init, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2026-10-24T13:59:03Z</updated>
<entry>
<title>linuxptp: address review nits from round 4</title>
<updated>2026-10-24T13:59:03Z</updated>
<author>
<name>Aleks Mariusz</name>
</author>
<published>2026-08-18T09:06:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=6cb82d3f9763cf3d280e6529bf95e67ee30447a9'/>
<id>urn:sha1:6cb82d3f9763cf3d280e6529bf95e67ee30447a9</id>
<content type='text'>
- ptp4l.init: add fast pre-check for ptp_interface UCI sections before
  the clock-sync wait, so a misconfigured box fails in milliseconds
  rather than burning the full max_tries budget inside rcS
- ptp4l.init: fix Waiting... progress line when clock_sync_max_tries
  is 0 (was rendering as '3/0'; now shows 'attempt N, unlimited')
- ptp4l.init, phc2sys.init: downgrade 'not configured' log messages
  from err to notice; an unconfigured package is expected state, not
  a fault
- linuxptp.config: replace '~2 min' with the actual formula
  (clock_sync_check_interval x (tries - 1)) so the comment stays
  accurate when either knob is changed

Signed-off-by: Aleks Mariusz &lt;a+git-commit@alek.cx&gt;
</content>
</entry>
<entry>
<title>linuxptp: fix boot-block, phc2sys auto-start and interface validation</title>
<updated>2026-10-24T13:59:03Z</updated>
<author>
<name>Aleks Mariusz</name>
</author>
<published>2026-08-17T12:11:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=71666498b7d7a4151b8a64a58b6d88fbc2cea2bf'/>
<id>urn:sha1:71666498b7d7a4151b8a64a58b6d88fbc2cea2bf</id>
<content type='text'>
- ptp4l.init: bound wait_disciplined with clock_sync_max_tries (default
  8 attempts, ~2 min) so a server-role device with no time source does
  not stall rcS indefinitely; set to 0 to wait without limit
- ptp4l.init: validate that at least one [interface] section was written
  to ptp4l.conf (by counting section headers); a config with only
  [global] is now rejected with a clear error rather than launching
  ptp4l into a respawn loop
- phc2sys.init: require phc_device to be explicitly configured; removes
  the /dev/ptp0 default so phc2sys does not auto-start on upgrade and
  slew CLOCK_REALTIME from an undisciplined PHC
- linuxptp.config: comment out the config ptp_interface section header
  so the shipped default contains no load-bearing anonymous section;
  validation is now in the init script rather than the config structure
- linuxptp.config: comment out phc_device so both daemons require
  explicit admin opt-in before starting
- linuxptp.config: document clock_sync_max_tries option

Signed-off-by: Aleks Mariusz &lt;a+git-commit@alek.cx&gt;
</content>
</entry>
<entry>
<title>linuxptp: fix init script bugs and address review feedback</title>
<updated>2026-10-24T13:59:03Z</updated>
<author>
<name>Aleks Mariusz</name>
</author>
<published>2026-08-17T10:53:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=b63bea16a0f89d35ebc5eb5ddab9a1dead1f5ee1'/>
<id>urn:sha1:b63bea16a0f89d35ebc5eb5ddab9a1dead1f5ee1</id>
<content type='text'>
- ptp4l.init: move procd_open_instance block to after validation so
  clock-sync wait and config-generation failures actually prevent startup
- ptp4l.init: add mkdir -p for /var/etc before writing ptp4l.conf
- phc2sys.init: propagate make_cmdline failure to prevent launch with
  an incomplete command line
- Both init scripts: add service_triggers() for reload_config support
- ptp4l.init: quote all variable expansions in [ ] tests
- sysclock-discipline-check.c: zero-initialise struct timex via
  memset, use int main(void), drop unused stdlib.h, cast txc.status
  to unsigned int for printf
- linuxptp.config: comment out the active ptp_interface/interface
  option so services do not auto-start on upgrade without explicit
  admin opt-in
- linuxptp.config: comment out active list extra_args and document
  clock_sync_check_interval and ptp4l extra_args options
- Fix typos: exitting-&gt;exiting, syncronized-&gt;synchronized
- ptp4l stop_service: remove generated config file on stop

Signed-off-by: Aleks Mariusz &lt;a+git-commit@alek.cx&gt;
</content>
</entry>
<entry>
<title>linuxptp: add config &amp; init scripts for ptp4l and phc2sys</title>
<updated>2026-10-24T13:59:03Z</updated>
<author>
<name>Aleks Mariusz</name>
</author>
<published>2026-08-14T19:54:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=5eac6af978c8e84ed634b7cce4d755118d5956fd'/>
<id>urn:sha1:5eac6af978c8e84ed634b7cce4d755118d5956fd</id>
<content type='text'>
This adds configuration and init scripts for ptp4l and phc2sys, the
daemons included with the linuxptp package.

A helper utility (sysclock-discipline-check) delays ptp4l startup when
in 'server' mode until the kernel confirms clock accuracy. This is
critical for systems without RTC that boot with incorrect timestamps.

Signed-off-by: Aleks Mariusz &lt;a+git-commit@alek.cx&gt;
</content>
</entry>
</feed>
