Getgpsdate

From Phobos Wiki
Revision as of 17:32, 14 January 2015 by MarkTomm (talk | contribs) (Uus lehekülg: '=== git repo === git@taru:users/mark/getgpsdate.git === Description === Simple program that gets time straight form a gps device (via a file handler in /dev/) using ...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

git repo

git@taru:users/mark/getgpsdate.git


Description

   Simple program that gets time straight form a gps device (via a file 
   handler in /dev/) using the low level gps interface libgpsd to 
   circumvent the need for GPS Daemons (e.g. when using Generic NMEA
   reference clocks).
   This program should be run once at system boot, otherwise, with no
   half-way valid clock, ntpd will receive the time from gps
   source, but will either refuse to adjust the clock by years of
   difference or make a sudden change of system time, which may result
   in system crash.


Building and dependencies

   getgpsdate util depends on libgpsd and libgps so files and on
   some additional headers (gpsd.h and its includes). All this can
   be obtained from compiled gpsd directory (after running ./configure
   && make (or scons equivalent) in gpsd source directory).
   In buildroot gpsd is set as a dependency for getgpsdate.


Relevant files in Telem-gw project:

  • buildroot/board/martem/post-build/rm-temp-files.sh

gpsd binary and S50gpsd init script are removed from system install directory at the end of the build. gpsd is not used in devices, only it's libraries and headers in staging for compiling getgpsdate utility.

  • buildroot/package/gpsd/gpsd.mk

cp $(@D)/gpsd.h $(STAGING_DIR)/usr/include line was added to INSTALL_STAGING define, because getgpsdate util includes <gpsd.h>

  • buildroot/package/getgpsdate/Config.in
  • buildroot/package/getgpsdate/getgpsdate.mk

Relevant commits

2addffadb7004912cf4a8f86b6f2e3264172271d
394199005b49ca11de9a808c32aae5b5e804fe95
b0e23ef1ecbdd6bb030f52e114a79e1079744d86
26910c4c0a803078d133590f6e6424d63ca1f5fe
91f50c95950c1886b306fe2f7bddaa55983c1d5f
7c0898c4a97e76a83426467de31193e0d8ca6247
67be7fab9024ffc42af7da56a91ba445746ef123
069a0c71a3d49cc17a052c46ffe3d4d35165dc0e
b727c94c450ebc43a783facf88011ae193a7203e
1eecf54be19e6679cb3a0eec8d500c277b5940b9
45945eac6bc7b88ca08a51e9e53ebb4ada4f32a7
f8963adf0723ecdd11362599d65dc24f88a6438f

MarkTomm 14. jaanuar 2015, kell 19:32 (EET)