From owner-freebsd-arm@freebsd.org Mon Mar 8 21:24:09 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A69E5590BB; Mon, 8 Mar 2021 21:24:09 +0000 (UTC) (envelope-from kristoff@skypro.be) Received: from mailsec102.isp.belgacom.be (mailsec102.isp.belgacom.be [195.238.20.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign RSA OV SSL CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DvWYg5LBsz3mnB; Mon, 8 Mar 2021 21:24:07 +0000 (UTC) (envelope-from kristoff@skypro.be) IronPort-SDR: Ok+1bzbh0lkD+8imSN2oENg4DG/kgs1ucW/mveiEMhWCbaeit6+o7MJphuKp14A253DH1kl+6H E13E+Up+plAS3pbABCn2KAjIMZOvPnWVIZwb2ivU+6Dl04PQJaoyWxEvwyfi2RsuAQMtPoIVQx pOeKQGMfPwL3Hh9/ZpYjD4C8T0o0Rz8C0BA4S2jsjao57XbD7H2Mzbi1G6dewCwIN9A6VuOt7D 53muTvT509KBTyUpwB/9pyxODtMY1RQkiMfvBZSkXAkQlaQht51k5ccJZ/2eV/lrGbcTrb1y5D hMk= X-IPAS-Result: =?us-ascii?q?A2AMBADLlEZg/4rchW0NVR9qB4NEgSWGApEuMIQDmEoLA?= =?us-ascii?q?QEBAQEBAQEBCSgMBAEBhE0CgXsmOBMCAwEBAQMCAwEBAQEGAQEBAQEBBQQBh?= =?us-ascii?q?hg5gkUig2sBAQQjDwEFQRALDgoCAiYCAlcGDQgBAYJsAYMWrBZ2gTKEPwGBG?= =?us-ascii?q?IM3gT8GgQ8qjUI1DYFIQ4ERJ4F1fj6HVIJfBIFVgUU7LIIBc7kfMoMIgSqBN?= =?us-ascii?q?IZikloFBwMfhh2dT4Y9l1yCCJIVgTqDQoFrgXpNIBiDJU8mjisWgQEBCIJDi?= =?us-ascii?q?lqBKgIGAQkBAQMJjyYBAQ?= IronPort-PHdr: =?us-ascii?q?9a23=3AO07OGx89aWnKDP9uRHKM819IXTAuvvDOBiVQ1K?= =?us-ascii?q?B21eMcTK2v8tzYMVDF4r011RmVBNSdsqsYwLWH+4nbGkU4qa6bt34DdJEeHz?= =?us-ascii?q?Qksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPER?= =?us-ascii?q?vjKwV1Ov71GonPhMiryuy+4ZLebxhMiTanfL9+MRq7oQrTu8QSnIBvNrs/xh?= =?us-ascii?q?zVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNX?= =?us-ascii?q?s15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRT?= =?us-ascii?q?iv6bpgRRn1gykFKjE56nnahNFugqJVoByvpBJxzIDbb46XKPVwcbjQfc8ZSG?= =?us-ascii?q?dbQspdSyJMD4G6YoASD+QBJ+FYr4zlqlULtxu+BBKsBP/oyj9GiH/9wKo30+?= =?us-ascii?q?c7EQHHxwwgA9UOsHrarNjuL6cSUuC0zLHSzTXEdf9Zwiny5ZHOfxs8rv6CQa?= =?us-ascii?q?h+ftDNyUkzCQzFlFOQpJT4Mz6a2OkArmiW4epvWO+xlmMqqR19rzeyysoslo?= =?us-ascii?q?XFm4MYxF/K+Chl3Yo4ONy1RFBmbdOqFJZdqSGXOolrTs4gRWxjpSg0yroDuZ?= =?us-ascii?q?GhfSgKzowqxwLfa/yGdYiI7QnjVP6PLjhih3JpYq6whxG38UWm1+byVdG03U?= =?us-ascii?q?5XoiZZltTArG0B2hLd58SdVPdx4Fut1SyS2w3d6exJJ10/m7DBJJ472LEwk4?= =?us-ascii?q?IesUHEHiDrhkr7lLSWdkA4+uiw7OTnf6nmqoecN4BqjgH+NbwjlciiDek8LA?= =?us-ascii?q?QCRXWX9OW/2bH540H1WrRHguEwnaXBsZDaI9oUprKhDgNIzoou7wyzAyqo3d?= =?us-ascii?q?kWh3ULMkxJdA6dg4T0NVzDI+j0DfKljFStlDdryerGPrrkApjVLXjDirbhfa?= =?us-ascii?q?1h605bxgozw8tS54lXCrABOPLzQEjxuMbDARAnKwC02froCM1h1oMCXmKCGq?= =?us-ascii?q?iZMa3UsVCW/OIjOueMZJULtznjMPcl/OPhgWYjll8HeKmkxpUXaGqmEft4OE?= =?us-ascii?q?qZemfjjs0GEWcQsQo0VPbqh0GaUT5Pe3ayWLox5j8hCI24E4jMXZutj6GY0C?= =?us-ascii?q?ihBJ1WY3tLCl6WEXj2aYqLQOwMZz+ILs9miDwEWqCrS5U92hG2qA/6171nI/?= =?us-ascii?q?LV+i0eu5Lj08N45+rTlR4v7zN0E96S33uWT25qzSs0QGoRx6N2uwRdzVOG1b?= =?us-ascii?q?V+j7QMFNpd4NtOUgszKZea1OEsWP7oXQeUXc2IU0qhTNvuVTIrT8ktxNEAS1?= =?us-ascii?q?1+Cs24iVbJ0nz5UPcui7WXCclsoern1H/rKpMlxg=3D=3D?= X-IronPort-Anti-Spam-Filtered: true Received: from 138.220-133-109.adsl-dyn.isp.belgacom.be (HELO [192.168.2.60]) ([109.133.220.138]) by relay.proximus.be with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 22:24:04 +0100 Subject: Re: device-tree on BeagleBone Black (enabling UART) To: Oskar Holmlund Cc: freebsd-arm@freebsd.org, owner-freebsd-arm@freebsd.org References: <29ee61d3-6eb7-ccf7-3de9-2ecdccdcbb6b@skypro.be> <06f5ba53fac300855b580d127fdfc57466807a9c.camel@freebsd.org> <596e6c178a78a8c5bdb62505f593b3878aae1a1f.camel@freebsd.org> <629d6766-763b-0120-6bd8-9bcdbc280561@skypro.be> From: Kristoff Message-ID: <4f346a2e-b714-7a30-075b-8e41a62d3136@skypro.be> Date: Mon, 8 Mar 2021 22:24:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 4DvWYg5LBsz3mnB X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kristoff@skypro.be designates 195.238.20.98 as permitted sender) smtp.mailfrom=kristoff@skypro.be X-Spamd-Result: default: False [-3.40 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[195.238.20.98:from]; RCVD_IN_DNSWL_LOW(-0.10)[195.238.20.98:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.238.20.0/24]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[skypro.be]; ARC_NA(0.00)[]; SPAMHAUS_ZRD(0.00)[195.238.20.98:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:5432, ipnet:195.238.0.0/19, country:BE]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[owner-freebsd-arm,freebsd-arm]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2021 21:24:09 -0000 Hi Oskar, Just a quick reply to thank you (and everybody else) for your help. I managed to get everything working. Now running FreeBSD 13,0 Beta 3. Recompiled the kernel to include the dmtpps driver, and after adding a device-tree overlay file to map the correct pin to timer 5, PPS is now running. It took some time to be sure that the PPS module was indeed running (ntpq did note a "o" in front of the ip-address, but I wasn't sure if this was due to the configuration or if it actually detected the PPS signal), but I found the "ppsapi/ppsapitest" tool which did show that the PPS kernel-module was indeed running. Note, While testing the pps module,  I did a quick script to pump out the pps statistics to thingspeak. For who is interested, the graph is here: https://thingspeak.com/channels/1321348/ This is the time-difference between the clock of the beaglebone black and the PPS signal. It is in ns, so 500K is a time-difference of half a millisecond. Some longer term trending (not yet in the graph) seams to indicate a daily variation in the time-difference. I am not sure this is due to the beaglebone (temperature affects) or the changes in the GNSS satellites the receiver can pick up. Anycase, all thanks for the help. Learned a lot! I've also moved a pi3 from linux to freebsd and it is running very nicely. Keep up the great work! :-) Kr. On 21/02/2021 7:23 p.m., Oskar Holmlund wrote: > 2021-02-19 00:52 skrev Kristoff: >> Hi all, >> >> (inline comments) >> >> On 12/02/2021 3:15 a.m., Ian Lepore wrote: >>> >>>>> The beaglebone has a special pps driver that uses the am335x chip's >>>>> timer hardware to measure the pps pulse time with better accuracy >>>>> than >>>>> the generic gpio-pps driver.  To use it, add >>>>> >>>>>     am335x_dmtpps_load=YES >>>> At the same time I also wanted to try the pps driver you mention. >>>> (...)