From owner-freebsd-arm@FreeBSD.ORG Wed Apr 29 18:56:07 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07C72B60 for ; Wed, 29 Apr 2015 18:56:07 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD237189C for ; Wed, 29 Apr 2015 18:56:05 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 7722B1FE023; Wed, 29 Apr 2015 20:56:03 +0200 (CEST) Message-ID: <55412972.8090709@selasky.org> Date: Wed, 29 Apr 2015 20:56:50 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "O'Connor, Daniel" CC: freebsd-arm Subject: Re: pps_ioctl panic References: <6CC431C0-2E54-4B49-94D0-D6B7A5919CD3@dons.net.au> <553F3833.5050600@selasky.org> <80538BF0-EBF5-4C58-A17A-5D8122BC6399@dons.net.au> In-Reply-To: <80538BF0-EBF5-4C58-A17A-5D8122BC6399@dons.net.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 18:56:07 -0000 On 04/29/15 06:58, O'Connor, Daniel wrote: > >> On 28 Apr 2015, at 17:05, Hans Petter Selasky wrote: >> >> On 04/28/15 09:08, O'Connor, Daniel wrote: >>> Hi all, >>> I'm trying to get gpsd + PPS working on a Beaglebone Black but when I start gpsd I get the panic at the bottom of the email. >>> >>> I've run ntpd to the same device with PPS without problems. >>> >>> I haven't had a more detailed look yet though. >> >> Hi, >> >> Try to set "pps.mtx = &ttymx" before "pps_init()". > > I tried adding both.. > sc->pps.mtx = &ttymx; > and > sc->pps.mtx = &ttymtx; > > but neither mutex exist. I had a look in the TTY code (sys/kern/tty.c) and I couldn't see a likely candidate. > Hi, Have a look in "sys/dev/usb/serial/usb_serial.c" --HPS