- Embedded Linux Projects Using Yocto Project Cookbook
- Alex González
- 306字
- 2021-07-23 19:33:34
Building Wandboard images
Building images for one of the supported boards (for example, Wandboard Quad
) follows the same process we described earlier for the QEMU machines, with the exception of using the setup-environment
script, which is a wrapper around oe-init-build-env
.
How to do it...
To build an image for the wandboard-quad
machine, use the following commands:
$ cd /opt/yocto/fsl-community-bsp $ mkdir -p wandboard-quad $ MACHINE=wandboard-quad source setup-environment wandboard-quad $ bitbake core-image-minimal
How it works...
The setup-environment
script will create a build
directory, set up the MACHINE
variable, and prompt you to accept the Freescale EULA as described earlier. Your conf/local.conf
configuration file will be updated both with the specified machine and the EULA acceptance variable.
Note
Remember that if you close your terminal session, you will need to set up the environment again before being able to use BitBake. You can safely rerun the setup-environment
script as seen previously, as it will not touch an existing conf/local.conf
file. Run the following:
$ cd /opt/yocto/fsl-community-bsp/ $ source setup-environment wandboard-quad
The resulting image, core-image-minimal.sdcard
, which is created inside the build
directory, can be programmed into a microSD card, inserted into the primary slot in the Wandboard CPU board, and booted using the following commands:
$ cd /opt/yocto/fsl-community-bsp/wandboard- quad/tmp/deploy/images/wandboard-quad/ $ sudo dd if=core-image-minimal.sdcard of=/dev/sdN bs=1M && sync
Here, /dev/sdN
corresponds to the device node assigned to the microSD card in your host system.
See also
- You can find more information regarding the
repo
tool on Android's documentation at https://source.android.com/source/using-repo.html
- C語言程序設(shè)計(jì)(第2 版)
- Machine Learning with R Cookbook(Second Edition)
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實(shí)訓(xùn)版)
- Learning Concurrency in Kotlin
- ServiceNow:Building Powerful Workflows
- Python語言實(shí)用教程
- 貫通Tomcat開發(fā)
- Julia High Performance(Second Edition)
- Vue.js 3.x高效前端開發(fā)(視頻教學(xué)版)
- 你必須知道的.NET(第2版)
- Raspberry Pi Robotic Projects
- Java EE互聯(lián)網(wǎng)輕量級(jí)框架整合開發(fā):SSM+Redis+Spring微服務(wù)(上下冊(cè))
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)
- Instant JRebel
- Python編程基礎(chǔ)