OpTiMSoC Buildroot-Based Linux Image Creator
How to use this repository
To build a Linux image invoke
make from the buildroot source tree, and pass the
BR2_EXTERNAL variable to it with a path to this directory.
You can then use buildroot as usual, e.g.
make BR2_EXTERNAL=path/to/this/dir menuconfig.
See the buildroot documentation for details how to use buildroot.
Example: to build the
optimsoc_computetile_singlecore Linux image run the following commands.
OPTIMSOC_BUILDROOT_DIR=path/to/this/directory # get buildroot (if you don't have it yet) OPTIMSOC_BUILDROOT_VERSION=$(cat $OPTIMSOC_BUILDROOT_DIR/buildroot_version) git clone --depth=1 --branch $OPTIMSOC_BUILDROOT_VERSION git://git.busybox.net/buildroot cd buildroot # select the default configuration for this board make BR2_EXTERNAL=$OPTIMSOC_BUILDROOT_DIR optimsoc_computetile_singlecore_defconfig # optional: configure the image further (i.e. add additional software) make menuconfig # finally, build the image make
You can then find the resulting Linux boot image at
It's a regular ELF file which contains both the Linux kernel and an "initial ramdisk," i.e. a full filesystem image with all userspace code.
For some of our OpTiMSoC example designs this repository contains a full set of configuration files which enable you to only execute a couple commands to get a Linux image from scratch. Use these files
optimsoc_computetile_singlecore: An image for the
compute_tileexample designs of OpTiMSoC configured with
NUM_CORES=1. Linux is configured without SMP support, and no NoC driver is present.