Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | Letzte ÜberarbeitungBeide Seiten der Revision | ||
software:linux:toradex:toradex-build [2021-03-01 09:43] – Moritz Lammerich | software:linux:toradex:toradex-build [2021-03-03 11:46] – Moritz Lammerich | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Building a New Image ====== | + | This page has been moved to [[ ..:yocto:yocto-toradex | here ]] |
- | + | ||
- | Images are built using [[ : | + | |
- | + | ||
- | The build process is based on [[ https:// | + | |
- | + | ||
- | ===== Setting up the build environment ===== | + | |
- | + | ||
- | The following was taken from [[ https:// | + | |
- | + | ||
- | First, make sure that the '' | + | |
- | + | ||
- | < | + | |
- | mkdir ~/bin | + | |
- | export PATH=~/bin:$PATH | + | |
- | curl http:// | + | |
- | chmod a+x ~/ | + | |
- | </ | + | |
- | + | ||
- | Next, make sure '' | + | |
- | + | ||
- | < | + | |
- | sudo apt install git | + | |
- | git config --global user.name "John Doe" | + | |
- | git config --global user.email johndoe@example.com | + | |
- | </ | + | |
- | + | ||
- | Now fetch the toradex | + | |
- | + | ||
- | < | + | |
- | mkdir ${HOME}/ | + | |
- | cd ${HOME}/ | + | |
- | repo init -u https:// | + | |
- | repo sync | + | |
- | </ | + | |
- | + | ||
- | Finally, source the setup script: | + | |
- | + | ||
- | < | + | |
- | . export | + | |
- | </ | + | |
- | + | ||
- | ==== Adding the NTB layers ==== | + | |
- | + | ||
- | The NTB specific recipes are maintained in the [[ software: | + | |
- | + | ||
- | change into the '' | + | |
- | + | ||
- | < | + | |
- | cd ../layers | + | |
- | </ | + | |
- | + | ||
- | clone the [[ https:// | + | |
- | + | ||
- | < | + | |
- | git clone https:// | + | |
- | </ | + | |
- | + | ||
- | change back to the '' | + | |
- | + | ||
- | < | + | |
- | cd ../build | + | |
- | nano conf/ | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | BBLAYERS ?= " \ | + | |
- | ... | + | |
- | ${TOPDIR}/ | + | |
- | ${TOPDIR}/ | + | |
- | " | + | |
- | </ | + | |
- | + | ||
- | ==== local.conf ===== | + | |
- | + | ||
- | Add the following to '' | + | |
- | + | ||
- | < | + | |
- | MACHINE = " | + | |
- | </ | + | |
- | + | ||
- | ==== build ==== | + | |
- | + | ||
- | Production Image: | + | |
- | + | ||
- | < | + | |
- | bitbake ntb-image | + | |
- | </ | + | |
- | + | ||
- | Development Image: | + | |
- | + | ||
- | To create a development image, add the following to '' | + | |
- | + | ||
- | < | + | |
- | NTB_DEVBUILD = " | + | |
- | </ | + | |
- | + | ||
- | Then build the image: | + | |
- | + | ||
- | < | + | |
- | bitbake ntb-image | + | |
- | </ | + |