From owner-freebsd-arm@freebsd.org Wed Nov 21 21:25:27 2018 Return-Path: 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 30A971146F0D for ; Wed, 21 Nov 2018 21:25:27 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from mail.kronometrix.org (mail.kronometrix.org [95.85.46.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.kronometrix.org", Issuer "mail.kronometrix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 59B1B77781 for ; Wed, 21 Nov 2018 21:25:26 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from [192.168.1.191] (82-203-153-182.bb.dnainternet.fi [82.203.153.182]) (authenticated bits=0) by mail.kronometrix.org (8.15.2/8.15.2) with ESMTPSA id wALLOpnS054324 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 21 Nov 2018 21:24:52 GMT (envelope-from sparvu@kronometrix.org) X-Authentication-Warning: mail.kronometrix.org: Host 82-203-153-182.bb.dnainternet.fi [82.203.153.182] claimed to be [192.168.1.191] From: Stefan Parvu Message-Id: <84BB6519-3CF7-4ACC-847C-7AB82567A9BD@kronometrix.org> Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: FreeBSD 12.0 RBPI3B+ and hardware clock support Date: Wed, 21 Nov 2018 23:24:45 +0200 In-Reply-To: <20181121210909.GA1580@bluezbox.com> Cc: freebsd-arm@freebsd.org To: Oleksandr Tymoshenko 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> <1542833504.56571.87.camel@freebsd.org> <370FE06A-C2F8-4294-8DD1-F2EF76E63B94@kronometrix.org> <20181121210909.GA1580@bluezbox.com> X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: 59B1B77781 X-Spamd-Result: default: False [3.48 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[kronometrix.org]; NEURAL_SPAM_MEDIUM(0.90)[0.898,0]; NEURAL_SPAM_SHORT(0.82)[0.824,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mail.kronometrix.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.87)[0.868,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(0.70)[asn: 14061(3.59), country: US(-0.09)]; ASN(0.00)[asn:14061, ipnet:95.85.0.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2018 21:25:27 -0000 > > - 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: 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 ; 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 ; 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 ) 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 To: Stefan Parvu 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> <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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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