... 7Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Free Software tools for embedded systems C library for the target deviceC library options18Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008uClibc toolchainsFree Electrons uClibc toolchainshttp://freeelectrons.com/community/tools/uclibcRun on i386 GNU/LinuxSupported platformsarm, armeb, i386, m68k, ppc, mips, mipsel, sh17Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Get a precompiled toolchainCan get one from several locations ... 1Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Free Software tools for embedded systems Free Software tools for embedded systems Thomas Petazzoni / Michael OpdenackerFree Electronshttp://freeelectrons.com/Created with OpenOffice.org 2.x24Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Scratchboxhttp://scratchbox.org/ A crosscompiling toolkit projectMakes it easier to crosscompilea complete embedded Linux system.Works by allowing tools to be crosscompiled in a transparent way, making building tools believe they are doing a native compile job.Supported platforms: arm, x86Uses the qemu emulator to transparently run built arm binaries.Experimental support for ppc, mips and cris.10Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Honey, I shrunk the programs!C program ... 311 K25Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Scratchbox featuresMain benefitsChrooted environment:you are still on the host, but you only see the target files.Transparent crosscompiling: the crosscompiler looks like a native one.Transparent execution: either through remote execution on the target. Or through CPU code emulation (qemu).Other featuresShips with crosscompiling toolchainsand software to create Debian packages.Supports both uClibc and glibc.Very basic root filesystems available.26Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Toolchains useful resourceseLinux.org toolchain page:http://elinux.org/Tool_Chains27Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Crosscompiling toolchains SummaryBuilding a toolchain by yourselfTough and very long to master.Readytouse toolchainsAvailable from several locations for most platforms.Tools to build toolchains: Buildroot and Crosstool.Make it easy to create a toolchain for your exact needs.Build systems: Scratchbox, OpenEmbedded (see annex section)Help you to create and populate root filesystem.28Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Practical lab – Using buildrootTime to start Lab 1!Configure buildrootRun it to build your own crosscompiling toolchain29Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Free Software tools for embedded systems GNU / Linux workstationEmulators3Free Software tools for embedded systems © Copyright 20042008, Free ElectronsCreative Commons AttributionShareAlike 2.5 licensehttp://freeelectrons.comJan 24, 2008Best viewed with...