Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2019 23:20:50 +0300
From:      Stefan Parvu <sparvu@kronometrix.org>
To:        freebsd-arm@freebsd.org
Subject:   Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0
Message-ID:  <A999EA40-990A-47B9-AA09-F97495F2CDCC@kronometrix.org>
In-Reply-To: <ed5b1a229e9d6bdf40694abd4668b1275c7d0242.camel@freebsd.org>
References:  <41A4CA5C-B487-490F-8A19-2D51F43E1004@kronometrix.org> <95616620-bbaf-dbc3-49eb-3e2562638d49@bunyatech.com.au> <AB510253-52D9-469C-B06E-5EC73C5F188E@kronometrix.org> <fd9991c4e6aaccb812a59ff86c9c8564ebd1d767.camel@freebsd.org> <74E3E782-8481-4B5B-A0AF-A04590C27D6D@kronometrix.org> <790afcb5f0809a89b45982958a85f1539fec05c7.camel@freebsd.org> <36088812-2135-4433-BC49-0BC433EC6767@kronometrix.org> <c52f9d9ab358ac0dc09af411bf97625945579b4e.camel@freebsd.org> <86CC4711-47AC-45C6-B6D3-71C9FFDD4A91@kronometrix.org> <BE321299-8569-4B2E-98FD-FD5210E1B6AF@kronometrix.org> <A9FD7D2B-9382-4EAE-B245-5F4DE643DBB7@gromit.dlib.vt.edu> <C93E2C64-6280-464D-AB5F-B1E968690CEF@kronometrix.org> <2ec7d7f63de31065b9cab396c662fe24f0107078.camel@freebsd.org> <BD0BE075-9E69-4CB0-826A-5DF2D160E9B1@kronometrix.org> <d71fc4e3db26242ffa817814d6cd92b8899fc2ab.camel@freebsd.org> <EF94BC84-4B8D-455C-952F-4FD1CC5557CE@kronometrix.org> <2AC05799-7D11-4200-8D16-38E3718470BB@kronometrix.org> <91E26684-07A0-4F03-92BC-8D49359B1358@kronometrix.org> <5F33E59B-7EA5-4B8B-A95A-CD1FB569ACDC@kronometrix.org> <6a39f74088d2984b5426e8585b5f7e864a6766f8.camel@freebsd.org> <571EABD9-364C-4D91-9177-CC25CB382D76@kronometrix.org> <A53C9BE4-B3A7-4F15-808F-AB9846674625@kronometrix.org> <2dd107308cb7fc21bab793218d8e37039dbc108e.camel@freebsd.org> <C32068F6-862A-4863-B055-52621209F7D9@kronometrix.org> <ed5b1a229e9d6bdf40694abd4668b1275c7d0242.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> I guess if it only works when you load the driver, that's a good sign
> it's not in the kernel.  You can also do 'kldstat' and if it's in the
> output, it was loaded and is being used.

of course the thing is loaded. I forgot to mention. The kernel module
is active and loaded even if the RTC clock failed to keep the time. Something
is odd. 

root@k1:/var/tmp # kldstat
Id Refs Address                Size Name
 1    9 0xffff000000000000  13d1480 kernel
 3    1 0xffff000001415000    40ea8 nxprtc.ko
 4    1 0xffff000053600000    41000 tmpfs.ko
 5    1 0xffff000053641000    31000 mac_ntpd.ko

And bsed on my nm function symbols I do really believe im using your latest
version. Something else is problematic here. 


