From owner-freebsd-arm@FreeBSD.ORG Sat Apr 18 03:52:08 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 939FDDF8 for ; Sat, 18 Apr 2015 03:52:08 +0000 (UTC) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D596D75 for ; Sat, 18 Apr 2015 03:52:08 +0000 (UTC) Received: by wgso17 with SMTP id o17so130621197wgs.1 for ; Fri, 17 Apr 2015 20:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=c9oE27con78FKVjB+WF50UnjcBXSkBzidB8ePOyvN44=; b=CHCQlblPstKjSNL9q+lm/1YhkzaRGXvlga8cFN3jZLTnbEYYHdimJ2SRae/BoE/0aI XnP81eP23QdMr8Oyz5Bqm774/fKzSAd3wbgNOobX9g7S/O+Oa0CLGyXPHsAZqHR1iq7s /JOW9IoGU0LpWmrIeBWFf2RuujnLBowkMRJJFObTPhcWmlTDc711W7uClol5eLUQ4fes c9MzvKWm1dgFAvKbLftQZZ+rePi3dECiIgpEhLAzyt+3vgnN7zk9Kr9/Gukm/MquI2Lz 6oo3Vs0+8xBEX1dVHVwp+Fkhdf0Qdy5s0ICbh6kpquqVYoJ/vKz3EzFLVevCPo+1bpec 8jlg== MIME-Version: 1.0 X-Received: by 10.180.208.42 with SMTP id mb10mr6266575wic.80.1429329126650; Fri, 17 Apr 2015 20:52:06 -0700 (PDT) Received: by 10.180.195.106 with HTTP; Fri, 17 Apr 2015 20:52:06 -0700 (PDT) In-Reply-To: <20150417092023.39cb8829@zeta.dino.sk> References: <20150417092023.39cb8829@zeta.dino.sk> Date: Sat, 18 Apr 2015 00:52:06 -0300 Message-ID: Subject: Re: Chronodot on RPI From: Luiz Otavio O Souza To: Milan Obuch Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Sat, 18 Apr 2015 03:52:08 -0000 On 17 April 2015 at 04:20, Milan Obuch wrote: > Hello, > > I just received my DS3231 test board, rebuild kernel and activated > appropriate DTB in boot. After first restart I've got > > # dmesg | grep ds3 > ds32310: at addr 0xd0 on iicbus1 > ds32310: oscillator has stopped, check the battery. > ds32310: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) > > Next restart, just > > # dmesg | grep ds3 > ds32310: at addr 0xd0 on iicbus1 > ds32310: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) > > and > > sysctl dev.ds3231 > dev.ds3231.0.32khz_enable: 1 > dev.ds3231.0.sqw_mode: interrupt > dev.ds3231.0.sqw_freq: 8192 > dev.ds3231.0.bbsqw: 0 > dev.ds3231.0.temp_conv: 0 > dev.ds3231.0.temperature: 30.7C > dev.ds3231.0.%parent: iicbus1 > dev.ds3231.0.%pnpinfo: name=rtc compat=maxim,ds3231 > dev.ds3231.0.%location: addr=0xd0 > dev.ds3231.0.%driver: ds3231 > dev.ds3231.0.%desc: Maxim DS3231 RTC > dev.ds3231.%parent: > > Basically, it seems just working. What else could I do to confirm that? > Why the 'oscillator has stopped, check the battery' on first boot after > installing? I think I swa it somewhere it's normal and will not occur > anymore (maybe unless battery is fully discharged) but I am asking > anyway... > > Regards, > Milan Yes, that's okay, the battery warning can happen because of (from DS3231 datasheet): 1) The first time power is applied. 2) The voltages present on both VCC and VBAT are insufficient to support oscillation. 3) The EOSC bit is turned off in battery-backed mode. 4) External influences on the crystal (i.e., noise, leakage, etc.). To confirm it is working, set the system date, shutdown the RPi and let it off for some period. Turn it on again (without ntpd) and check the system date. If you enable the ntpd together with RTC your system will crash, it is a known issue (now...), the workaround is: sysctl machdep.rtc_save_period=0 Luiz