This is an example based project template for buildroot. It uses an br2-external configuration file storage and the official buildroot repository as a git submodule. Scripts are provided to make it easy to perform a build, save configuration, or start the image using qemu.
Run ./install_ubuntu.sh
to install any dependencies. This should work on Ubuntu or on the
vagrant container referenced on the Buildroot Manual startup
page.
Run ./build.sh
to build the image. This script is currently hard-coded to use an x86_64 default
build target config. The config will only be updated when the .config file does not exist. When pulling
in configuration changes, delete the buildroot/.config file before running the build script.
Typically you will want to open a new screen. session using screen -S qemu
or similar before starting
QEMU. Then from this screen session, run ./start_qemu.sh
.
To detach, use Ctrl-a d.
You can reconnect to this screen later using screen -r qemu
.
When you want to stop the qemu target, use pkill qemu
When you make changes to buildroot configuration files, run ./save_configs.sh
to export these configurations to
the br2-external tree for commit.