Getting source code on FreeBSD on Raspberry Pi

After running FreeBSD on Raspberry Pi we can find that there are no source codes.
Directory /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 /usr/ports/devel/subversion directory.
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:

    svn0.us-west.FreeBSD.org
    svn0.us-east.FreeBSD.org
    svn0.eu.FreeBSD.org

Before using one of them we can check connectivity to them.:

44

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 head/sys
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

45

It take a lot of time, but we will get complete kernel source code in directory /usr/src.

Time after time we can update our source tree by running command svn update /usr/src/sys

46

47

Advertisements

3 thoughts on “Getting source code on FreeBSD on Raspberry Pi

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s