Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. server 127.127.20.0 iburst true prefer
  2. fudge 127.127.20.0 flag1 1 refid GPSD
  3. server 127.127.22.0 iburst true prefer
  4. fudge 127.127.22.0 flag1 1 refid KPPS
  5.  
  6. # Default settings for the gpsd init script and the hotplug wrapper.
  7.  
  8. # Start the gpsd daemon automatically at boot time
  9. START_DAEMON="true"
  10.  
  11. # Use USB hotplugging to add new USB devices automatically to the daemon
  12. USBAUTO="true"
  13.  
  14. # Devices gpsd should collect to at boot time.
  15. # They need to be read/writeable, either by user gpsd or the group dialout.
  16. DEVICES="/dev/serial0 /dev/pps0"
  17.  
  18. # Other options you want to pass to gpsd
  19. # -n don't wait for client to connect; poll GPS immediately
  20. GPSD_OPTIONS="-n"
  21.  
  22. force_turbo=1
  23. dtoverlay=pps-gpio,gpiopin=4
  24. init_uart_baud=9600
  25. arm_freq=800
  26.  
  27. dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles
  28.  
  29. # /etc/modules: kernel modules to load at boot time.
  30. #
  31. # This file contains the names of kernel modules that should be loaded
  32. # at boot time, one per line. Lines beginning with "#" are ignored.
  33.  
  34. i2c-dev
  35. pps-gpio
  36.  
  37. GNU nano 2.7.4 File: /etc/rc.local
  38.  
  39. #!/bin/sh -e
  40. #
  41. # rc.local
  42. #
  43. # This script is executed at the end of each multiuser runlevel.
  44. # Make sure that the script will "exit 0" on success or any other
  45. # value on error.
  46. #
  47. # In order to enable or disable this script just change the execution
  48. # bits.
  49. #
  50. # By default this script does nothing.
  51.  
  52. # Print the IP address
  53. _IP=$(hostname -I) || true
  54. if [ "$_IP" ]; then
  55. printf "My IP address is %sn" "$_IP"
  56. fi
  57.  
  58. ln -s /dev/serial0 /dev/gps0
  59. service gpsd stop
  60. service ntp restart
  61.  
  62. exit 0
  63.  
  64. pi@raspberrypi:~ $ ntpq -pn
  65. remote refid st t when poll reach delay offset jitter
  66. ==============================================================================
  67. 127.127.20.0 .GPSD. 0 l - 64 0 0.000 0.000 0.000
  68. x127.127.22.0 .KPPS. 0 l 156 64 54 0.000 -30.909 6.705
  69. 0.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.001
  70. +212.26.18.43 209.51.161.238 2 u 24 64 377 63.087 -3.832 11.598
  71. +212.26.18.41 209.51.161.238 2 u 55 64 377 62.326 -2.398 38.556
  72. *212.138.170.134 .PPS. 1 u 56 64 377 93.082 0.377 39.534
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement