SVN
FreeBSD project use SVN as default SCM. Source could be download with svnlite software.
Get Current
cd /usr/src
svnlite checkout https://svn.freebsd.org/base/head .
Get Releases
cd /usr/src
svnlite checkout https://web.freebsd.org/base/release/11.0.0 .
Tarball (http & ftp)
You c...
Go to the directory with the source code:
cd freebsdsrc
Go to the directory with the kernel's configuration code:
# If your system is 32-bit.
cd sys/i386/conf/
# If your system is 64-bit.
cd sys/amd64/conf/
Get a copy of the GENERIC kernel (let's call it MODEDKERNEL). It will ...
Build the world
Go to the freebsdsrc/ (the root directory of the FreeBSD source tree you've already downloaded) and build the world:
sudo make -j${NUMBER_OF_PROCESSORS} buildworld KERNCONF=MODEDKERNEL -DNO_CLEAN
Estimated time
Estimated time on Hasee Q540S running on a one processor: 8 hours...
Let's configure the destination directory for the root filesystem of
your new FreeBSD (for example /usr/home/beastie/MODEDKERNEL).
Add the following lines to /etc/src.conf to set it up:
.if ${KERNCONF} == "MODEDKERNEL"
DESTDIR?=/usr/home/beastie/MODEDKERNEL
MODULES_OVERRID...
Install the world
sudo make installworld KERNCONF=MODEDKERNEL
Estimated time on Hasee Q540S: 5 minutes.
Install the kernel
sudo make installkernel KERNCONF=MODEDKERNEL
Estimated time on Hasee Q540S: a few seconds.