
Yocto i.MX 6 BSP Manual Document No.: L-814e_2 Release No.: i.MX 6 PD15.3.x Yocto 1.8.1 Edition: May 2016 A product of a PHYTEC Technology Holding company Yocto i.MX 6 BSP 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 2nd Edition May 2016 © PHYTEC Messtechnik GmbH 2016 L-814e_2 Contents List of Figures........................................................................................................... iii Conventions, Abbreviations and Acronyms ..................................................................... v 1 Introduction to Yocto .......................................................................................... 1 2 Introduction to the BSP ....................................................................................... 1 2.1 Supported Hardware...................................................................................... 1 3 Building the BSP ................................................................................................. 2 3.1 Get the BSP ................................................................................................. 2 3.2 Basic Set-Up ................................................................................................ 2 3.3 Finding the right Software Platform.................................................................. 3 3.4 Selecting a Software Platform.......................................................................... 3 3.5 Starting the Build Process .............................................................................. 3 3.6 BSP Images ................................................................................................. 4 4 Booting the System ............................................................................................. 5 4.1 Booting from NAND Flash ............................................................................... 5 4.2 Booting from SD Card .................................................................................... 5 4.2.1 Using a single, prebuild SD Card Image .................................................. 5 4.2.2 Using four individual Images (barebox-, kernel- and device tree image, and root filesystem)................................................................................. 6 4.3 Booting from USB OTG (Serial Downloader)........................................................ 8 4.4 Booting from SPI NOR Flash ............................................................................ 8 4.5 Booting the Kernel from Network ..................................................................... 9 4.5.1 Development Host Preparations............................................................ 9 4.5.2 Preparations on the Embedded Board ...................................................10 4.5.3 Booting the Embedded Board..............................................................11 4.6 Custom Boot Setup.......................................................................................11 5 Updating the Software....................................................................................... 13 5.1 Updating from Network.................................................................................13 5.1.1 Updating NAND Flash from Network......................................................13 5.1.2 Updating SPI NOR Flash from Network...................................................15 5.1.3 Updating eMMC from Network .............................................................15 5.2 Updating from SD Card..................................................................................16 5.2.1 Updating NAND Flash from SD Card.......................................................17 5.2.2 Updating SPI Flash from SD Card..........................................................17 6 Device Tree (DT)................................................................................................ 18 6.1 Introduction...............................................................................................18 6.2 Phytec i.MX 6 BSP Device Tree Concept .............................................................18 6.2.1 Switching Expansion Boards and Displays..............................................22 6.2.2 Handle the Different Displays ..............................................................23 6.2.3 Bootloader's DT Modifications.............................................................24 7 Accessing Peripherals ........................................................................................ 25 7.1 i.MX 6 Pin Muxing ........................................................................................26 7.2 Serial TTYs ..................................................................................................27 7.3 Network.....................................................................................................29 7.4 CAN Bus .....................................................................................................31 7.5 MMC/SD Card ..............................................................................................33 © PHYTEC Messtechnik GmbH 2016 L-814e_2 i Yocto i.MX 6 BSP Manual 7.6 eMMC Devices............................................................................................. 36 7.6.1 Extended CSD Register ...................................................................... 36 7.6.2 Enable Background Operations (BKOPS) ............................................... 37 7.6.3 Enable pseudo-SLC Mode................................................................... 38 7.6.4 eMMC (Boot-)Partitions..................................................................... 40 7.6.5 Reliable Write.................................................................................. 41 7.6.6 Resize the ext4 Root Filesystem .......................................................... 42 7.6.7 Erase the Device .............................................................................. 43 7.6.8 Additional Software in the BSP ........................................................... 44 7.7 NAND Flash................................................................................................ 45 7.8 GPIOs ....................................................................................................... 46 7.9 LEDs......................................................................................................... 48 7.10 SPI Master ................................................................................................. 50 7.11 I²C Bus...................................................................................................... 52 7.11.1 EEPROM ......................................................................................... 52 7.11.2 RTC ............................................................................................... 53 7.11.3 Capacitive Touchscreen ....................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages88 Page
-
File Size-