Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0
Paul Mather
paul at gromit.dlib.vt.edu
Wed Jul 17 13:22:26 UTC 2019
On Jul 17, 2019, at 8:13 AM, Stefan Parvu <sparvu at 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 at kronometrix.org
>
>
>
>> On 17 Jul 2019, at 12.27, Stefan Parvu <sparvu at 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 at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
More information about the freebsd-arm
mailing list