From owner-freebsd-arm@freebsd.org Wed Nov 21 20:54:29 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 534B11146337 for ; Wed, 21 Nov 2018 20:54:29 +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 A666B76781; Wed, 21 Nov 2018 20:54:28 +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 wALKsQcv054062 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 21 Nov 2018 20:54:27 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] Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: FreeBSD 12.0 RBPI3B+ and hardware clock support From: Stefan Parvu In-Reply-To: <1542833504.56571.87.camel@freebsd.org> Date: Wed, 21 Nov 2018 22:54:20 +0200 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <370FE06A-C2F8-4294-8DD1-F2EF76E63B94@kronometrix.org> 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> To: Ian Lepore X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: A666B76781 X-Spamd-Result: default: False [3.55 / 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)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[kronometrix.org]; NEURAL_SPAM_MEDIUM(0.95)[0.952,0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.78)[0.779,0]; MX_GOOD(-0.01)[cached: mail.kronometrix.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.93)[0.927,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 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 20:54:29 -0000 > On 21 Nov 2018, at 22.51, Ian Lepore wrote: > > On Wed, 2018-11-21 at 22:42 +0200, Stefan Parvu wrote: >>> >>> Oddly enough, the ds1307 driver supports that chip. I think it's >>> because the register set on the two chips is identical (or close >>> enough >>> to work right). >> uauu. nice one. >> >> how on earth i can enable ds1307 - no need to rebuild anything >> right ? Can I load the driver , if yes how ? >> >> >> Stefan > > You can load it interactively with "kldload ds1307". Add > ds1307_load=YES to /boot/loader.conf to load it every time you boot. done. cheers. root@k50:~ # kldstat Id Refs Address Size Name 1 17 0xffff000000000000 13ca6f0 kernel 2 1 0xffff0000013cb000 41730 mac_portacl.ko 3 1 0xffff000053600000 41000 tmpfs.ko 4 1 0xffff000053641000 41000 uftdi.ko 5 1 0xffff000053682000 41000 ucom.ko 6 1 0xffff0000536c3000 31000 mac_ntpd.ko 7 1 0xffff0000536f4000 41000 ds1307.ko > But without modified FDT data, just loading the driver won't make it > attach to the hardware. > The new way to do all that is to code an overlay that enables the bus > and adds the device, then set a loader.conf variable to make that > overlay get loaded. But I don't know the details of how to do that, > hopefully one of the folks who does know more about overlays can reply > with that info. okay, I see. Lets hope somebody which can help on this might answer. Thanks a lot anyway, Stefan