Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2018 23:24:45 +0200
From:      Stefan Parvu <sparvu@kronometrix.org>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: FreeBSD 12.0 RBPI3B+ and hardware clock support
Message-ID:  <84BB6519-3CF7-4ACC-847C-7AB82567A9BD@kronometrix.org>
In-Reply-To: <20181121210909.GA1580@bluezbox.com>
References:  <70D1E906-D92A-4413-9327-DE1779E479E8@kronometrix.org> <1542825813.56571.77.camel@freebsd.org> <88AEE740-A64E-4F54-9A43-02DB605CFA2D@kronometrix.org> <1542832617.56571.81.camel@freebsd.org> <FF758714-F388-46FB-96C7-22FE58D1BE86@kronometrix.org> <1542833504.56571.87.camel@freebsd.org> <370FE06A-C2F8-4294-8DD1-F2EF76E63B94@kronometrix.org> <20181121210909.GA1580@bluezbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> - Download i2c-rtc.dtbo and copy it to "overlays/" directory on FAT
>  partition

root@k50:~ # ls -lrt /boot/msdos/overlays/
total 88
-rwxr-xr-x  1 root  wheel    946 Jun 19 11:30 pwm.dtbo
-rwxr-xr-x  1 root  wheel    818 Jun 19 11:30 pi3-disable-bt.dtbo
-rwxr-xr-x  1 root  wheel   1099 Jun 19 11:30 mmc.dtbo
-rwxr-xr-x  1 root  wheel  74175 Nov 21 19:43 i2c-rtc.dtbo


> - Edit config.txt on FAT partition and add following line:
>  dtoverlay=i2c-rtc,mcp7941x

arm_control=0x200
dtparam=audio=on,i2c_arm=on,spi=on
dtoverlay=mmc
dtoverlay=pwm
dtoverlay=i2c-rtc,mcp7941x
dtoverlay=pi3-disable-bt
device_tree_address=0x4000
kernel=u-boot.bin

> - Reboot RPi and check whether overlay is applied:
>  sysctl -b hw.fdt.dtb | dtc -I dtb -O dts | grep mcp7941x

nope.

root@k50:~ # sysctl -b hw.fdt.dtb | dtc -I dtb -O dts | grep mcp7941x
root@k50:~ # 

thanks,
Stefan
From owner-freebsd-arm@freebsd.org  Wed Nov 21 21:29:43 2018
Return-Path: <owner-freebsd-arm@freebsd.org>
Delivered-To: freebsd-arm@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9358F1146FE5
 for <freebsd-arm@mailman.ysv.freebsd.org>;
 Wed, 21 Nov 2018 21:29:43 +0000 (UTC)
 (envelope-from gonzo@bluezbox.com)
Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155])
 (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 C6CF4778B5
 for <freebsd-arm@freebsd.org>; Wed, 21 Nov 2018 21:29:42 +0000 (UTC)
 (envelope-from gonzo@bluezbox.com)
Received: from localhost ([127.0.0.1] helo=id.bluezbox.com)
 by id.bluezbox.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
 (Exim 4.90_1 (FreeBSD)) (envelope-from <gonzo@bluezbox.com>)
 id 1gPa43-0000V9-Mp; Wed, 21 Nov 2018 13:29:40 -0800
Received: (from gonzo@localhost)
 by id.bluezbox.com (8.15.2/8.15.2/Submit) id wALLTdSx001930;
 Wed, 21 Nov 2018 13:29:39 -0800 (PST)
 (envelope-from gonzo@bluezbox.com)
X-Authentication-Warning: id.bluezbox.com: gonzo set sender to
 gonzo@bluezbox.com using -f
Date: Wed, 21 Nov 2018 13:29:39 -0800
From: Oleksandr Tymoshenko <gonzo@bluezbox.com>
To: Stefan Parvu <sparvu@kronometrix.org>
Cc: freebsd-arm@freebsd.org
Subject: Re: FreeBSD 12.0 RBPI3B+ and hardware clock support
Message-ID: <20181121212939.GA1900@bluezbox.com>
References: <70D1E906-D92A-4413-9327-DE1779E479E8@kronometrix.org>
 <1542825813.56571.77.camel@freebsd.org>
 <88AEE740-A64E-4F54-9A43-02DB605CFA2D@kronometrix.org>
 <1542832617.56571.81.camel@freebsd.org>
 <FF758714-F388-46FB-96C7-22FE58D1BE86@kronometrix.org>
 <1542833504.56571.87.camel@freebsd.org>
 <370FE06A-C2F8-4294-8DD1-F2EF76E63B94@kronometrix.org>
 <20181121210909.GA1580@bluezbox.com>
 <84BB6519-3CF7-4ACC-847C-7AB82567A9BD@kronometrix.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <84BB6519-3CF7-4ACC-847C-7AB82567A9BD@kronometrix.org>
X-Operating-System: FreeBSD/11.1-RELEASE-p4 (amd64)
User-Agent: Mutt/1.10.0 (2018-05-17)
X-Spam-Level: --
X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 The administrator of that system for details.
 Content preview: Stefan Parvu (sparvu@kronometrix.org) wrote: > > > > -
 Download
 i2c-rtc.dtbo and copy it to "overlays/" directory on FAT > > partition >
 > root@k50:~ # ls -lrt /boot/msdos/overlays/ > total 88 > -rwxr [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Rspamd-Queue-Id: C6CF4778B5
X-Spamd-Result: default: False [2.49 / 15.00]; ARC_NA(0.00)[];
 FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[];
 R_SPF_ALLOW(-0.20)[+mx]; NEURAL_SPAM_SHORT(0.88)[0.881,0];
 MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[];
 DMARC_NA(0.00)[bluezbox.com];
 NEURAL_SPAM_MEDIUM(0.46)[0.462,0]; RCVD_COUNT_THREE(0.00)[3];
 TO_MATCH_ENVRCPT_SOME(0.00)[];
 MX_GOOD(-0.01)[cached: mx.bluezbox.com];
 RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.76)[0.755,0];
 IP_SCORE(0.70)[asn: 14061(3.59), country: US(-0.09)];
 FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[];
 RCVD_TLS_LAST(0.00)[];
 ASN(0.00)[asn:14061, ipnet:45.55.0.0/19, country:US];
 MID_RHS_MATCH_FROM(0.00)[]
X-Rspamd-Server: mx1.freebsd.org
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: Wed, 21 Nov 2018 21:29:43 -0000

Stefan Parvu (sparvu@kronometrix.org) wrote:
> > 
> > - Download i2c-rtc.dtbo and copy it to "overlays/" directory on FAT
> >  partition
> 
> root@k50:~ # ls -lrt /boot/msdos/overlays/
> total 88
> -rwxr-xr-x  1 root  wheel    946 Jun 19 11:30 pwm.dtbo
> -rwxr-xr-x  1 root  wheel    818 Jun 19 11:30 pi3-disable-bt.dtbo
> -rwxr-xr-x  1 root  wheel   1099 Jun 19 11:30 mmc.dtbo
> -rwxr-xr-x  1 root  wheel  74175 Nov 21 19:43 i2c-rtc.dtbo

My link was to the file's page on GitHub, not direct download and it
looks like you donwloaded HTML instead of the dtbo, the correct link is:
https://github.com/raspberrypi/firmware/raw/master/boot/overlays/i2c-rtc.dtbo
The size is 3934 and MD5 checksum is 6d8217ed669f61c0dfb7b985696a540c

-- 
gonzo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84BB6519-3CF7-4ACC-847C-7AB82567A9BD>