From owner-freebsd-arm@freebsd.org Wed Nov 21 20:51:49 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 7AE21114627D for ; Wed, 21 Nov 2018 20:51:49 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1.eu.mailhop.org (outbound1.eu.mailhop.org [52.28.251.132]) (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 EDA6B7654B for ; Wed, 21 Nov 2018 20:51:48 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1542833507; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ejX1VQI6ZESjW/H0B5XqZUtcLwyhhFx0mt3asJmPTbJJelDSkDC+bcnIBrPumv1qNbth5OC75kWuu eW6bwxH2ZtAw/m6fe57laNjwlYIO4504SFKmr5rNEEQfR0fyXxwDtUCFNDjshinsGRwjGuQOYwyQgs sDvFo2FtXRl2SAIpygz9LX+NaOfPspbmCOyP+u9VYdJ/Z7gOa1M2haOh41mvVLyF5Mfnz0jYVwbRjs kmqtMo8yE7ijOk7zxGA6MwZ5WPDQuOMikDKNEgNKpPK9KXx63MBr/xPLMNMaFRo6gSs8KxiCMY66R0 HBgee6MDtpCOLNfluDnGuO3rn1oCLzQ== 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:cc:to:from:subject:message-id:dkim-signature:from; bh=a0Z+lsqza+VHj/98ut0J3RrE8XWu/h9Qa900KrNUv5w=; b=qWnsVgsP78ngPa2iKzQNQmeC40n2xKg94QjDlalszDYO+T73m2dMH824xJ33fQuaNbsWm/h28Pik7 vAxG9m5dq2VYAYwqeoVbb/xETX+d73t4+akxWij7q5ufyKXQverNfxR8Bp+r+O7/iUiUJM3Dc7OOk9 wyfP4xFpXevGjJyRQ/RZu/hGwLcV/g1+74Ozd9nHd7dBr7lB01b0aIbo1BLV3kS6EP0M8R8P7dtcBk IoQhuC3WvAJcAcpltCAaRk2q3hqea0YWbfYCclsRzKwar0O//k07yz+e/2ZdjFW8oANIMUdJni/btZ 2iUK2cUXpmq1OY2WJ6dhB0ZDsboHz6Q== ARC-Authentication-Results: i=1; outbound3.eu.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:cc:to:from:subject:message-id:from; bh=a0Z+lsqza+VHj/98ut0J3RrE8XWu/h9Qa900KrNUv5w=; b=IXciRbhJPZ3Vowlcgee8CPvrBbcFmZ/1nELsZYpP+KDLX6+DfwpNse6zpxMVUVffwZBxRqAxLxuLw gUIgLpoEeIdAT8i95GfEhVpLvMkUraQ6HrsBGuD4I7UXa/BxmQMFn9aiR6WKpoWc6K2Ug2KLkf7cdU 1LksNheW1woxmQRxksBtiqMdphQrc9pTFMhHXPJ/f4RSFnHGY6L1NQ7gaxGI0KT0ZtORwWcaRkOgqB Rdw8Uip+lcAIN3VsYMOCQW8hh3t5u/WvrUPb+N0ba+/LmvKyy9x9ujubmyLpzOifKfmtBTuuWoiDGM CTn8dLI4avcm/IjG703WzdRYttMIIQA== X-MHO-RoutePath: aGlwcGll X-MHO-User: 4148b40a-edcf-11e8-8a28-a1efd8da9a94 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.eu.mailhop.org (Halon) with ESMTPSA id 4148b40a-edcf-11e8-8a28-a1efd8da9a94; Wed, 21 Nov 2018 20:51:45 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id wALKpiAs017954; Wed, 21 Nov 2018 13:51:44 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1542833504.56571.87.camel@freebsd.org> Subject: Re: FreeBSD 12.0 RBPI3B+ and hardware clock support From: Ian Lepore To: Stefan Parvu Cc: freebsd-arm@freebsd.org Date: Wed, 21 Nov 2018 13:51:44 -0700 In-Reply-To: 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> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: EDA6B7654B X-Spamd-Result: default: False [-1.11 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.75)[-0.753,0]; ASN(0.00)[asn:16509, ipnet:52.28.0.0/16, country:US]; NEURAL_SPAM_SHORT(0.40)[0.396,0]; NEURAL_HAM_LONG(-0.75)[-0.754,0] 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:51:49 -0000 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. But without modified FDT data, just loading the driver won't make it attach to the hardware. And this is where I can't help much more than that. In the old days the thing to do would be to hack the standard rpi .dts file to enable the i2c bus device and add the clock slave device, then rebuild that and replace the standard .dtb file with the new one. 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. -- Ian