From owner-freebsd-questions@FreeBSD.ORG Thu Jul 3 16:47:35 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 13D8F99D for ; Thu, 3 Jul 2014 16:47:35 +0000 (UTC) Received: from mail.ssimicro.com (mail.ssimicro.com [64.247.129.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.ssimicro.com", Issuer "RapidSSL CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AFBB22D49 for ; Thu, 3 Jul 2014 16:47:34 +0000 (UTC) Received: from eriks.ssimicro.com (eriks.ssimicro.com [96.46.34.205]) (authenticated bits=0) by mail.ssimicro.com (8.14.7/8.14.7) with ESMTP id s63GfsC7096072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Thu, 3 Jul 2014 10:41:55 -0600 (MDT) Message-ID: <53B587D2.2060107@ssimicro.com> Date: Thu, 03 Jul 2014 12:41:54 -0400 From: Erik Sejr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Using a Raspberry PI with FreeBSD 10 for NTP with PPS Sync X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 16:47:35 -0000 Hello List, I was thinking of attempting to get a GPS synchronized NTP server running on a raspberry PI using FreeBSD 10. I had no issues getting FreeBSD 10 up and running on the rpi using crochet-freebsd, but I think i've hit a wall when it comes to making use of the PPS signal from the GPS reciever to sync the clock. The kernel has the PPS_SYNC option compiled in, but I can't seem to find anything indicating where/on what pin the PPS signal is expected? I would think this would be hardware-specific and my original intent was to use one of the GPIO pins for this purpose. Looking though the bcm2835_* kernel driver files in /usr/src/sys/arm/broadcom there seems to be no support for this on this board. From what I can tell, there seems to be no way to map a particular GPIO pin to be used as a PPS input in a manner similar to what the gpio-pps driver provides in Linux. I took a quick look at gpsd to see if this was gad been done in userspace, but it seems to require that the PPS comes in from one of the unused hardware handshaking pins on the serial port, and the RPI only has a 3-wire serial port (rx, tx and ground). I'm wondering if anyone on the list knows if there is something I've missed/overlooked here, or if the hardware support in FreeBSD is just not there for this application with the raspberry pi? Thanks, Erik