After running FreeBSD on Raspberry Pi we can find that there are no source codes.
/usr/src is empty.
Here is instruction how to get source code on FreeBSD on Raspberry Pi.
To get source code we need to use subversion.
We can find it in
Now we know how to port an applications.
After compiling subversion we will get an instrument to obtain a source code.
FreeBSD Handbook says that there are three official mirrors of the master FreeBSD Subversion server:
Before using one of them we can check connectivity to them.:
svn0.eu.FreeBSD.org is the nearest to me.
We want to get only kernel’s source code.
They are in repository
base, in branch
To get it in directory
/usr/src/sys we need to execute command:
svn checkout svn0.eu.FreeBSD.org/base/head/sys /usr/src/sys
It take a lot of time, but we will get complete kernel source code in directory
Time after time we can update our source tree by running command
svn update /usr/src/sys