From owner-freebsd-arm@freebsd.org Thu Jan 26 08:30:40 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38DCDCC2DD3 for ; Thu, 26 Jan 2017 08:30:40 +0000 (UTC) (envelope-from tony@tndh.net) Received: from express.tndh.net (express.tndh.net [IPv6:2001:470:e930:1240:20d:56ff:fe04:4c0a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0C8DA64F; Thu, 26 Jan 2017 08:30:39 +0000 (UTC) (envelope-from tony@tndh.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tndh.net; s=dkim; h=Subject:Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:In-Reply-To:References:To:From; bh=dQ3F+9H/5lcNqWVt+B0oMS5i/WQs625Pxqnl7sTXP3I=; b=AjLtwjpBYp3ZBpTzlOgRQidNfF3xZIz3bww9MdTZI0jVbYPDwOReg0cPp6KaOHTuf7j7WRVKqgoU4sCTX2F/37yNbFpGWIr9ClEk1q457bllviFlc8pVuD4kc9GwUe2P0SPs+CrN9drC7/FAooRNPscH3kRSObJGnXiyQE6QI/Azq5/S; Received: from express.tndh.net ([2001:470:e930:1240:20d:56ff:fe04:4c0a] helo=eaglet) by express.tndh.net with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1cWfRm-000N4i-1I; Thu, 26 Jan 2017 00:30:38 -0800 From: "Tony Hain" To: "'Ian Lepore'" , References: <03a801d2776e$cae997e0$60bcc7a0$@tndh.net> <1485400906.30533.54.camel@freebsd.org> <03bb01d2779d$45d6edd0$d184c970$@tndh.net> In-Reply-To: <03bb01d2779d$45d6edd0$d184c970$@tndh.net> Date: Thu, 26 Jan 2017 00:30:08 -0800 Message-ID: <03c101d277ae$70f142c0$52d3c840$@tndh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQEImxvIZ6VEPYS1CTeMHuF4SjTdHgFGeuiPAfagOS+ixDy7QA== Content-Language: en-us X-SA-Exim-Connect-IP: 2001:470:e930:1240:20d:56ff:fe04:4c0a X-SA-Exim-Mail-From: tony@tndh.net X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on express.tndh.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=4.5 tests=ALL_TRUSTED,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Subject: RE: BBB uarts & pps dts definitions X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on express.tndh.net) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2017 08:30:40 -0000 > -----Original Message----- > From: owner-freebsd-arm@freebsd.org [mailto:owner-freebsd- > arm@freebsd.org] On Behalf Of Tony Hain > Sent: Wednesday, January 25, 2017 10:28 PM > To: 'Ian Lepore'; freebsd-arm@freebsd.org > Subject: RE: BBB uarts & pps dts definitions >=20 FOLLOWUP ........... > > If you have full source code on the BB, do: >=20 > Didn't really want to put full source on the BBB. >=20 > > > > =A0=A0cd /usr/src/tools/test/ppsapi > > =A0 make ppsapitest >=20 > I had full source on a 10.1 system, so I copied the files in that directory and > tried to make, but it is complaining about the last line needing an operator. >=20 > make: "src/ppsapitest/Makefile" line 13: Need an operator > make: Fatal errors encountered -- cannot continue > make: stopped in src/ppsapitest >=20 >=20 > # $FreeBSD: releng/10.1/tools/test/ppsapi/Makefile 264485 2014-04-15 > 02:17:46Z gnn $ >=20 > PROG=3D ppsapitest > MK_MAN=3Dno >=20 > WARNS?=3D 5 >=20 > .include >=20 > CFLAGS+=3D-Wno-format-security >=20 > test: ${PROG} > ./${PROG} /dev/cuau0 >=20 Removed the Makefile and it built fine. As I suspected it didn't show anything due to the pulse being squashed when connected to that pin. # ./ppsapitest -v /dev/dmtpps Supported modebits: CAPTUREASSERT OFFSETASSERT CANWAIT TSPEC ^C >=20 >=20 > Even when it gets built though, the scope shows that the signal is = being > pulled to ground as soon as the wire is connected to P8-7, so I don't expect it > to work. Is there a way to check the state of the gpio? I would expect > something like # gpioctl -N gpio_66 Can't find pin named "gpio_66" >=20 > # gpioctl -l > pin 00: 0 gpio_0<> > pin 01: 0 gpio_1<> > ... > pin 30: 1 gpio_30 > pin 31: 1 gpio_31 > # >=20 > How do the 3 additional pinmux controllers get enabled? >=20 >=20 > > =A0 ./ppsapitest /dev/dmtpps > > > > You should get something like: > > > > =A0 1485400775 .009578536 204 0 .000000000 0 > > =A0 1485400776 .009621995 205 0 .000000000 0 > > =A0 1485400777 .009665453 206 0 .000000000 0 > > =A0 1485400778 .009708869 207 0 .000000000 0 > > > > -- Ian >=20 >=20 >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"