How do I install FreeBSD kernel source code?

by Vivek Gite on June 30, 2007 · 5 comments

Q. I need to configure FreeBSD kernel but not able to find out source code in /usr/src/sys directory. How do I install FreeBSD source code?

A.Your kernel and all related source code is located at /usr/src/sys directory which is also accessible through the /sys path.

If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The easiest way to do this is by running sysinstall as root, choosing Configure, then Distributions, then src, then base and sys
# sysinstall
sysinstall-1.jpg

Select Configure
sysinstall-2.jpg
Select Distributions
sysinstall-3.jpg
Select src
sysinstall-4.jpg
Then base and sys > Select ok
sysinstall-5.jpg

Further readings

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 5 comments… read them below or add one }

1 SIFE September 17, 2009

Salamo Alikom
does any way to get it with cvs ?

Reply

2 Cristian Navalici October 6, 2009

Thanks a lot for the information!
It was helpful

Reply

3 Dask January 29, 2010

tnks man!
It really help me!

Reply

4 Ben February 11, 2010

followed these steps, but got:

Warning: Can’t find the ’8.0-RELEASE-p2′ distribution on this FTP server.

I chose many different servers. What now?

Reply

5 Ben February 11, 2010

actually, need to:

# sysinstall
configure
options

then change the release name to 8.0-RELEASE and it works fine after that.

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 2 + 6 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the simple math so we know that you are a human and not a script.




Previous post:

Next post: