Prerequisites

At the current time, build scripts require you to have root privileges in order to properly build the tree. The version obtained from SVN or the tarballs requires the availability of 'sudo', but user derobert has a patch that enables building with 'fakeroot', for additional security.

Configuring sudo

In order for the sudo command to work correctly, you must have an entry for your user ID in /etc/sudoers. It is proper to use the visudo utility to edit /etc/sudoers, but you can use any editor in a pinch. For a quick, dirty, and potentially unsafe example, simply tag this on to the end of the file:

<USERNAME> ALL=(ALL) ALL

As elsewhere, code in angle brackets must be replaced by what it represents.

For more information, see man 5 sudoers.

ALTERNATIVE: Using fakeroot

In short: apply the attached patch to the Makefile in "neuros-bsp", then run the command fakeroot -s <SAVE-FILE> before beginning the build process. After the build process completes, cd into "neuros-bsp/rootfs/fs" and run:

tar cf /tmp/rootfs.tar .

Then, as actual root, extract rootfs.tar into the NFS share you're exporting. This way, you only need trust tar.

TFTP Server and NFS Server

You will need both a TFTP and NFS server on your network for this process to work. It is recommended that you have them on the same computer that you build from for simplicity. We'll configure them later.

AttachmentSize
use-fakeroot.25.47 KB