(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
Â
Eclipse IDE Yocto Plugin
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. 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. 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. 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)
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. 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. 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
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. 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. 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. 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. 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. 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