Yocto Manual Can Be Applied to the Phytec BSP As We Use the Classic Kernel Approach of Yocto and Most of the Documentation Assumes the Yocto Kernel Approach
Total Page:16
File Type:pdf, Size:1020Kb
Yocto Reference Manual Document No.: L-813e_4 Release No.: phyCORE-AM335x R2 PD16.1.x Yocto 2.0.2 Edition: June 2016 A product of a PHYTEC Technology Holding company Yocto Reference Manual Copyrighted products are not explicitly indicated in this manual. The absence of the trademark (™, or ®) and copyright (©) symbols does not imply that a product is not protected. Additionally, registered patents and trademarks are similarly not expressly indicated in this manual. The information in this document has been carefully checked and is considered to be entirely reliable. However, PHYTEC Messtechnik GmbH assumes no responsibility for any inaccuracies. PHYTEC Messtechnik GmbH neither gives any guarantee nor accepts any liability whatsoever for consequential damages resulting from the use of this manual or its associated product. PHYTEC Messtechnik GmbH reserves the right to alter the information contained herein without prior notification and accepts no responsibility for any damages that might result. Additionally, PHYTEC Messtechnik GmbH offers no guarantee nor accepts any liability for damages arising from the improper usage or improper installation of the hardware or software. PHYTEC Messtechnik GmbH further reserves the right to alter the layout and/or design of the hardware without prior notification and accepts no liability for doing so. © Copyright 2016 PHYTEC Messtechnik GmbH, D-55129 Mainz. Rights - including those of translation, reprint, broadcast, photomechanical or similar reproduction and storage or processing in computer systems, in whole or in part - are reserved. No reproduction may occur without the express written consent from PHYTEC Messtechnik GmbH. EUROPE NORTH AMERICA FRANCE Address: PHYTEC Messtechnik GmbH PHYTEC America LLC PHYTEC France Robert-Koch-Str. 39 203 Parfitt Way SW 17, place Saint-Etienne D-55129 Mainz Bainbridge Island, WA 98110 F-72140 Sillé-le-Guillaume GERMANY USA FRANCE +49 6131 9221-32 +1 800 278-9913 +33 2 43 29 22 33 Sales: [email protected] [email protected] [email protected] Technical +49 6131 9221-31 +1 206 780-9047 Support: [email protected] [email protected] [email protected] Fax: +49 6131 9221-33 +1 206 780-9135 +33 2 43 29 22 34 http://www.phytec.de Web Site: http://www.phytec.com http://www.phytec.fr http://www.phytec.eu INDIA CHINA Address: PHYTEC Embedded Pvt. Ltd. PHYTEC Information Technology (Shenzhen) Co. Ltd. #16/9C, 3rd Main, 3rd Floor, 8th Block, Suite 2611, Floor 26, Anlian Plaza, Opp. Police Station Koramangala, 4018 Jin Tian Road Bangalore-560095 Futian District, Shenzhen INDIA CHINA 518026 +91-80-4086 7046/48 +86-755-3395-5875 Sales: [email protected] [email protected] Technical +91-80-4086 7047 Support: [email protected] [email protected] Fax: +86-755-3395-5999 Web Site: http://www.phytec.in http://www.phytec.cn 4th Edition June 2016 © PHYTEC Messtechnik GmbH 2016 L-813e_4 Contents Conventions, Abbreviations and Acronyms ....................................................................iii 1 The Yocto Project ............................................................................................... 1 1.1 Introduction .............................................................................................. 1 1.2 Core Components ........................................................................................ 1 1.3 Vocabulary ................................................................................................. 2 1.3.1 Recipes ........................................................................................... 2 1.3.2 Classes ............................................................................................ 2 1.3.3 Layers............................................................................................. 2 1.3.4 Machine .......................................................................................... 2 1.3.5 Distribution (Distro) ......................................................................... 2 1.4 Poky .......................................................................................................... 3 1.4.1 Bitbake ........................................................................................... 3 1.4.2 Toaster ........................................................................................... 3 1.5 Official Documentation................................................................................. 3 2 Compatible Linux Distributions.......................................................................... 4 3 Introduction to the Phytec BSP ............................................................................. 5 3.1 BSP Structure ............................................................................................. 5 3.1.1 BSP Management ............................................................................. 5 3.1.1.1 phyLinux............................................................................. 5 3.1.1.2 Repo .................................................................................. 5 3.1.2 BSP Metadata ................................................................................... 6 3.1.2.1 Poky................................................................................... 6 3.1.2.2 meta-openembedded ............................................................ 6 3.1.2.3 meta-qt5............................................................................. 6 3.1.2.4 meta-phytec ........................................................................ 6 3.1.2.5 meta-yogurt ........................................................................ 7 3.2 Build Configuration....................................................................................... 7 4 Installation........................................................................................................ 8 4.1 Setting up the Host ..................................................................................... 8 4.2 Git Configuration .......................................................................................... 8 4.3 site.conf Setup............................................................................................. 9 5 phyLinux Documentation ................................................................................... 10 5.1 Get phyLinux...............................................................................................10 5.2 Basic Usage ................................................................................................10 5.3 Initialization ..............................................................................................11 5.4 Advanced Usage ..........................................................................................12 6 Working with Poky and Bitbake........................................................................... 13 6.1 Start the Build.............................................................................................13 6.2 Images ......................................................................................................14 6.3 Installing the SDK........................................................................................14 6.4 Accessing Development States between Releases ...............................................15 6.5 Inspect your Build Configuration.....................................................................15 6.6 BSP Features of meta-phytec and meta-yogurt...................................................16 © PHYTEC Messtechnik GmbH 2016 L-813e_4 i Yocto Reference Manual 6.7 Customizing the BSP.................................................................................... 18 6.7.1 How to disable the Qt Demo ............................................................... 18 6.7.2 How to use the Framebuffer Console .................................................... 19 6.7.3 How to add additional Software to the BSP Image................................... 19 6.7.3.1 Notes about Packages and Recipes.......................................... 20 6.7.4 How to add an additional Layer........................................................... 20 6.7.5 How to create your own Layer............................................................. 22 6.7.6 How to know your Kernel and Bootloader Recipe and Version.................... 23 6.7.7 How to Configure the Kernel or Bootloader ........................................... 24 6.7.7.1 How to add a Configuration Fragment to a Recipe ...................... 25 6.7.7.2 How to add a complete default Configuration (defconfig) to a Recipe......................................................................... 26 6.7.8 How to patch the Kernel or Bootloader with devtool ................................ 27 6.7.9 How to patch the Kernel or Bootloader with the "temporary Method"......... 28 6.7.10 How to work with the Kernel and Bootloader using SRC_URI in local.conf .... 31 6.7.11 How to add existing Software with the "sustainable Method" ................... 32 6.7.12 How to add Linux Firmware Files to the Root Filesystem ........................... 33 6.7.13 How to change the Network Configuration ............................................ 34 6.7.14 How to change the Wireless Network Configuration................................. 35 6.7.14.1 Connecting to a WLAN Network .............................................. 35 6.7.14.2 Creating a WLAN Access Point ................................................ 36 6.7.15 How to add OpenCV Libraries and Examples ..........................................