How to get kernel source code of free-BSD release 9.1
Michael Powell
nightrecon at hotmail.com
Sun May 19 21:41:30 UTC 2013
Chou, David J wrote:
> Hi,
>
> I have created a virtual machine of PC-BSD release 9.1 64 bit in VMware
> Player Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded
> from ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and
> setup network configuration and installed Firefox 20.0 by AppCafe, and
> configured the network setting in Preference->Advanced of Firefox, and I
> could access Internet.
>
> Now I need to build my own customized kernel, but there is no src
> subdirectory in /usr, so here is my question:
>
> 1. Is there any way to install kernel source when I create the virtual
> machine from PCBSD9.1-x64-DVD.iso ?
Not sure about PCBSD as I haven't used it, but with regular FreeBSD I
believe you can by selecting the appropriate package distribution group.
Been a while since I've done an install, but even so the source will be the
static RELEASE bits and not contain any security updates.
> 2. Any BKM to get the kernel source after the Virtual Machine already
> created as my case now?
Yes - install the devel/subversion port. Go ahead and create the src
directory under /usr. Then do:
svn checkout svn://svn.freebsd.org/base/releng/9.1 /usr/src
Once having checked out you can then issue a svn update /usr/src command to
pull in security updates as they become available over time.
There are also two US mirrors available such as:
svn checkout svn://svn0.us-east.freebsd.org/base/releng/9.1 /usr/src
svn checkout svn://svn0.us-west.freebsd.org/base/releng/9.1 /usr/src
I have used the us-east one. There is also a project underway to add in to
base an 'svnup', similar in scope to how csup replaced cvsup to make it
easier in the future.
I believe freebsd-update is also a possibility but I have no experience with
it. At any rate, more details can be found in the Handbook.
-Mike
More information about the freebsd-questions
mailing list