From owner-freebsd-current@FreeBSD.ORG Wed Apr 21 08:38:08 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D91EB1065678 for ; Wed, 21 Apr 2010 08:38:08 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from inbound01.jnb1.gp-online.net (inbound01.jnb1.gp-online.net [41.161.16.135]) by mx1.freebsd.org (Postfix) with ESMTP id 7A22A8FC1C for ; Wed, 21 Apr 2010 08:38:08 +0000 (UTC) Received: from [41.154.88.19] (helo=clue.co.za) by inbound01.jnb1.gp-online.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1O4VRd-0005Do-9V for current@freebsd.org; Wed, 21 Apr 2010 10:38:05 +0200 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O4VRb-000128-Re for current@freebsd.org; Wed, 21 Apr 2010 10:38:03 +0200 To: current@freebsd.org From: "Ian FREISLICH" X-Attribution: BOFH Date: Wed, 21 Apr 2010 10:38:03 +0200 Message-Id: Cc: Subject: ANY-ONE-ELSE? ntpd+oncore+i386 doesn't work X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2010 08:38:08 -0000 Hi The oncore ntp driver worked fine in my Athlon64 machine running FreeBSD-amd64. I've tried it on a VIA-C7 and a Pentium-M based board with an onboard serial port. The following patch from Russell J. Yount fixes (bandaids) the issue: Index: /usr/src/contrib/ntp/ntpd/refclock_oncore.c =================================================================== RCS file: /home/ncvs/src/contrib/ntp/ntpd/refclock_oncore.c,v retrieving revision 1.2 diff -u -d -r1.2 refclock_oncore.c --- /usr/src/contrib/ntp/ntpd/refclock_oncore.c 22 Aug 2008 15:58:00 -0000 1.2 +++ /usr/src/contrib/ntp/ntpd/refclock_oncore.c 21 Apr 2010 08:33:55 -0000 @@ -1127,7 +1127,7 @@ */ FILE *fd; - char *cp, *cc, *ca, line[100], units[2], device[20], Msg[160], **cpp; + char *cp, *cc, *ca, line[100], units[2], device[32], Msg[160], **cpp; char *dirs[] = { "/etc/ntp", "/etc", 0 }; int i, sign, lat_flg, long_flg, ht_flg, mode, mask; double f1, f2, f3; Ian -- Ian Freislich