Dies ist eine alte Version des Dokuments!
Images are built using the yocto project.
The build process is based on this toradex guide .
The following was taken from the toradex guide .
First, make sure that the repo
tool is available:
mkdir ~/bin export PATH=~/bin:$PATH curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo
Next, make sure git
is installed and configured:
sudo apt install git git config --global user.name "John Doe" git config --global user.email johndoe@example.com
Now fetch the toradex layers using repo
:
mkdir ${HOME}/oe-core cd ${HOME}/oe-core repo init -u https://git.toradex.com/toradex-manifest.git -b refs/tags/5.1.0 -m tdxref/default.xml repo sync
The NTB specific recipes are maintained in the meta-ntb layer.
change into the layers
directory:
cd ../layers
clone the meta-ntb repository:
git clone https://github.com/zechenturm/meta-ntb
change back to the build
directory and add the layers to conf/bblayers.conf
:
cd ../build nano conf/bblayers.conf
BBLAYERS ?= " \ ... ${TOPDIR}/../layers/meta-ntb/meta-ntb \ ${TOPDIR}/../layers/meta-ntb/meta-ntb-toradex \ "
Add the following to conf/local.conf
MACHINE = "cb20"
Production Image:
bitbake ntb-image
Development Image:
To create a development image, add the following to local.conf
.
NTB_DEVBUILD = "1"
Then build the image:
bitbake ntb-image