Date: 6 Feb 2013 13:01:06 +0200 From: "Car-Home-Cover.co.za" <Applications@car-home-cover.co.za> To: freebsd-arm@freebsd.org Subject: FREEBSD ARM, You Could Save R238pm on Insurance Premiums - Car-Home-Cover.co.za Message-ID: <1360150038-1531894.2545269.fr16B8bmH027809@rs528.luxhv.com>
next in thread | raw e-mail | index | archive | help
SGkgRlJFRUJTRCBBUk0sDQoNCkFyZSB5b3UgdG9vIGJ1c3kgdG8gc2F2ZSBvdmVy IFIyMzggcGVyIG1vbnRoPw0KDQpJZiB5b3UgYXJlIGFueXRoaW5nIGxpa2UgbWUs IHRoZW4geW91IGFyZSB1c3VhbGx5IHRvbyBidXN5IHRvIGtlZXAgeW91ciBpbnN1 cmFuY2UgcG9saWNpZXMgdXAtdG8tZGF0ZS4gIEJ1dCBkaWQgeW91IGtub3cgdGhh dCB0aGUgaW5zdXJhbmNlIGluZHVzdHJ5IHJlY29tbWVuZHMgdGhhdCB5b3Ugc2hv dWxkIHVwZGF0ZSB5b3VyIENhciAmIEhvbWUgSW5zdXJhbmNlIHBvbGljaWVzIGF0 IGxlYXN0IG9uY2UgcGVyIHllYXIgdG8ga2VlcCB5b3VyIGNvc3RzIGRvd24/DQoN ClRoZSByZWFzb24gZm9yIHRoaXMgaXMgdGhhdCB5b3VyIGNhciAmIGhvbWUgY29u dGVudHMgbWFya2V0IHZhbHVlIHdpbGwgZGVjcmVhc2UgeWVhciBvbiB5ZWFyIC0g dXN1YWxseSBpdCBkcm9wcyBhcyB5b3UgY2FyICYgaG9tZSBjb250ZW50cyBnZXRz IG9sZGVyLiAgWW91ciBpbnN1cmFuY2UgY29tcGFueSB3aWxsIGJlIGhhcHB5IGZv ciB5b3UgdG8gY29udGludWUgcGF5aW5nIHlvdXIgcHJlbWl1bXMgYXQgeW91ciBw cm9wZXJ0eSdzIG9yaWdpbmFsIHZhbHVlICh3aGF0IHRoZXkgY2FsbCB0aGUgJ2lu c3VyZWQgdmFsdWUnKS4gIEJ1dCB3aGVuIGl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bCBzZW50IGJ5IFNBIENvbnN1bWVyIEZvdW5kYXRpb24N ClNBIENvbnN1bWVyIEZvdW5kYXRpb24gfCAxMjAgMXN0IEF2ZW51ZSB8IEh5ZGUg UGFyaywgSkhCLCBHYXV0ZW5nIDIxOTYNCjIwMTIgU0EgQ29uc3VtZXIgRm91bmRh dGlvbiBBbGwgUmlnaHRzIFJlc2VydmVkLg0KDQoNCklmIHlvdSBkaWQgbm90IHdp c2ggdG8gcmVjZWl2ZSB0aGlzLCBwbGVhc2UgdW5zdWJzY3JpYmUgZnJvbSBmdXJ0 aGVyIGVtYWlscyAgYXQgaHR0cDovL3d3dy5jYXItaG9tZS1jb3Zlci5jby56YS91 bnN1YnNjcmliZS5odG1sDQoNCklmIHlvdSBjb25zaWRlciB0aGlzIGVtYWlsIHVu c29saWNpdGVkIGJ1bGsgbWFpbCwgcGxlYXNlIHJlcG9ydCBTUEFNIGF0IGh0dHA6 Ly93d3cuY2FyLWhvbWUtY292ZXIuY28uemEvcmVwb3J0c3BhbS5odG1sDQoNCg0K From owner-freebsd-arm@FreeBSD.ORG Wed Feb 6 13:46:53 2013 Return-Path: <owner-freebsd-arm@FreeBSD.ORG> Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3FE41AC7 for <freebsd-arm@FreeBSD.org>; Wed, 6 Feb 2013 13:46:53 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id D251FAB0 for <freebsd-arm@FreeBSD.org>; Wed, 6 Feb 2013 13:46:52 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.6/8.14.6) with ESMTP id r16DkqrL010430 for <freebsd-arm@FreeBSD.org>; Wed, 6 Feb 2013 06:46:52 -0700 (MST) (envelope-from ian@FreeBSD.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r16Dko0Y033216; Wed, 6 Feb 2013 06:46:50 -0700 (MST) (envelope-from ian@FreeBSD.org) Subject: Re: SD card -image- for the beaglebone From: Ian Lepore <ian@FreeBSD.org> To: Iain Young <iain@g7iii.net> In-Reply-To: <5112115D.5040709@g7iii.net> References: <510A4F5B.7000407@g7iii.net> <1359646574.93359.327.camel@revolution.hippie.lan> <510AE1D6.8010203@g7iii.net> <1360124308.93359.557.camel@revolution.hippie.lan> <5112115D.5040709@g7iii.net> Content-Type: text/plain; charset="us-ascii" Date: Wed, 06 Feb 2013 06:46:49 -0700 Message-ID: <1360158409.93359.590.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor <freebsd-arm.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-arm>, <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm> List-Post: <mailto:freebsd-arm@freebsd.org> List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-arm>, <mailto:freebsd-arm-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 06 Feb 2013 13:46:53 -0000 On Wed, 2013-02-06 at 08:16 +0000, Iain Young wrote: > On 06/02/13 04:18, Ian Lepore wrote: > > > Check out what I taught my beaglebone to do today... > > > > root@bb:/ # ntpq -p > > remote refid st t when poll reach delay offset jitter > > ========================================================================== > > oPPS(0) .PPS. 0 l 4 16 377 0.000 0.399 0.008 > > +dvb.hippie.lan .GPS. 1 u 55 64 377 1.411 0.666 0.126 > > +tflex.hippie.la .GPS. 1 u 15 64 377 0.901 1.867 0.904 > > +paranoia.hippie .PPS. 1 u 61 64 377 0.396 0.426 0.025 > > xutcnist2.colora .ACTS. 1 u 71 64 376 34.136 -11.277 4.656 > > xnist1.symmetric .ACTS. 1 u 63 64 377 59.880 12.327 2.113 > > -ntp.your.org .CDMA. 1 u 4 64 377 51.185 -4.212 4.215 > > xntp1.conectiv.c .IRIG. 1 u 51 64 377 99.067 17.784 3.445 > > > > It turns out the chip has nice timer hardware that can latch the > > freeruning timercounter in response to the PPS signal. That allows for > > a PPS driver that doesn't use interrupts at all. The timecounter code > > has a specific interface for such hardware, but there isn't much example > > code in the base for how to use it. Soon there'll be more. :) > > > > I'll attach a patch in case anyone else wants to play with this. To use > > it, apply the patch, add "options PPS_SYNC" to the kernel config, and > > choose which timer pin you want to put the pps on. The attached patch > > uses the timer4 pin, which is exposed on the P8 connector as pin #7. > > You can use any of the timer4-timer7 pins, just set the one you want to > > use to "input" in the dts and the driver will use it. > > Thanks for that, looks great, and very interesting. I'll do more than > play with it (well when the 8 Gig card arrives anyway!) > > First thought, extending for multiple PPS :) [Because I can :P] > This kind of no-interrupt PPS driver that's tied closely to the system timecounter can only handle a single PPS signal. (There's only one system timer, and it has just one trigger pin.) Connecting more than one PPS is still going to require an interrupt-driven gpio solution. Even though there are four timers on the chip that have an external trigger input wired to a pin, it's basically impossible with the current freebsd timing code to combine triggered-capture of the pps pulse time with traditional interrupt handling to harvest the captured counter. When you try to do this, you occasionally end up with a sequence where the hardware latches the counter, then the timekeeping code switches to a new set of timehands before the interrupt handler is invoked, then you end up grabbing a latched counter value that matches up with the wrong set of timehands, and you get a measurement jump equal to the timer tick period. (I know most people don't care about these details, but it's actually nice to get them in writing somewhere searchable for future reference.) I've never configured a system for multiple PPS inputs, that'll be an interesting thing to play with. I need to learn more about our gpio framework (such as it is) and see if it's possible to put in a nice generic PPS driver that uses it. -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1360150038-1531894.2545269.fr16B8bmH027809>