Date: Wed, 17 Jul 2019 09:22:18 -0400 From: Paul Mather <paul@gromit.dlib.vt.edu> To: Stefan Parvu <sparvu@kronometrix.org> Cc: freebsd-arm@freebsd.org Subject: Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0 Message-ID: <A9FD7D2B-9382-4EAE-B245-5F4DE643DBB7@gromit.dlib.vt.edu> In-Reply-To: <BE321299-8569-4B2E-98FD-FD5210E1B6AF@kronometrix.org> References: <41A4CA5C-B487-490F-8A19-2D51F43E1004@kronometrix.org> <95616620-bbaf-dbc3-49eb-3e2562638d49@bunyatech.com.au> <AB510253-52D9-469C-B06E-5EC73C5F188E@kronometrix.org> <fd9991c4e6aaccb812a59ff86c9c8564ebd1d767.camel@freebsd.org> <74E3E782-8481-4B5B-A0AF-A04590C27D6D@kronometrix.org> <790afcb5f0809a89b45982958a85f1539fec05c7.camel@freebsd.org> <36088812-2135-4433-BC49-0BC433EC6767@kronometrix.org> <c52f9d9ab358ac0dc09af411bf97625945579b4e.camel@freebsd.org> <86CC4711-47AC-45C6-B6D3-71C9FFDD4A91@kronometrix.org> <BE321299-8569-4B2E-98FD-FD5210E1B6AF@kronometrix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 17, 2019, at 8:13 AM, Stefan Parvu <sparvu@kronometrix.org> wrote: > I have tried the following: > > * under FreeBSD 12 RELEASE (using default image) I tried to fetch from > svn.freebsd.org <http://svn.freebsd.org/> > 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 ? Note that if you rebuild the above source you will get FreeBSD-CURRENT, not FreeBSD 12.x-RELEASE, which, from earlier posts, is what you want to distribute. What I believe you need to do is to make a patch against the appropriate 12-RELEASE source of the nxprtc driver changes in CURRENT and then rebuild that to get your fixed version of the 12.x-RELEASE nxprtc driver. Cheers, Paul. > > Thanks, > > Stefan Parvu > sparvu@kronometrix.org > > > >> On 17 Jul 2019, at 12.27, Stefan Parvu <sparvu@kronometrix.org> wrote: >> >>> The bottom line is that you need to rebuild the nxprtc driver with this >>> patch applied: >>> >>> https://svnweb.freebsd.org/base/head/sys/dev/iicbus/nxprtc.c?r1=350016&r2=348184&view=patch >>> <https://svnweb.freebsd.org/base/head/sys/dev/iicbus/nxprtc.c?r1=350016&r2=348184&view=patch> >> >> >> okay. Let me see if I can do this. Some questions: >> >> * can I build only the driver without rebuilding all kernel components ? >> >> * most likely I need the kernel source code, apply the patch for nxprtc >> driver and build the driver >> >> * If I build the driver on a FreeBSD 12.0 development env can I take the >> resulting driver and >> copy it over to different vanilla FreeBSD 12.0 RELEASE installations ? >> >> 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" > > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A9FD7D2B-9382-4EAE-B245-5F4DE643DBB7>