Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2019 08:16:35 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Stefan Parvu <sparvu@kronometrix.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0
Message-ID:  <2ec7d7f63de31065b9cab396c662fe24f0107078.camel@freebsd.org>
In-Reply-To: <C93E2C64-6280-464D-AB5F-B1E968690CEF@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> <A9FD7D2B-9382-4EAE-B245-5F4DE643DBB7@gromit.dlib.vt.edu> <C93E2C64-6280-464D-AB5F-B1E968690CEF@kronometrix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2019-07-17 at 16:58 +0300, Stefan Parvu wrote:
> > 
> > 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.
> 
> Right. How on earth I would do that ? Any tips, advices very
> appreciated.
> 
> 

You were close with your original steps.  Wipe out that /usr/src you
originally checked out, and instead do:

  svnlite checkout https://svnweb.freebsd.org/base/release/12.0.0/ /usr/src

That will give you the same source code in /usr/src as the system
itself was built from.  Next, fetch that patch I mentioned:

https://svnweb.freebsd.org/base/head/sys/dev/iicbus/nxprtc.c?r1=350016&r2=348184&view=patch

and get it onto that system as a plain text file, then do:

  cd /usr/src
  patch </path/to/patchfile

Now the part I'm not so sure about...  In an ideal world, you'd be able
to "cd /usr/src/sys/modules/i2c/nxprtc; make install", and the updated
nxprtc.ko would get installed.  You could then grab that module from
/boot/kernel/ add it to the set of extra stuff you install after
installing the 12.0 image.

People in the amd64 world claim that they build and install single
modules like that, so it may work.  I've never done it.  If it doesn't,
what will work for sure is "cd /usr/src; make -j4 buildkernel && make
installkernel".

-- Ian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2ec7d7f63de31065b9cab396c662fe24f0107078.camel>