Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| software:linux:yocto:yocto-toradex [2021-03-03 11:43] – angelegt Moritz Lammerich | software:linux:yocto:yocto-toradex [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Building a New Image ====== | ||
| - | |||
| - | 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=~/ | ||
| - | curl http:// | ||
| - | chmod a+x ~/bin/repo | ||
| - | </ | ||
| - | |||
| - | 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 layers using '' | ||
| - | |||
| - | < | ||
| - | 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 | ||
| - | </ | ||