![](http://s1.manualzz.com/store/data/006486176_1-d7eaa54001f9012c407144ea833f9c39-128x128.png)
advertisement
![Yocto Reference Manual | Manualzz Yocto Reference Manual | Manualzz](http://s1.manualzz.com/store/data/006486176_1-d7eaa54001f9012c407144ea833f9c39-360x466.png)
6 Working with Poky and Bitbake
Working with Poky and Bitbake
6.1 Start the Build
After you downloaded all the meta data with phyLinux init, you have to set up the shell environment variables. This needs to be done every time you open a new shell for starting builds. We use the shell script provided by Poky in its default configuration. From the root of your project directory type: source sources/poky/oe‐init‐build‐env
The abbreviation for the source command is a single dot.
. sources/poky/oe‐init‐build‐env
The current working directory of the shell should change to build/ and you are now ready to build your first image. We suggest to start with our hardware bring-up image to see if everything is working correctly. If you want, you can separate the download process from the compile process to identify problems of your internet connection. With bitbake ‐c fetchall phytec‐hwbringup‐image all external source repositories get pulled into the download directory. With du ‐sh <DL_DIR> you can see what the download volume was. Now start the compile process. bitbake phytec‐hwbringup‐image
The first compile process takes about 40 minutes on a modern Intel Core i7. All subsequent builds will use the filled caches and should take about 3 minutes.
6.2 Images
If everything went fine, the images can be found under: cd deploy/images/<MACHINE>
The easiest way to test your image is to jumper your board for booting from SD card and to flash the build image to the SD card: sudo dd if=phytec‐hwbringup‐image‐<MACHINE>.sdcard of=/dev/<your_device> bs=1MB conv=fsync
Here <your_device> could be "sde" for example, depending on your system.
Be very careful when selecting the right drive! Selecting the wrong drive can erase your hard drive!
The parameter conv=fsync forces a data buffer write to the device before dd returns.
© PHYTEC Messtechnik GmbH 2015 L-813e_2 13
advertisement
Related manuals
advertisement
Table of contents
- 7 The Yocto Project
- 7 Introduction
- 7 Core Components
- 8 Vocabulary
- 8 Recipes
- 8 Classes
- 8 Layers
- 8 Machine
- 8 Distro
- 9 Bitbake
- 9 Toaster
- 9 Official Documentation
- 10 Compatible Linux Distributions
- 11 Introduction to the Phytec BSP
- 11 BSP Structure
- 11 BSP Management
- 11 phyLinux
- 12 BSP Meta Data
- 12 meta-openembedded
- 12 meta-qt
- 13 meta-phytec
-
13
meta-phytec/meta-phy
- 13 meta-yogurt
- 13 Build Configuration
- 14 Installation
- 14 Setting up the Host
- 14 Git Configuration
- 15 site.conf Setup
- 16 phyLinux Documentation
- 16 Get phyLinux
- 16 Basic Usage
- 17 Initialization
- 18 Advanced Usage
- 19 Working with Poky and Bitbake
- 19 Start the Build
- 19 Images
- 20 Installing the SDK
- 20 Accessing Development States between Releases
- 21 BSP Features of meta-phytec and meta-yogurt
- 21 Buildinfo