Eclipse IDE Yocto Plugin

2,074
-1

Published on

Eclipse IDE Yocto Plugin

Published in: Engineering, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,074
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
54
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Eclipse IDE Yocto Plugin

  1. 1. External Use TM Developing Embedded Linux® Application with Eclipse® IDE Yocto™ Plug-in J u l y 2 0 1 4 Catalin Udma - Freescale Semiconductor, Inc.
  2. 2. TM External Use 1 Agenda • Introduction to Yocto • Application Development Toolkit (ADT) • Building Yocto • Eclipse IDE Yocto™ Plug-in − Overview − Installation − Configuration − Embedded Linux Application Development • Summary
  3. 3. TM External Use 2 Introduction to Yocto • Yocto Project (https://www.yoctoproject.org/ )  Open-source embedded Linux build system  “It's not an embedded Linux distribution – it creates a custom one for you”  Freescale – Yocto contributor  Freescale SDK – Yocto based (Power Architecture® and ARM® technologies) Yocto provides and integrated build environment • User-friendly framework for creating Linux distribution • Configure the target • Build the toolchain: GCC, GCC-cross egblic, binutils • Build the u-boot, kernel • Build Linux User space applications
  4. 4. TM External Use 3 Application Development Toolkit (ADT) • Yocto Project provides ADT tools • Objective: provides a user-friendly way to build and develop complete software stack • ADT consists of the following: − Architecture specific cross-toolchain − QEMU − User space tools − Eclipse IDE Yocto Plug-in • ADT can be used: − Extending an Yocto build directory • Yocto provides: cross-toolchain, QEMU and User space tools − Stand alone (using ADT installer script)
  5. 5. TM External Use 4 ADT - Resources − Yocto Project resources − ADT Overview • https://www.yoctoproject.org/tools-resources/projects/application-development-toolkit-adt − ADT Manual • https://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html
  6. 6. TM External Use 5 Building Yocto • Install Freescale Yocto SDK QorIQ-SDK-V1.5 • Configure build environment $ source ./oe-init-build-env • Build toolchain and root file system. Install toolchain $ bitbake meta-toolchain $ bitbake core-image-sato-sdk $ cd tmp/deploy/sdk && source ./poky-eglibc-*.sh • Gernerate qemu Rootfs $ runqemu-extract-sdk <rootfs.tar.bz2> <destination> • Yocto build provides: − Complete distribution for target (linux, user space tools) − Cross-toolchain − QEMU
  7. 7. TM External Use 6 Eclipse IDE Yocto Plug-in Overview • Eclipse IDE Yocto plug-in is provided by Yocto Project • Eclipse user friendly environment that enables GUI access to ADT and Yocto resources − Cross compilation − Development, execution and debug − Advanced Linux tools support (oprofile, perf, lttng) − Linux application development support, including autotools − Integrated QEMU support − Yocto specific configuration (Yocto build directory and metadata parsing) − Support for standalone and Yocto build system support − User friendly interface for creating a new Yocto Project BSP
  8. 8. TM External Use 7 Eclipse IDE Yocto Plug-in Installation • Yocto Plugin - http://downloads.yoctoproject.org/releases/eclipse-plugin/1.6/juno/ − Yocto Project ADT Plug-in − Yocto Project Bitbake Commander Plug-in − Yocto Project Documentation plug-in • Pre-requisites − Luna® - http://download.eclipse.org/releases/luna  Mobile and Device Development • Remote System Explorer User Actions • Target Management Terminal • TCF Remote System Explorer add-in • TCF Target Explorer
  9. 9. TM External Use 8 Eclipse IDE Yocto Plug-in Configuration • Preferences: Yocto Project ADT
  10. 10. TM External Use 9 Embedded Linux Application Development (1) • Create the project • Start QEMU simulator • Configure debug settings • Debug and other tools (perf)
  11. 11. TM External Use 10 Embedded Linux Application Development (2) Create the project • New Project -> C/C++/ C Project − Yocto Project ADT Autotools − Yocto Project ADT CMake • Inherit all Yocto configurations − Toolchain − Build flags (-mcpu, -m32…) − sysroot
  12. 12. TM External Use 11 Embedded Linux Application Development (3) Launch QEMU • Run->External Tools -> External Tools Configurations − qemu <ppc603e> executable automatically added by Yocto Plugin − Qemu inherits all the configurations from Yoct (settings, scripts)
  13. 13. TM External Use 12 Embedded Linux Application Development (4) Configure Debug Settings • Debug Configurations -> C/C++ Remote Application − Application elf − Connection to target (qemu)  New Connection • Select TCF protocol for connection to target • Set IP address of the qemu • Browse target (qemu) capabilities − Debugger  cross gdb from yocto : /opt/poky/1.4.1/sysroots/…/powerpc-poky-linux-gdb
  14. 14. TM External Use 13 Embedded Linux Application Development (5) Debug and other tools • gdb based debug • Debug application on qemu • Enable other tools − Perf − Oprofile − Lttng − System Tap • Root console for running other tools (perf)
  15. 15. TM External Use 14 Summary • Eclipse IDE Yocto Plug-in provides an user friendly environment that enables GUI access to ADT and Yocto resources • Capabilities: − Linux application development (build, run, debug) − Integrated Qemu based on Yocto settings − Target Linux tools (perf, system tap, lttng) − Yocto project configuration  New build  Yocto HOB
  16. 16. TM © 2014 Freescale Semiconductor, Inc. | External Use www.Freescale.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×