Skip to content

Commit

Permalink
Fixed up documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidv1992 authored and rnijveld committed Nov 30, 2023
1 parent 3c8f82a commit 4c35393
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 7 additions & 5 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Installing statime
# Getting started

## Installing statime

We recommend installing statime through our precompiled binary packages, available on the [release page](https://github.com/pendulum-project/statime). These can be installed through the standard methods for your linux installation, and will provide a binary, as well as a skeleton configuration and systemd unit for statime.

# Configuring interfaces
## Configuring interfaces

Before we start statime, we first need to tell it which network interfaces we want it to use. For each network interface, add a section like
```toml
Expand All @@ -12,7 +14,7 @@ network-mode = "ipv4" # or "ipv6" or "ethernet"
```
to the configuration file in `/etc/statime/statime.toml`. This will tell statime to create a PTP port for that network interface.

## Hardware timestamping
### Hardware timestamping
If the network interface supports hardware timestamping for a specific PTP hardware clock, this can be enabled by specifying the hardware clock of the network interface:
```toml
hardware-clock = "/path/to/hardware/clock/device"
Expand All @@ -38,7 +40,7 @@ Hardware Receive Filter Modes:
```
Here, the number after `PTP Hardware Clock` indicates which hardware clock device should be used. The 0 in this case means `/dev/ptp0`.

# Starting the daemon
## Starting the daemon

We can now start the statime daemon through systemd with
```
Expand Down Expand Up @@ -71,6 +73,6 @@ nov 24 09:49:46 magnesium statime[13032]: [08:49:46.6230144.500732422][statime::
nov 24 09:49:46 magnesium statime[13032]: [08:49:46.6230444.90814209][statime::filters::basic][INFO] Offset to master: 4.85575e4ns, corrected with phase change -1.2139375e4ns and freq change -8.688730125938628e-2ppm
```

# Further steps
## Further steps

Further information on configuration options for statime can be found in the [man page](../man/statime.8.md)
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Statime

Statime is an implementation of PTP for use under linux and [as a library](https://docs.rs/statime/latest/statime/). It is dual-licensed under the APACHE and MIT licenses. To start using statime to synchronize the time of your linux machine, see our [getting started guide](guide/getting-started.md).
3 changes: 1 addition & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ markdown_extensions:
- pymdownx.details
- pymdownx.superfences
nav:
- Home: index.md
- Guide:
- guide/setup.md
- guide/getting-started.md
- Man Pages:
- statime(8): man/statime.8.md

0 comments on commit 4c35393

Please sign in to comment.