rootfs with Buildroot

To create your own rootfs with Buildroot, clone the Buildroot Repository from Github. Make sure to checkout a release version of buildroot and not the master branch!

Then configure buildroot according to your needs. Configuration can be done typing the following command in the root folder of buildroot:

$ make menuconfig

For the Colibri iMX6 you can find a buildroot defconfig in our NTB Buildroot-Fork: https://github.com/ntb-ch/buildroot/tree/cb20

Bildroot will build a rootfs image from your config and if you want to add some specific files and users this can be done with a rootfs overlay and a user file. The current rootfsOverlay for the iMX6 running a 3.14 Preempt RT Kernel can be found on Github. In our image these files are:

The path to the rootfs overlay has to be entered in your Buildroot config at System configuration → Root filesystem overlay.

If you want to add additional users (except root), you can add a user table file to Buildroot. The path to this file needs to be entered in your Buildroot config at System configuration → Path to the users tables. An example for this file can be found also in the CB20 repository mentioned earlier.