summaryrefslogtreecommitdiff
path: root/daemons/gptp/README_GENIVI_DLT.txt
blob: 8c40354d7016859067542ecaeda5e4278bde48cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## Introduction
This readme covers the **optional** feature to use GENIVI DLT (Diagnostic Log and Trace) 
for logging withiin gPTP. General information about GENIVI DLT can be found at:

Primary DLT site:
https://at.projects.genivi.org/wiki/display/PROJ/Diagnostic+Log+and+Trace

DLT on GitHub:
https://github.com/GENIVI/dlt-daemon


## Build Related

DLT support in gPTP is a build time option.

### DLT must be built separately first before it can be used within gPTP.
- Get the latest DLT from github
	- https://github.com/GENIVI/dlt-daemon.git
- Follow instructions in INSTALL file.
- For example (Building with Shared libraries off)
	- mkdir build
	- cd build
	- cmake -DBUILD_SHARED_LIBS=OFF ..
	- make
	- sudo make install
		- Install places static lib in: /usr/local/lib/x86_64-linux-gnu/static/libdlt.a
		- Install places header files in: /usr/local/include/dlt/dlt.h

### Building gPTP with DLT loggging enabled.
- May need to update the gptp Makefile to specify location of DLT headers and lib
- GENIVI_DLT=1 make gptp


## Running 
### DLT 
- See the DLT documentaion about how to run the dlt-daemon.
- For example
	- dlt-daemon -d
		- Runs the daemon
	- dlt-receive -a localhost
		- Simple test client included in DLT to recieve DLT messages. 
	- dlt-user-example "Test message"
		- Test the DLT client and daemon.

### gPTP
- Run as normal.