Stefan
From owner-freebsd-arm@freebsd.org  Thu Jul 18 20:22:32 2019
Return-Path: <owner-freebsd-arm@freebsd.org>
Delivered-To: freebsd-arm@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id C3BE2B0A0B
 for <freebsd-arm@mailman.nyi.freebsd.org>;
 Thu, 18 Jul 2019 20:22:32 +0000 (UTC) (envelope-from ian@freebsd.org)
Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org
 [54.186.57.195])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 server-signature RSA-PSS (4096 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 3D15470785
 for <freebsd-arm@freebsd.org>; Thu, 18 Jul 2019 20:22:32 +0000 (UTC)
 (envelope-from ian@freebsd.org)
ARC-Seal: i=1; a=rsa-sha256; t=1563481344; cv=none;
 d=outbound.mailhop.org; s=arc-outbound20181012;
 b=FV0CliqD5PIA84A7+pwWF3hvN31yv8zmtIf5MeS/cKsVFqrxEU2a6J65YNa3C0P5k5ZtUOGoAVLHG
 jSRX/cinvgqee6CmGxSecG/NJkJQtQYekAOZEkfrubnW0576rpfkpL5Km6qyWsZsg0MBxF4O9yJ5vb
 etJ4VYdZLy9Hh2Y0VWJz/KLL6dhkJkCaIUsba+IurShV2yGi0ruzyavsdiC+u79/2ZTHbAZ7+zRDAT
 v7bNZNJRGOVtG1ajS84KJbxyvLbM0oZdlzu/cP9h6QrFm6OKbVy5Q21ni4GY/5RIDcnn+g9PxzXb21
 uvq0FcrVjAm3481W0FehKOPgXQUKqUQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
 d=outbound.mailhop.org; s=arc-outbound20181012;
 h=content-transfer-encoding:mime-version:content-type:references:in-reply-to:
 date:to:from:subject:message-id:dkim-signature:from;
 bh=AWUh8qt3DFMgy1Lj60KfipI9kNY8ZUxgkLXW3PPX5Qc=;
 b=GwpR+g7PownwveeKS9jXilbzBftWYk9nfsENZnYvsgm5FxvJUrTYVXdoU8E6zP5a8OKow8InbAmz1
 IEq+6geisxV+19hrCUnyOVu84PKZfw5UjaNg4whr6loRPFJeEl+X2coRTRuGcbZFEIYUY55WeeJ8QJ
 LGMxHcGZWoOQ0a0Uxmbbj4deZuWUhoch5kfIaZmJuW/ZRDVf+ikc5G3zkChsHkUzxgPEL2oK2iysnE
 OoeSroHWyfdedL46R7qQc0sHcv18h23Da9E85kCTOnNCeVMG2UNcKn3Of79GmyyhXo5hQ7zH5HZhIr
 2luligcwU4Aj2I4J/zVYuiehxYFcuYw==
ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org;
 spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60;
 dmarc=none header.from=freebsd.org;
 arc=none header.oldest-pass=0;
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=outbound.mailhop.org; s=dkim-high;
 h=content-transfer-encoding:mime-version:content-type:references:in-reply-to:
 date:to:from:subject:message-id:from;
 bh=AWUh8qt3DFMgy1Lj60KfipI9kNY8ZUxgkLXW3PPX5Qc=;
 b=DyU/0tFjHvVtkYXg7iDvoUmQR6pBFiuz83Of9J3YozO38ePc89gJKzOiKt8mk8FIl09/LpGfM3C3s
 Ox0QqK+cHfkhkHOOQy3khJ/RabYTTMxzeAKLE5WExVVWJS4wi3KmHYhtYPfg8Lzb5P8+AsYvQ18AGS
 8FVNCbMM/qk1Se9og4SbfUzJBRx6yBu89ZVGx76dgvFb8P2fptOzNG8vbIbc3+61Mo3P9qiqOb5V+v
 8VMw3b3tXEnMtbSnCgJ2drgSbQXJ/mq/006sWI05k99+li3kVhSt/FyjXN5oGQXZPKqGF57BghucER
 JqFoDl+NMpEs6lVoJchlTCPI3rk+jFA==
X-MHO-RoutePath: aGlwcGll
X-MHO-User: bf9ea3a0-a999-11e9-9d30-d9f4e14f47a7
X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information
X-Originating-IP: 67.177.211.60
X-Mail-Handler: DuoCircle Outbound SMTP
Received: from ilsoft.org (unknown [67.177.211.60])
 by outbound3.ore.mailhop.org (Halon) with ESMTPSA
 id bf9ea3a0-a999-11e9-9d30-d9f4e14f47a7;
 Thu, 18 Jul 2019 20:22:23 +0000 (UTC)
Received: from rev (rev [172.22.42.240])
 by ilsoft.org (8.15.2/8.15.2) with ESMTP id x6IKMLgA045806;
 Thu, 18 Jul 2019 14:22:21 -0600 (MDT) (envelope-from ian@freebsd.org)
Message-ID: <b4970b3cf77a854dba71a3319d0ada8619efbd7c.camel@freebsd.org>
Subject: Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0
From: Ian Lepore <ian@freebsd.org>
To: Stefan Parvu <sparvu@kronometrix.org>, freebsd-arm@freebsd.org
Date: Thu, 18 Jul 2019 14:22:21 -0600
In-Reply-To: <F4FB90D0-9777-41EE-9005-9BA441D721A6@kronometrix.org>
References: <41A4CA5C-B487-490F-8A19-2D51F43E1004@kronometrix.org>
 <95616620-bbaf-dbc3-49eb-3e2562638d49@bunyatech.com.au>
 <AB510253-52D9-469C-B06E-5EC73C5F188E@kronometrix.org>
 <fd9991c4e6aaccb812a59ff86c9c8564ebd1d767.camel@freebsd.org>
 <74E3E782-8481-4B5B-A0AF-A04590C27D6D@kronometrix.org>
 <790afcb5f0809a89b45982958a85f1539fec05c7.camel@freebsd.org>
 <36088812-2135-4433-BC49-0BC433EC6767@kronometrix.org>
 <c52f9d9ab358ac0dc09af411bf97625945579b4e.camel@freebsd.org>
 <86CC4711-47AC-45C6-B6D3-71C9FFDD4A91@kronometrix.org>
 <BE321299-8569-4B2E-98FD-FD5210E1B6AF@kronometrix.org>
 <A9FD7D2B-9382-4EAE-B245-5F4DE643DBB7@gromit.dlib.vt.edu>
 <C93E2C64-6280-464D-AB5F-B1E968690CEF@kronometrix.org>
 <2ec7d7f63de31065b9cab396c662fe24f0107078.camel@freebsd.org>
 <BD0BE075-9E69-4CB0-826A-5DF2D160E9B1@kronometrix.org>
 <d71fc4e3db26242ffa817814d6cd92b8899fc2ab.camel@freebsd.org>
 <EF94BC84-4B8D-455C-952F-4FD1CC5557CE@kronometrix.org>
 <2AC05799-7D11-4200-8D16-38E3718470BB@kronometrix.org>
 <91E26684-07A0-4F03-92BC-8D49359B1358@kronometrix.org>
 <5F33E59B-7EA5-4B8B-A95A-CD1FB569ACDC@kronometrix.org>
 <6a39f74088d2984b5426e8585b5f7e864a6766f8.camel@freebsd.org>
 <571EABD9-364C-4D91-9177-CC25CB382D76@kronometrix.org>
 <A53C9BE4-B3A7-4F15-808F-AB9846674625@kronometrix.org>
 <2dd107308cb7fc21bab793218d8e37039dbc108e.camel@freebsd.org>
 <C32068F6-862A-4863-B055-52621209F7D9@kronometrix.org>
 <F4FB90D0-9777-41EE-9005-9BA441D721A6@kronometrix.org>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: 3D15470785
X-Spamd-Bar: --
Authentication-Results: mx1.freebsd.org
X-Spamd-Result: default: False [-2.98 / 15.00];
 local_wl_from(0.00)[freebsd.org];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
 NEURAL_HAM_SHORT(-0.98)[-0.985,0];
 ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US];
 NEURAL_HAM_LONG(-1.00)[-1.000,0]
X-BeenThere: freebsd-arm@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Porting FreeBSD to ARM processors." <freebsd-arm.freebsd.org>
List-Unsubscribe: <https://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: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Jul 2019 20:22:32 -0000

On Thu, 2019-07-18 at 23:16 +0300, Stefan Parvu wrote:
> I think after your latest commit I see a function from nxprtc module
> which does not 
> exist in the original module. Take a look:
> 
> root@k1:/var/tmp # nm -A -a /boot/kernel/nxprtc.ko | grep readfrom
> /boot/kernel/nxprtc.ko:0000000000010ab8 t nxprtc_readfrom
> 
> which I do not see under original nxprtc module such thing. 
> 
> root@k1:/var/tmp # nm -A -a /var/tmp/nxprtc.original.ko | grep
> readfrom
> /var/tmp/nxprtc.original.ko:                 U iicdev_readfrom
> 
> Is this right ? Is this something you have fixed on the latest and
> the greatest
> nxprtc version ?
> 
> 

Yep, that is good confirmation that the fix is in that module.

I almost hesitate to say it, but... the symptoms you're seeing are
exactly what would happen if the battery was installed upside-down. :)

-- Ian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A999EA40-990A-47B9-AA09-F97495F2CDCC>