From owner-freebsd-arm@freebsd.org Wed Jul 17 12:13:49 2019 Return-Path: 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 65CB5AB3E0 for ; Wed, 17 Jul 2019 12:13:49 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from mail.kronometrix.org (mail.kronometrix.org [95.85.46.90]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.kronometrix.org", Issuer "mail.kronometrix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 535A776B0D for ; Wed, 17 Jul 2019 12:13:48 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from [192.168.1.164] (82-203-145-201.bb.dnainternet.fi [82.203.145.201]) (authenticated bits=0) by mail.kronometrix.org (8.15.2/8.15.2) with ESMTPSA id x6HCDjrB020865 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 17 Jul 2019 12:13:45 GMT (envelope-from sparvu@kronometrix.org) X-Authentication-Warning: mail.kronometrix.org: Host 82-203-145-201.bb.dnainternet.fi [82.203.145.201] claimed to be [192.168.1.164] From: Stefan Parvu Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0 Date: Wed, 17 Jul 2019 15:13:39 +0300 References: <41A4CA5C-B487-490F-8A19-2D51F43E1004@kronometrix.org> <95616620-bbaf-dbc3-49eb-3e2562638d49@bunyatech.com.au> <74E3E782-8481-4B5B-A0AF-A04590C27D6D@kronometrix.org> <790afcb5f0809a89b45982958a85f1539fec05c7.camel@freebsd.org> <36088812-2135-4433-BC49-0BC433EC6767@kronometrix.org> <86CC4711-47AC-45C6-B6D3-71C9FFDD4A91@kronometrix.org> To: freebsd-arm@freebsd.org In-Reply-To: <86CC4711-47AC-45C6-B6D3-71C9FFDD4A91@kronometrix.org> Message-Id: X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 535A776B0D X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of sparvu@kronometrix.org designates 95.85.46.90 as permitted sender) smtp.mailfrom=sparvu@kronometrix.org X-Spamd-Result: default: False [4.77 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; URI_COUNT_ODD(1.00)[15]; MX_GOOD(-0.01)[cached: mail.kronometrix.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:14061, ipnet:95.85.0.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.99)[0.989,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[kronometrix.org]; NEURAL_SPAM_MEDIUM(0.99)[0.986,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.61)[ip: (0.54), ipnet: 95.85.0.0/18(1.49), asn: 14061(1.07), country: US(-0.05)]; NEURAL_SPAM_LONG(0.99)[0.991,0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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, 17 Jul 2019 12:13:49 -0000 I have tried the following: * under FreeBSD 12 RELEASE (using default image) I tried to fetch from = svn.freebsd.org =20 the CURRENT source codem which should include the latest fix for nxprtc # uname -a FreeBSD k50dev 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC arm64 # svnlite checkout https://svn.freebsd.org/base/head /usr/src # cd /usr/src/sys/dev/iicbus # svnlite info nxprtc.c Path: nxprtc.c Name: nxprtc.c Working Copy Root Path: /usr/src URL: https://svn.freebsd.org/base/head/sys/dev/iicbus/nxprtc.c Relative URL: ^/head/sys/dev/iicbus/nxprtc.c Repository Root: https://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 350079 Node Kind: file Schedule: normal Last Changed Author: ian Last Changed Rev: 350016 Last Changed Date: 2019-07-15 21:47:40 +0000 (Mon, 15 Jul 2019) Text Last Updated: 2019-07-17 10:43:33 +0000 (Wed, 17 Jul 2019) Checksum: f724d6513c0ac5b29ebf8be65d717faa98aa52cb So this includes the latest and the greatest. I must rebuild the kernel = right, including all drivers and everything to get nxprtc compiled ? Is this right ? I cannot build only = a single driver or only iicbus ? Thanks, =20 Stefan Parvu sparvu@kronometrix.org > On 17 Jul 2019, at 12.27, Stefan Parvu wrote: >=20 >> The bottom line is that you need to rebuild the nxprtc driver with = this >> patch applied: >>=20 >> = https://svnweb.freebsd.org/base/head/sys/dev/iicbus/nxprtc.c?r1=3D350016&r= 2=3D348184&view=3Dpatch = >=20 >=20 > okay. Let me see if I can do this. Some questions: >=20 > * can I build only the driver without rebuilding all kernel components = ? >=20 > * most likely I need the kernel source code, apply the patch for = nxprtc driver and build the driver >=20 > * If I build the driver on a FreeBSD 12.0 development env can I take = the resulting driver and=20 > copy it over to different vanilla FreeBSD 12.0 RELEASE installations ? >=20 > Thanks, > Stefan > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"