Top Banner
TM Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc. June 2012
51

Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

Sep 26, 2018

Download

Documents

vonga
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire,

ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PowerQUICC,

Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of

Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack,

CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and

Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service

names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

June 2012

Page 2: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 2

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

© Copyright 2012 Adeneo Embedded

Based on original work by Free Electrons (http://free-electrons.com) © Copyright 2012

Document sources, updates and translations: http://free-electrons.com/docs

Creative Commons BY-SA 3.0 license License text: http://creativecommons.org/licenses/by-sa/3.0/

You are free to:

− Share — to copy, distribute and transmit the work

− Remix — to adapt the work

− Make commercial use of the work

Under the following conditions:

− Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

− Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Page 3: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 3

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Introduction to Linux

• Development

• Compiling

• U-boot

• Linux kernel

• Building a System • LTIB/Yocto/…

• Application…

Page 4: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 4

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 5: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 5

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 6: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 6

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Reusability and features

• Flexibility

• Tools

• Community project

• Licensing

• Cost of ramp-up

• Support

• No real-time support out of the box

Page 7: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 7

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Board Support Package development

− Write/Adapt the machine-specific code (bootloader, kernel, drivers)

• System integration

− Integrate components: bootloader, kernel, third-party libraries and applications

• Application development

− Develop, build and debug custom applications for your device

Bootloader

Kernel

Applications

Initialization scripts

Page 8: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 8

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Usually part of the kernel space

• Can be linked statically with the kernel (built-in)

or dynamically (modules)

• Different types of drivers: Block, Character,

Specific interfaces (e.g. network, USB, ...)

Page 9: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 9

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• After the kernel is done initializing itself and its drivers,

initialization scripts are typically called to:

− Start services

− Create a debug console

− Start your application

• You want to customize these scripts to:

− Remove unnecessary features

− Reduce boot times

− Implement your own scenarios (recovery, normal boot...)

Page 10: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 10

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• The root file-system is where all the files contained in the file

hierarchy (including device nodes) are stored.

• Many different components:

Page 11: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 11

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

−Select a toolchain

−Select the packages that will run on the target

−Configure and build these packages

−Deploy them on the device

Page 12: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 12

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Portability

• Prototyping

• Leverage existing software (frameworks, libraries,

tools...)

• Tools

• Languages

Page 13: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 13

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Porting code

− Interfaces

− Components

• Hardware constraints

− resources

− Desktop is x86 centric

− Convergence between embedded and desktop

Page 14: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 14

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Linux is a high-level operating system:

− Scheduling

− Memory management: uses virtual memory

− Hardware access

− Privileges

Page 15: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 15

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 16: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 16

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Embedded Linux development must be done

using a Linux host (with a few exceptions).

→ How to choose a Linux distribution?

• Use the most mainstream distribution, i.e. Ubuntu

− LTIB tested using Ubuntu 10.04.

− Should work on more recent releases, both on 32 and 64 bit

(tested successfully on Ubuntu 11.04 for instance)

− Can use a virtual machine

Page 17: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 17

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Serial connection

Debugging: bootloader, kernel, applications

Very useful for board bring-up

• USB

USB gadgets (substitute to Ethernet and serial)

• JTAG

Board bring-up

Kernel debugging

• Ethernet

TFTP and NFS

GDB/gdbserver

Page 18: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 18

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Host: Runs TFTP and NFS servers

• Device: Bootloader downloads the kernel, kernel mounts the file system over NFS

Kernel

file system

Kernel TFTP

NFS file system (remote)

TFTP server

NFS server

Bootloader

Kernel

HOST DEVICE

Page 19: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 19

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Editors: vi, emacs (most editors can do the job)

Very efficient if you are familiar with them

• Integrated environments:

Recommended option for beginners

− Eclipse

− Commercial toolsets

Page 20: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 20

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 21: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 21

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

http://www.linuxfromscratch.org/

Page 22: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 22

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Manually

• Using Tools

• Build Systems

• Precompiled…

Page 23: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 23

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 24: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 24

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Open-source bootloader used in embedded devices

− Used by many different silicon vendors, widely used on Freescale platforms

− Boots Linux, Android and other operating systems

− Architectures: x86, ARM, PPC, MIPS, Coldfire

− Advanced features: scripting, networking, drivers

• http://www.denx.de/wiki/U-Boot/

• Interesting alternative (community): Barebox

− Formerly known as U-Boot-v2

− Uses the kernel coding style (and shares drivers)

Page 25: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 25

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• The procedure depends on the device:

− Change a lot from device to device (and the boot medium)

− Documented in the BSP

• Several methods (typically):

− Using Linux tools on the host (e.g. to flash SD Cards)

− Using Manufacturing tools provided with the BSP

− Using JTAG

Useful for development, also skips the re-flashing part if loading to RAM

instead

Page 26: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 26

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• U-Boot can be configured through environment variables:

− Similar to shell environment variables

− Used to change the behavior of other commands (e.g. set IP address)

− Used to implement scripting

• The environment can be saved to permanent storage (defined in the configuration file)

• When booting: the environment is loaded from permanent storage to RAM (otherwise, will use hardcoded defaults)

• Commands to manipulate environment variables:

− printenv, shows all variables

− printenv <variable-name>, shows the value of one variable

− setenv <variable-name> <variable- value>, changes the value of a variable (only in RAM, store using the next command)

− saveenv, saves to environment to permanent storage

Page 27: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 27

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

u-boot # printenv

baudrate=19200

ethaddr=00:40:95:36:35:33

netmask=255.255.255.0

ipaddr=10.0.0.11

serverip=10.0.0.1

stdin=serial

stdout=serial

stderr=serial

u-boot # printenv serverip

serverip=10.0.0.2

u-boot # setenv serverip 10.0.0.100

u-boot # saveenv

Page 28: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 28

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Using the serial port

• Using on-board hardware:

• Using JTAG

Page 29: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 29

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 30: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 30

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 31: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 31

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Configuring the…

Manually

LTIB

• Building the…

Manually

LTIB

• Running the…

Page 32: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 32

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 33: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 33

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Avoid reinventing the wheel!

− A lot of third-party libraries and applications that can be leveraged

− Freely available, distributable and can and be modified according to

the needs of the project

Page 34: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 34

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Root file systems are usually entirely cross-built and packaged

on the host

• Two main directory structures during development

− Target: binaries and files actually used on the device

− Build/Staging: contains additional files (headers, documentation,

static libraries)

Build (host)

• Binaries

• Dynamic libraries

• Data

• Headers

• Documentation

• Static Librairies

Target (host → device)

• Binaries

• Dynamic libraries

• Data

Page 35: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 35

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Build systems are usually shipped with Board Support Packages.

− Based on community projects or proprietary tools

• Community projects:

− LTIB, developed mainly by Freescale

− OpenEmbedded, Yocto, Poky, more flexible but also far more complicated

− Buildroot, developed by the community

− OpenWRT

− …

• Vendor specific tools (silicon vendor or embedded Linux vendor)

Page 36: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 36

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Ubuntu GNU/Linux

• Android

• Ångström and Timesys

• Meego

Page 37: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 37

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 38: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 38

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• On Unix systems, all files and directories are organized in a

single tree.

• File systems are mounted in a specific location in this

hierarchy of directories

− They are mounted in directories (“mount points”)

− When a file system is mounted in a directory (called mount point),

the contents of this directory reflects the contents of the storage

device.

− When the file system is unmounted, the mount point is empty again.

Page 39: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 39

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Different criteria when choosing a file system:

−What type of media will be used for storage?

MTD devices have specific requirements, e.g. wear-leveling

−Read-only or read-write?

− Is the data volatile (i.e. does it need to be saved across

reboots)?

−What are the performance requirements?

Page 40: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 40

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 41: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 41

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• LTIB = Linux Target Image Builder

• Main features:

− Support for multiple targets: PPC, ARM, Coldfire

− Runs on Linux (latest releases are tested using Ubuntu)

− Configuration based on a menu

− Builds bootloader and kernel images

− More than 200 user-space packages selectable. Automatic

management of dependencies

• License: GPL (applies to the tool itself)

Page 42: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 42

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 43: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 43

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Build framework for embedded Linux

• Highlights:

− Support for HW

− Tools for speed up the process

− Easy to customize

− Runs on any Linux distribution

− Cross-compiles 1000's of packages including GTK+, Qt, the X

Windows system, Mono, Java, and about anything else you might

ever need

Page 44: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 44

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 45: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 45

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 46: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 46

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Eclipse plug-in and user space tool suite offerings further

improve developer productivity

• Integrates Yocto ADT cross toolchain into CDT: build, deploy,

test, debug without leaving the IDE

− Intended to be used for GNU autotools projects

Page 47: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 47

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

LTIB OE/YoctoAngstrom

• At the moment, officially

released by Freescale

• Quick build times

• Many packages, might be

outdated

• Easier for beginners

• Easy installation

• Community project with

community support

• Very long first time build

(several hours)

• Even more packages,

usually recent

• Requires more knowledge

than LTIB

• Easy installation

Page 48: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 48

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Page 49: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 49

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

• Portability

• Prototyping

• Leverage existing software

Page 50: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM 50

Confidential and Proprietary Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc.,

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All

other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

Q & A

Page 51: Linux para Sistemas Embebidos, una fuente abierta … · Linux para Sistemas Embebidos, una fuente abierta que se adapta a tu aplicación Linux, Linux for Embedded, Linux for Multimedia,

TM