For more information about buildroot, please consult the official buildroot documentation:
https://buildroot.org/downloads/manual/manual.html
For more information about metro project:
https://github.com/Chadys/metro_project
Below are step-by-step instructions for building an SD-card image containing metro project Raspberry Pi 3.
Download the buildroot long term support release:
wget https://buildroot.org/downloads/buildroot-2018.02.8.tar.gz tar xvf buildroot-2018.02.8.tar.gz
git clone https://github.com/Rapiiidooo/buildroot-markerless-detector.git
cp -r buildroot-markerless-detector/board/ buildroot-markerless-detector/configs/ buildroot-markerless-detector/package/ buildroot-2018.02.8/
Use the defconfig metro_defconfig as a starting point for the configuration.
cd buildroot-2018.02.8 make metro_defconfig
Once the system is configured properly it is time to build.
To build an SD-card image, just run make
:
make
or with the correct JLEVEL as your build machine:
BR2_JLEVEL=4 make
Buildroot will download and build all packages and create the SD-card image in one step.
The build will take some time (~40-60 minutes depending on the build machine).
The output will be available in output/images
Write the image to the SD-card with dd:
dd output/images/sdcard.img /dev/sdX
/dev/sdX should be replaced with the path to the SD-card device.