SlideShare ist ein Scribd-Unternehmen logo
1 von 43
Downloaden Sie, um offline zu lesen
Is Android the
new Embedded Linux?
  Embedded World Conference 2013

          Karim Yaghmour
    karim.yaghmour@opersys.com


                             1
These slides are made available to you under a Creative Commons Share-              Delivered and/or customized by
Alike 3.0 license. The full terms of this license are here:
https://creativecommons.org/licenses/by-sa/3.0/


Attribution requirements and misc., PLEASE READ:
●   This slide must remain as-is in this specific location (slide #2), everything
    else you are free to change; including the logo :-)
●   Use of figures in other documents must feature the below “Originals at”
    URL immediately under that figure and the below copyright notice where
    appropriate.
●   You are free to fill in the “Delivered and/or customized by” space on the
    right as you see fit.
●   You are FORBIDEN from using the default “About” slide as-is or any of its
    contents.
●
    You are FORBIDEN from using any content provided by 3rd parties without
    the EXPLICIT consent from those parties.


(C) Copyright 2013, Opersys inc.
These slides created by: Karim Yaghmour
Originals at: www.opersys.com/community/docs

                                                                                             2
About
●   Author of:




●   Introduced Linux Trace Toolkit in 1999
●   Originated Adeos and relayfs (kernel/relay.c)
●   Training, Custom Dev, Consulting, ...
                                              3
1. Why are we asking this question?
●   Android is based on Linux
●   Android is “embedded”
●   Android is extremely popular
●   Android enjoys good support from SoC vendors


    Mostly - The trends are there



                                       4
1.1. Why did Embedded Linux rise?
●   EETimes 2005 survey ...
     http://www.embedded.com/electronics-blogs/-
     include/4025539/Embedded-systems-survey-Operating-
     systems-up-for-grabs
●   EETImes 2012 survey
     http://www.embedded.com/design/embedded/4372666/Shiftin
     g-sands--Trends-in-embedded-systems-design




                                                5
1.2. Current consumer trends
●   Rise of touch-based devices
●   Race with Apple on features / price
●   Mobile devices outselling PCs since 2010
●   Increasingly inexpensive low-end touch-based
    devices




                                          6
Source:
“From Altair to iPad: 35 years of personal computer market share”, Jeremy Reimer,
Ars Technica, August 2012
http://arstechnica.com/business/2012/08/from-altair-to-ipad-35-years-of-personal-computer-market-share/
This material is (C) 2012, Ars Technica and is NOT CC-BY-SA.
                                                                                    7
Source:
“From Altair to iPad: 35 years of personal computer market share”, Jeremy Reimer,
Ars Technica, August 2012
http://arstechnica.com/business/2012/08/from-altair-to-ipad-35-years-of-personal-computer-market-share/
This material is (C) 2012, Ars Technica and is NOT CC-BY-SA.
                                                                                    8
Source:
“From Altair to iPad: 35 years of personal computer market share”, Jeremy Reimer,
Ars Technica, August 2012
http://arstechnica.com/business/2012/08/from-altair-to-ipad-35-years-of-personal-computer-market-share/
This material is (C) 2012, Ars Technica and is NOT CC-BY-SA.
                                                                                    9
1.3. Current embedded trends
●   Rise of cheap 32-bit CPUs
●   Rise of inexpensive storage
●   Rise of inexpensive eval boards
    ●   BeagleBoards
    ●   BeagleBone
    ●   RaspberryPi
    ●   For all practical purposes, this hardware is disposable
●   Arduino / Maker / DIY trend
●   UBM 2012 Embedded Market Study
                                                  10
2. Embedded Linux, a look back

Projects                                                                                 Conferences:
                   Linux kernel    1991 ...                                                             OLS                1999
                       RTLinux     1996 V. Yodaiken / M. Barabanov                                      CELF ELC           2004
             uClinux / uCDimm      1998 J. Dionne / Motorola Dragonball                                 ABS                2011
                      BusyBox      1999 B. Perens ('96) / Debian, then E. Anderson
                           RTAI    1999 P. Mantegazza                                    Books
                       Buildroot   1999 E. Anderson                                                     Craig Hollabaugh
                         U-Boot    1999 W. Denk                                                         Karim Yaghmour
                          uClibc   2000 E. Anderson                                                     Chris Hallinan
                 I-pipe / Adeos    2001 P. Gerum (K. Yaghmour)
           Preemption patches      2005 S.-Thorsten Dietrich / I. Molnar / T. Gleixner
                          eglibc   2009 Debian
                          Yocto    2010 LF / Intel                                       Companies:
                                                                                                        Lineo
Attempts at Linux mobile GUIs                                                                           MontaVista
            Maemo / MeeGo                                                                               TimeSys
                  Matchbox
                     Qtopia




                                                                                                        11
3. Android, whereth comest thou?
●   2002:
    ●   Sergey Brin and Larry Page started using Sidekick smartphone
    ●   Sidekick one of 1st smartphones integrating web, IM, mail, etc.
    ●   Sidekick was made by Danger inc., co-founded by Andy Rubin (CEO)
    ●   Brin/Page met Rubin at Stanford talk he gave on Sidekick’s development
    ●   Google was default search engine on Sidekick
●   2004:
    ●   Despite cult following, Sidekick wasn’t making $
    ●   Danger inc. board decided to replace Rubin
    ●   Rubin left. Got seed $. Started Android inc. Started looking for VCs.
    ●   Goal: Open mobile hand-set platform
●   2005 - July:
    ●   Got bought by Google for undisclosed sum :)
●   2007 - November:
    ●   Open Handset Alliance announced along with Android
                                                                            12
4. What's Embedded Linux?




                     13
4. What's Embedded Linux?
●
    A set of ad-hoc methods to package the Linux kernel with a
    (minimal) filesystem.
●   FS content “to be determined” case-by-case
●   APIs are specific to each device/build
●   “Core software”:
    ●   BusyBox
    ●   U-Boot
    ●   GNU Toolchain
●
    Your flavor of:
    ●   glibc or uClibc or eglibc
    ●   yocto or buildroot or eldk or ltib or ptxdist or ...
●
    No serious UX framework
                                                               14
15
5. What's Android?




                     16
5. What's Android?
●
    ... apart from its increasingly well known UX ...
●
    Fully-integrated Eclipse IDE
●
    SDK/NDK
●
    ADB
●
    Fastboot
●
    Published, well-known, and very rich APIs
●
    A large and growing developer community
●
    And still we can use the usual suspects:
    ●   GNU toolchain, BusyBox, u- boot, glibc, ...


An actual standardized dev. env. across all product lines
                                                        17
18
6. Licensing differences
●   Kernel:
    ●   GNU General Public License (a.k.a. GPL)
●   AOSP:
    ●   Mostly Apache License 2.0 (a.k.a. ASL)
    ●   Having GPL-free user-space was a design goal
    ●   A few GPL and LGPL parts: mainly BlueZ and DBUS
    ●   Some key components in BSD: Bionic and Toolbox
    ●   “external/” directory contains a mixed bag of licenses, incl. lots of GPL
●   Android Robot:
    ●   Very much like the Linux penguin
●   Android name:
    ●   As descriptor only: “for Android”
    ●   Use for labelling device requires talking to Google
                                                                        19
7. Why did Android use Linux?
“The Linux vs BSD decision was made before Google acquired Android.
While starting with NetBSD's kernel was tempting, the Linux kernel wasn't
that much larger (one of the concerns), had quite a lot of support from
silicon vendors and OEMs, and a larger developer community (easier to
find folks with Linux kernel expertise).
The bright line between the kernel and userspace drawn by the statement
at the top of the Linux COPYING file was certainly helpful in making this
decision. Explaining that the kernel is GPLv2 and userspace is
Apache2/BSD/MIT is something easily understood by OEMs, and most
OEMs don't have a problem with the general idea that the kernel is not
where you differentiate your products.”


       Brian Swetland, LWN, March 2011

                                                          20
8. Embedded Android? Why?
●   Feature set
●   User interface
●   API
●   Developer community
●   App ecosystem
●   Built on Linux
●   Very strong SoC vendor support
●   Permissive licensing
●   Examples:
    ●   Consumer electronics
    ●   Medical
    ●
        Defence
    ●   Space
                                     21
9. Android's Challenges
●   Documentation / Information
●   Stack Limitations
●   Stack Customization
●   Boot time
●   Legacy Integration
●   Development Hardware
●   AOSP tree
●   Build Times
●   Headless Use
●   Dependency on Google
                                  22
9.1. Documentation / Information
●   Official doc for app dev is great
●   Official doc for platform dev is practically non-existent
●   A few official forums:
    ●   android-building
    ●   android-platform
    ●   android-porting
●   Conference talks / presentations
●   Scattered documentation all over the web
●   Upcoming book (disclaimer applies):

                                                  23
9.2. Stack Limitations
●   Key functionality not supported by default:
    ●   Ethernet
    ●   AM/FM radio
    ●   Real-time
●   Supported functionality doesn't expose everything:
    ●   BlueZ
    ●   USB
    ●   wpa_supplicant
●   Bionic isn't a full glibc replacement:
    ●   No SystemV IPC
    ●   No locales
    ●   etc.
●   Stack is very deep and can be difficult to modify
                                                         24
9.3. Stack Customization
●   Lots of default packages
●   Modularity wasn't really part of the design
    ●   No “make menuconfig”
●   Can't easily select/change:
    ●   Which packages to include
    ●   Which system services are running
    ●   Packages' features
●   Ex:
    ●   Can relatively easily replace default home screen
    ●   Modifying status bar requires digging in code
                                                        25
9.4. Boot time
●   Very lengthy boot process
    ●   Bootloader
    ●   Kernel
    ●   Init
    ●   Zygote
    ●   System services
    ●   DEX optimization
    ●   Key apps
●   Unlikely to be able to speed this through trimming ...
●   Try:
    ●   Suspend to flash
    ●   Checkpointing
                                                        26
9.5. Legacy Integration
●   What if I ... ?:
    ●   have been using my custom rootfs forever
    ●   really need glibc
    ●   have a huge stack based on “legacy Linux”
    ●   don't want to deal with AOSP's build system
    ●   want BusyBox
    ●   want to unify with a std Linux desktop
    ●   need things the AOSP doesn't provide
    ●   have a ton of Linux drivers and want those to be used by Android
    ●   ...
●   Know this: filesystem integration is trivial:
    ●   Change build system to copy your custom rootfs
    ●   Change init scripts to start you own daemons
    ●   Use sockets to communicate
●   Know this too: std Linux desktop integration is NOT
                                                                           27
28
29
9.6. Development Hardware
●   Can I use a standard phone?
    ●   Not really
    ●   Even if you could – some things can only be done in the platform
●   Which board is best to evaluate Android?
    ●   BeagleBone / BeagleBoard
    ●   PandaBoard
    ●   OrigenBoard
    ●   iMX
    ●   DragonBoard
    ●   AM335x Start Kit
●   Still:
    ●   Nothing that has a phone/tablet form-factor + is entirely open
                                                                30
9.7. AOSP tree
●   Which tree?
    ●   Google's
    ●   Linaro's
    ●   TI's
    ●   Freescale's
    ●   Qualcomm's
    ●   etc.
●   ... which kernel ... ?

                                       31
9.8. Build Times
●   Horrible
●   On quad-core i7 w/ 8GB RAM:
    ●   GB = 20min
    ●   ICS = 55min
    ●   JB = 75min
●   Even Google's own guys are at around 30min
    for JB.
●   This is a big, unresolved pain

                                      32
9.9. Headless Use




                 +                     =


“And then GNU came back for revenge ...” -- Tarantino's sequel
                                               33
9.9.1. Why?
●   Took me a long time to wrap my head around
    ●   “Why don't you just use embedded Linux?”



●   What's “Embedded Linux” anyway?

●   NEW: Nexus Q


                                             34
9.9.2. Possibilities
●   No Java:
    ●   TinyAndroid:
         $ BUILD_TINY_ANDROID=true make ­j4
    ●   AOSP w/ custom products .mk file
●   The full-blown stack without:
    ●   SurfaceFlinger
    ●   WindowManager
    ●   WallpaperService
    ●   InputMethodManager
                                           35
9.9.3. Tiny Android
●   3MB filesystem
●   Minimal root fs
●   init
●   toolbox + shell
●   adb
●   bionic + utility libs
●   No “system/framework/”
●   No “system/app”
                                     36
37
9.9.4. AOSP w/ custom product .mk
●   Have a look at:
    ●     build/target/product/*.mk
●   Create your own device under “/device” and
    have fun
●   Disable zygote at startup
●   Remove all apks
●   ...


                                       38
9.9.5. Full stack
●   Disable:
    ●   SurfaceFlinger
    ●   WindowManager
    ●   WallpaperService
    ●   InputMethodManager
    ●   SystemUI
●   Don't let SurfaceFlinger Client try to open binder to SurfaceFlinger
●   Feed bogus values back from SurfaceFlinger Client
●   Disable qemud (emulator artefact)
●   Tweak internals by disabling key calls:
    ●   In ActivityStack.java:
        –   startHomeActivityLocked()
        –   setAppStartingWindow()
    ●   wm.detectSafeMode()
    ●   wm.systemReady()
    ●   wm.reclaimSuraceMemoryLocked()

                                                                           39
40
9.10. Dependency on Google
●   Google is the master of Android
●   Google's business prerogatives may not be yours
●   Most new features come from Google
●   Upstreaming is tough/lenghthy
●   What if Google stops developing Android?

●   Still, and this is important: they like to see Android
    used in embedded systems.

                                                41
10. Where do we go from here?
●   Trends don't seem to be slowing down
●   Interesting:
    ●   Nexus Q - headless from Google
        –   i.e. Google moving to “true” embedded?
    ●   Ubuntu Tablet - SurfaceFlinger, not X nor Wayland
        –   i.e. Std Linux moving to use Android parts?
●   We're very much in uncharted waters



                                                          42
Thank you ...



karim.yaghmour@opersys.com




                         43

Weitere ähnliche Inhalte

Andere mochten auch

Android gradle-build-system-overview
Android gradle-build-system-overviewAndroid gradle-build-system-overview
Android gradle-build-system-overviewKevin He
 
Carnegie Library Lab case study - Digital Toybox
Carnegie Library Lab case study - Digital ToyboxCarnegie Library Lab case study - Digital Toybox
Carnegie Library Lab case study - Digital ToyboxCILIPScotland
 
The State Machine Compiler
The State Machine CompilerThe State Machine Compiler
The State Machine CompilerFrançois Perrad
 
Android SharePoint
Android SharePointAndroid SharePoint
Android SharePointBenCox35
 
Perl on embedded Linux with Buildroot‎
Perl on embedded Linux with Buildroot‎Perl on embedded Linux with Buildroot‎
Perl on embedded Linux with Buildroot‎François Perrad
 
The happy path to Android development
The happy path to Android developmentThe happy path to Android development
The happy path to Android developmentAndré Jonas
 
Qi -- Lightweight Boot Loader Applied in Mobile and Embedded Devices
Qi -- Lightweight Boot Loader Applied in Mobile and Embedded DevicesQi -- Lightweight Boot Loader Applied in Mobile and Embedded Devices
Qi -- Lightweight Boot Loader Applied in Mobile and Embedded DevicesNational Cheng Kung University
 
Understanding Android Build Variants
Understanding Android Build VariantsUnderstanding Android Build Variants
Understanding Android Build Variantsdonnfelker
 
Embedded Linux Multimedia
Embedded Linux MultimediaEmbedded Linux Multimedia
Embedded Linux MultimediaCaglar Dursun
 
Yocto project and open embedded training
Yocto project and open embedded trainingYocto project and open embedded training
Yocto project and open embedded trainingH Ming
 
Why you should use the Yocto Project
Why you should use the Yocto ProjectWhy you should use the Yocto Project
Why you should use the Yocto Projectrossburton
 
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...peknap
 

Andere mochten auch (20)

Haflah khotmil quran
Haflah khotmil quranHaflah khotmil quran
Haflah khotmil quran
 
Android gradle-build-system-overview
Android gradle-build-system-overviewAndroid gradle-build-system-overview
Android gradle-build-system-overview
 
Carnegie Library Lab case study - Digital Toybox
Carnegie Library Lab case study - Digital ToyboxCarnegie Library Lab case study - Digital Toybox
Carnegie Library Lab case study - Digital Toybox
 
The State Machine Compiler
The State Machine CompilerThe State Machine Compiler
The State Machine Compiler
 
Android SharePoint
Android SharePointAndroid SharePoint
Android SharePoint
 
Buildsystem.mk
Buildsystem.mkBuildsystem.mk
Buildsystem.mk
 
Perl on embedded Linux with Buildroot‎
Perl on embedded Linux with Buildroot‎Perl on embedded Linux with Buildroot‎
Perl on embedded Linux with Buildroot‎
 
The happy path to Android development
The happy path to Android developmentThe happy path to Android development
The happy path to Android development
 
Building aosp
Building aospBuilding aosp
Building aosp
 
Qi -- Lightweight Boot Loader Applied in Mobile and Embedded Devices
Qi -- Lightweight Boot Loader Applied in Mobile and Embedded DevicesQi -- Lightweight Boot Loader Applied in Mobile and Embedded Devices
Qi -- Lightweight Boot Loader Applied in Mobile and Embedded Devices
 
Understanding Android Build Variants
Understanding Android Build VariantsUnderstanding Android Build Variants
Understanding Android Build Variants
 
Embedded Linux Multimedia
Embedded Linux MultimediaEmbedded Linux Multimedia
Embedded Linux Multimedia
 
Yocto project and open embedded training
Yocto project and open embedded trainingYocto project and open embedded training
Yocto project and open embedded training
 
Why you should use the Yocto Project
Why you should use the Yocto ProjectWhy you should use the Yocto Project
Why you should use the Yocto Project
 
olibc: Another C Library optimized for Embedded Linux
olibc: Another C Library optimized for Embedded Linuxolibc: Another C Library optimized for Embedded Linux
olibc: Another C Library optimized for Embedded Linux
 
Implementing Lightweight Networking
Implementing Lightweight NetworkingImplementing Lightweight Networking
Implementing Lightweight Networking
 
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
 
Linux systems - Getting started with setting up and embedded platform
Linux systems - Getting started with setting up and embedded platformLinux systems - Getting started with setting up and embedded platform
Linux systems - Getting started with setting up and embedded platform
 
Board Bringup
Board BringupBoard Bringup
Board Bringup
 
Embedded C - Optimization techniques
Embedded C - Optimization techniquesEmbedded C - Optimization techniques
Embedded C - Optimization techniques
 

Ähnlich wie Is Android the New Embedded Embedded Linux? at Embedded World 2013

Is Android the New Embedded Linux? at AnDevCon IV
Is Android the New Embedded Linux? at AnDevCon IVIs Android the New Embedded Linux? at AnDevCon IV
Is Android the New Embedded Linux? at AnDevCon IVOpersys inc.
 
Is Android the New Embedded Linux? at AnDevCon VI
Is Android the New Embedded Linux? at AnDevCon VIIs Android the New Embedded Linux? at AnDevCon VI
Is Android the New Embedded Linux? at AnDevCon VIOpersys inc.
 
Is Android the New Embedded Linux? at AnDevCon V
Is Android the New Embedded Linux? at AnDevCon VIs Android the New Embedded Linux? at AnDevCon V
Is Android the New Embedded Linux? at AnDevCon VOpersys inc.
 
Is Android the New King of Embedded OSes at Embedded World 2014
Is Android the New King of Embedded OSes at Embedded World 2014Is Android the New King of Embedded OSes at Embedded World 2014
Is Android the New King of Embedded OSes at Embedded World 2014Opersys inc.
 
Embedded Android Workshop / ELC 2013
Embedded Android Workshop / ELC 2013Embedded Android Workshop / ELC 2013
Embedded Android Workshop / ELC 2013Opersys inc.
 
Embedded Android Workshop at ELC Europe
Embedded Android Workshop at ELC EuropeEmbedded Android Workshop at ELC Europe
Embedded Android Workshop at ELC EuropeOpersys inc.
 
Embedded Android Workshop at Embedded World Conference 2013
Embedded Android Workshop at Embedded World Conference 2013Embedded Android Workshop at Embedded World Conference 2013
Embedded Android Workshop at Embedded World Conference 2013Opersys inc.
 
Android Jumpstart ESC SV 2012 Part I
Android Jumpstart ESC SV 2012 Part IAndroid Jumpstart ESC SV 2012 Part I
Android Jumpstart ESC SV 2012 Part IOpersys inc.
 
Embedded Android Workshop at Embedded Linux Conference Europe 2011
Embedded Android Workshop at Embedded Linux Conference Europe 2011Embedded Android Workshop at Embedded Linux Conference Europe 2011
Embedded Android Workshop at Embedded Linux Conference Europe 2011Opersys inc.
 
Embedded Android Workshop at Android Open 2011
Embedded Android Workshop at Android Open 2011Embedded Android Workshop at Android Open 2011
Embedded Android Workshop at Android Open 2011Opersys inc.
 
Embedded Android Workshop
Embedded Android WorkshopEmbedded Android Workshop
Embedded Android WorkshopOpersys inc.
 
Embedded Android Workshop at AnDevConII
Embedded Android Workshop at AnDevConIIEmbedded Android Workshop at AnDevConII
Embedded Android Workshop at AnDevConIIOpersys inc.
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowEmbedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowKarim Yaghmour
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowEmbedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowOpersys inc.
 
Android Hacks, Variants, Tricks and Resources ESC SV 2012
Android Hacks, Variants, Tricks and Resources ESC SV 2012Android Hacks, Variants, Tricks and Resources ESC SV 2012
Android Hacks, Variants, Tricks and Resources ESC SV 2012Opersys inc.
 
Android jumpstart at ESC Boston 2011
Android jumpstart at ESC Boston 2011Android jumpstart at ESC Boston 2011
Android jumpstart at ESC Boston 2011Opersys inc.
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowEmbedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowOpersys inc.
 
Embedded Android Workshop with Lollipop
Embedded Android Workshop with LollipopEmbedded Android Workshop with Lollipop
Embedded Android Workshop with LollipopOpersys inc.
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowEmbedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowOpersys inc.
 
Embedded Android Workshop part I ESC SV 2012
Embedded Android Workshop part I ESC SV 2012Embedded Android Workshop part I ESC SV 2012
Embedded Android Workshop part I ESC SV 2012Opersys inc.
 

Ähnlich wie Is Android the New Embedded Embedded Linux? at Embedded World 2013 (20)

Is Android the New Embedded Linux? at AnDevCon IV
Is Android the New Embedded Linux? at AnDevCon IVIs Android the New Embedded Linux? at AnDevCon IV
Is Android the New Embedded Linux? at AnDevCon IV
 
Is Android the New Embedded Linux? at AnDevCon VI
Is Android the New Embedded Linux? at AnDevCon VIIs Android the New Embedded Linux? at AnDevCon VI
Is Android the New Embedded Linux? at AnDevCon VI
 
Is Android the New Embedded Linux? at AnDevCon V
Is Android the New Embedded Linux? at AnDevCon VIs Android the New Embedded Linux? at AnDevCon V
Is Android the New Embedded Linux? at AnDevCon V
 
Is Android the New King of Embedded OSes at Embedded World 2014
Is Android the New King of Embedded OSes at Embedded World 2014Is Android the New King of Embedded OSes at Embedded World 2014
Is Android the New King of Embedded OSes at Embedded World 2014
 
Embedded Android Workshop / ELC 2013
Embedded Android Workshop / ELC 2013Embedded Android Workshop / ELC 2013
Embedded Android Workshop / ELC 2013
 
Embedded Android Workshop at ELC Europe
Embedded Android Workshop at ELC EuropeEmbedded Android Workshop at ELC Europe
Embedded Android Workshop at ELC Europe
 
Embedded Android Workshop at Embedded World Conference 2013
Embedded Android Workshop at Embedded World Conference 2013Embedded Android Workshop at Embedded World Conference 2013
Embedded Android Workshop at Embedded World Conference 2013
 
Android Jumpstart ESC SV 2012 Part I
Android Jumpstart ESC SV 2012 Part IAndroid Jumpstart ESC SV 2012 Part I
Android Jumpstart ESC SV 2012 Part I
 
Embedded Android Workshop at Embedded Linux Conference Europe 2011
Embedded Android Workshop at Embedded Linux Conference Europe 2011Embedded Android Workshop at Embedded Linux Conference Europe 2011
Embedded Android Workshop at Embedded Linux Conference Europe 2011
 
Embedded Android Workshop at Android Open 2011
Embedded Android Workshop at Android Open 2011Embedded Android Workshop at Android Open 2011
Embedded Android Workshop at Android Open 2011
 
Embedded Android Workshop
Embedded Android WorkshopEmbedded Android Workshop
Embedded Android Workshop
 
Embedded Android Workshop at AnDevConII
Embedded Android Workshop at AnDevConIIEmbedded Android Workshop at AnDevConII
Embedded Android Workshop at AnDevConII
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowEmbedded Android Workshop with Marshmallow
Embedded Android Workshop with Marshmallow
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowEmbedded Android Workshop with Marshmallow
Embedded Android Workshop with Marshmallow
 
Android Hacks, Variants, Tricks and Resources ESC SV 2012
Android Hacks, Variants, Tricks and Resources ESC SV 2012Android Hacks, Variants, Tricks and Resources ESC SV 2012
Android Hacks, Variants, Tricks and Resources ESC SV 2012
 
Android jumpstart at ESC Boston 2011
Android jumpstart at ESC Boston 2011Android jumpstart at ESC Boston 2011
Android jumpstart at ESC Boston 2011
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowEmbedded Android Workshop with Marshmallow
Embedded Android Workshop with Marshmallow
 
Embedded Android Workshop with Lollipop
Embedded Android Workshop with LollipopEmbedded Android Workshop with Lollipop
Embedded Android Workshop with Lollipop
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with MarshmallowEmbedded Android Workshop with Marshmallow
Embedded Android Workshop with Marshmallow
 
Embedded Android Workshop part I ESC SV 2012
Embedded Android Workshop part I ESC SV 2012Embedded Android Workshop part I ESC SV 2012
Embedded Android Workshop part I ESC SV 2012
 

Mehr von Opersys inc.

Android Automotive
Android AutomotiveAndroid Automotive
Android AutomotiveOpersys inc.
 
Android 10 Internals Update
Android 10 Internals UpdateAndroid 10 Internals Update
Android 10 Internals UpdateOpersys inc.
 
Android Security Internals
Android Security InternalsAndroid Security Internals
Android Security InternalsOpersys inc.
 
Embedded Android Workshop with Pie
Embedded Android Workshop with PieEmbedded Android Workshop with Pie
Embedded Android Workshop with PieOpersys inc.
 
Android's HIDL: Treble in the HAL
Android's HIDL: Treble in the HALAndroid's HIDL: Treble in the HAL
Android's HIDL: Treble in the HALOpersys inc.
 
Android Treble: Blessing or Trouble?
Android Treble: Blessing or Trouble?Android Treble: Blessing or Trouble?
Android Treble: Blessing or Trouble?Opersys inc.
 
Embedded Android Workshop with Oreo
Embedded Android Workshop with OreoEmbedded Android Workshop with Oreo
Embedded Android Workshop with OreoOpersys inc.
 
Scheduling in Android
Scheduling in AndroidScheduling in Android
Scheduling in AndroidOpersys inc.
 
Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things InternalsOpersys inc.
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Embedded Android Workshop with Nougat
Embedded Android Workshop with NougatEmbedded Android Workshop with Nougat
Embedded Android Workshop with NougatOpersys inc.
 
Embedded Android Workshop with Nougat
Embedded Android Workshop with NougatEmbedded Android Workshop with Nougat
Embedded Android Workshop with NougatOpersys inc.
 
Android Things: Android for IoT
Android Things: Android for IoTAndroid Things: Android for IoT
Android Things: Android for IoTOpersys inc.
 
Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things InternalsOpersys inc.
 
Scheduling in Android
Scheduling in AndroidScheduling in Android
Scheduling in AndroidOpersys inc.
 
Brillo / Weave Internals
Brillo / Weave InternalsBrillo / Weave Internals
Brillo / Weave InternalsOpersys inc.
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Memory Management in Android
Memory Management in AndroidMemory Management in Android
Memory Management in AndroidOpersys inc.
 
Embedded Android Workshop with Nougat
Embedded Android Workshop with NougatEmbedded Android Workshop with Nougat
Embedded Android Workshop with NougatOpersys inc.
 
Brillo / Weave Internals
Brillo / Weave InternalsBrillo / Weave Internals
Brillo / Weave InternalsOpersys inc.
 

Mehr von Opersys inc. (20)

Android Automotive
Android AutomotiveAndroid Automotive
Android Automotive
 
Android 10 Internals Update
Android 10 Internals UpdateAndroid 10 Internals Update
Android 10 Internals Update
 
Android Security Internals
Android Security InternalsAndroid Security Internals
Android Security Internals
 
Embedded Android Workshop with Pie
Embedded Android Workshop with PieEmbedded Android Workshop with Pie
Embedded Android Workshop with Pie
 
Android's HIDL: Treble in the HAL
Android's HIDL: Treble in the HALAndroid's HIDL: Treble in the HAL
Android's HIDL: Treble in the HAL
 
Android Treble: Blessing or Trouble?
Android Treble: Blessing or Trouble?Android Treble: Blessing or Trouble?
Android Treble: Blessing or Trouble?
 
Embedded Android Workshop with Oreo
Embedded Android Workshop with OreoEmbedded Android Workshop with Oreo
Embedded Android Workshop with Oreo
 
Scheduling in Android
Scheduling in AndroidScheduling in Android
Scheduling in Android
 
Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things Internals
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and Development
 
Embedded Android Workshop with Nougat
Embedded Android Workshop with NougatEmbedded Android Workshop with Nougat
Embedded Android Workshop with Nougat
 
Embedded Android Workshop with Nougat
Embedded Android Workshop with NougatEmbedded Android Workshop with Nougat
Embedded Android Workshop with Nougat
 
Android Things: Android for IoT
Android Things: Android for IoTAndroid Things: Android for IoT
Android Things: Android for IoT
 
Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things Internals
 
Scheduling in Android
Scheduling in AndroidScheduling in Android
Scheduling in Android
 
Brillo / Weave Internals
Brillo / Weave InternalsBrillo / Weave Internals
Brillo / Weave Internals
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and Development
 
Memory Management in Android
Memory Management in AndroidMemory Management in Android
Memory Management in Android
 
Embedded Android Workshop with Nougat
Embedded Android Workshop with NougatEmbedded Android Workshop with Nougat
Embedded Android Workshop with Nougat
 
Brillo / Weave Internals
Brillo / Weave InternalsBrillo / Weave Internals
Brillo / Weave Internals
 

Kürzlich hochgeladen

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Is Android the New Embedded Embedded Linux? at Embedded World 2013

  • 1. Is Android the new Embedded Linux? Embedded World Conference 2013 Karim Yaghmour karim.yaghmour@opersys.com 1
  • 2. These slides are made available to you under a Creative Commons Share- Delivered and/or customized by Alike 3.0 license. The full terms of this license are here: https://creativecommons.org/licenses/by-sa/3.0/ Attribution requirements and misc., PLEASE READ: ● This slide must remain as-is in this specific location (slide #2), everything else you are free to change; including the logo :-) ● Use of figures in other documents must feature the below “Originals at” URL immediately under that figure and the below copyright notice where appropriate. ● You are free to fill in the “Delivered and/or customized by” space on the right as you see fit. ● You are FORBIDEN from using the default “About” slide as-is or any of its contents. ● You are FORBIDEN from using any content provided by 3rd parties without the EXPLICIT consent from those parties. (C) Copyright 2013, Opersys inc. These slides created by: Karim Yaghmour Originals at: www.opersys.com/community/docs 2
  • 3. About ● Author of: ● Introduced Linux Trace Toolkit in 1999 ● Originated Adeos and relayfs (kernel/relay.c) ● Training, Custom Dev, Consulting, ... 3
  • 4. 1. Why are we asking this question? ● Android is based on Linux ● Android is “embedded” ● Android is extremely popular ● Android enjoys good support from SoC vendors Mostly - The trends are there 4
  • 5. 1.1. Why did Embedded Linux rise? ● EETimes 2005 survey ... http://www.embedded.com/electronics-blogs/- include/4025539/Embedded-systems-survey-Operating- systems-up-for-grabs ● EETImes 2012 survey http://www.embedded.com/design/embedded/4372666/Shiftin g-sands--Trends-in-embedded-systems-design 5
  • 6. 1.2. Current consumer trends ● Rise of touch-based devices ● Race with Apple on features / price ● Mobile devices outselling PCs since 2010 ● Increasingly inexpensive low-end touch-based devices 6
  • 7. Source: “From Altair to iPad: 35 years of personal computer market share”, Jeremy Reimer, Ars Technica, August 2012 http://arstechnica.com/business/2012/08/from-altair-to-ipad-35-years-of-personal-computer-market-share/ This material is (C) 2012, Ars Technica and is NOT CC-BY-SA. 7
  • 8. Source: “From Altair to iPad: 35 years of personal computer market share”, Jeremy Reimer, Ars Technica, August 2012 http://arstechnica.com/business/2012/08/from-altair-to-ipad-35-years-of-personal-computer-market-share/ This material is (C) 2012, Ars Technica and is NOT CC-BY-SA. 8
  • 9. Source: “From Altair to iPad: 35 years of personal computer market share”, Jeremy Reimer, Ars Technica, August 2012 http://arstechnica.com/business/2012/08/from-altair-to-ipad-35-years-of-personal-computer-market-share/ This material is (C) 2012, Ars Technica and is NOT CC-BY-SA. 9
  • 10. 1.3. Current embedded trends ● Rise of cheap 32-bit CPUs ● Rise of inexpensive storage ● Rise of inexpensive eval boards ● BeagleBoards ● BeagleBone ● RaspberryPi ● For all practical purposes, this hardware is disposable ● Arduino / Maker / DIY trend ● UBM 2012 Embedded Market Study 10
  • 11. 2. Embedded Linux, a look back Projects Conferences: Linux kernel 1991 ... OLS 1999 RTLinux 1996 V. Yodaiken / M. Barabanov CELF ELC 2004 uClinux / uCDimm 1998 J. Dionne / Motorola Dragonball ABS 2011 BusyBox 1999 B. Perens ('96) / Debian, then E. Anderson RTAI 1999 P. Mantegazza Books Buildroot 1999 E. Anderson Craig Hollabaugh U-Boot 1999 W. Denk Karim Yaghmour uClibc 2000 E. Anderson Chris Hallinan I-pipe / Adeos 2001 P. Gerum (K. Yaghmour) Preemption patches 2005 S.-Thorsten Dietrich / I. Molnar / T. Gleixner eglibc 2009 Debian Yocto 2010 LF / Intel Companies: Lineo Attempts at Linux mobile GUIs MontaVista Maemo / MeeGo TimeSys Matchbox Qtopia 11
  • 12. 3. Android, whereth comest thou? ● 2002: ● Sergey Brin and Larry Page started using Sidekick smartphone ● Sidekick one of 1st smartphones integrating web, IM, mail, etc. ● Sidekick was made by Danger inc., co-founded by Andy Rubin (CEO) ● Brin/Page met Rubin at Stanford talk he gave on Sidekick’s development ● Google was default search engine on Sidekick ● 2004: ● Despite cult following, Sidekick wasn’t making $ ● Danger inc. board decided to replace Rubin ● Rubin left. Got seed $. Started Android inc. Started looking for VCs. ● Goal: Open mobile hand-set platform ● 2005 - July: ● Got bought by Google for undisclosed sum :) ● 2007 - November: ● Open Handset Alliance announced along with Android 12
  • 13. 4. What's Embedded Linux? 13
  • 14. 4. What's Embedded Linux? ● A set of ad-hoc methods to package the Linux kernel with a (minimal) filesystem. ● FS content “to be determined” case-by-case ● APIs are specific to each device/build ● “Core software”: ● BusyBox ● U-Boot ● GNU Toolchain ● Your flavor of: ● glibc or uClibc or eglibc ● yocto or buildroot or eldk or ltib or ptxdist or ... ● No serious UX framework 14
  • 15. 15
  • 17. 5. What's Android? ● ... apart from its increasingly well known UX ... ● Fully-integrated Eclipse IDE ● SDK/NDK ● ADB ● Fastboot ● Published, well-known, and very rich APIs ● A large and growing developer community ● And still we can use the usual suspects: ● GNU toolchain, BusyBox, u- boot, glibc, ... An actual standardized dev. env. across all product lines 17
  • 18. 18
  • 19. 6. Licensing differences ● Kernel: ● GNU General Public License (a.k.a. GPL) ● AOSP: ● Mostly Apache License 2.0 (a.k.a. ASL) ● Having GPL-free user-space was a design goal ● A few GPL and LGPL parts: mainly BlueZ and DBUS ● Some key components in BSD: Bionic and Toolbox ● “external/” directory contains a mixed bag of licenses, incl. lots of GPL ● Android Robot: ● Very much like the Linux penguin ● Android name: ● As descriptor only: “for Android” ● Use for labelling device requires talking to Google 19
  • 20. 7. Why did Android use Linux? “The Linux vs BSD decision was made before Google acquired Android. While starting with NetBSD's kernel was tempting, the Linux kernel wasn't that much larger (one of the concerns), had quite a lot of support from silicon vendors and OEMs, and a larger developer community (easier to find folks with Linux kernel expertise). The bright line between the kernel and userspace drawn by the statement at the top of the Linux COPYING file was certainly helpful in making this decision. Explaining that the kernel is GPLv2 and userspace is Apache2/BSD/MIT is something easily understood by OEMs, and most OEMs don't have a problem with the general idea that the kernel is not where you differentiate your products.” Brian Swetland, LWN, March 2011 20
  • 21. 8. Embedded Android? Why? ● Feature set ● User interface ● API ● Developer community ● App ecosystem ● Built on Linux ● Very strong SoC vendor support ● Permissive licensing ● Examples: ● Consumer electronics ● Medical ● Defence ● Space 21
  • 22. 9. Android's Challenges ● Documentation / Information ● Stack Limitations ● Stack Customization ● Boot time ● Legacy Integration ● Development Hardware ● AOSP tree ● Build Times ● Headless Use ● Dependency on Google 22
  • 23. 9.1. Documentation / Information ● Official doc for app dev is great ● Official doc for platform dev is practically non-existent ● A few official forums: ● android-building ● android-platform ● android-porting ● Conference talks / presentations ● Scattered documentation all over the web ● Upcoming book (disclaimer applies): 23
  • 24. 9.2. Stack Limitations ● Key functionality not supported by default: ● Ethernet ● AM/FM radio ● Real-time ● Supported functionality doesn't expose everything: ● BlueZ ● USB ● wpa_supplicant ● Bionic isn't a full glibc replacement: ● No SystemV IPC ● No locales ● etc. ● Stack is very deep and can be difficult to modify 24
  • 25. 9.3. Stack Customization ● Lots of default packages ● Modularity wasn't really part of the design ● No “make menuconfig” ● Can't easily select/change: ● Which packages to include ● Which system services are running ● Packages' features ● Ex: ● Can relatively easily replace default home screen ● Modifying status bar requires digging in code 25
  • 26. 9.4. Boot time ● Very lengthy boot process ● Bootloader ● Kernel ● Init ● Zygote ● System services ● DEX optimization ● Key apps ● Unlikely to be able to speed this through trimming ... ● Try: ● Suspend to flash ● Checkpointing 26
  • 27. 9.5. Legacy Integration ● What if I ... ?: ● have been using my custom rootfs forever ● really need glibc ● have a huge stack based on “legacy Linux” ● don't want to deal with AOSP's build system ● want BusyBox ● want to unify with a std Linux desktop ● need things the AOSP doesn't provide ● have a ton of Linux drivers and want those to be used by Android ● ... ● Know this: filesystem integration is trivial: ● Change build system to copy your custom rootfs ● Change init scripts to start you own daemons ● Use sockets to communicate ● Know this too: std Linux desktop integration is NOT 27
  • 28. 28
  • 29. 29
  • 30. 9.6. Development Hardware ● Can I use a standard phone? ● Not really ● Even if you could – some things can only be done in the platform ● Which board is best to evaluate Android? ● BeagleBone / BeagleBoard ● PandaBoard ● OrigenBoard ● iMX ● DragonBoard ● AM335x Start Kit ● Still: ● Nothing that has a phone/tablet form-factor + is entirely open 30
  • 31. 9.7. AOSP tree ● Which tree? ● Google's ● Linaro's ● TI's ● Freescale's ● Qualcomm's ● etc. ● ... which kernel ... ? 31
  • 32. 9.8. Build Times ● Horrible ● On quad-core i7 w/ 8GB RAM: ● GB = 20min ● ICS = 55min ● JB = 75min ● Even Google's own guys are at around 30min for JB. ● This is a big, unresolved pain 32
  • 33. 9.9. Headless Use + = “And then GNU came back for revenge ...” -- Tarantino's sequel 33
  • 34. 9.9.1. Why? ● Took me a long time to wrap my head around ● “Why don't you just use embedded Linux?” ● What's “Embedded Linux” anyway? ● NEW: Nexus Q 34
  • 35. 9.9.2. Possibilities ● No Java: ● TinyAndroid: $ BUILD_TINY_ANDROID=true make ­j4 ● AOSP w/ custom products .mk file ● The full-blown stack without: ● SurfaceFlinger ● WindowManager ● WallpaperService ● InputMethodManager 35
  • 36. 9.9.3. Tiny Android ● 3MB filesystem ● Minimal root fs ● init ● toolbox + shell ● adb ● bionic + utility libs ● No “system/framework/” ● No “system/app” 36
  • 37. 37
  • 38. 9.9.4. AOSP w/ custom product .mk ● Have a look at: ● build/target/product/*.mk ● Create your own device under “/device” and have fun ● Disable zygote at startup ● Remove all apks ● ... 38
  • 39. 9.9.5. Full stack ● Disable: ● SurfaceFlinger ● WindowManager ● WallpaperService ● InputMethodManager ● SystemUI ● Don't let SurfaceFlinger Client try to open binder to SurfaceFlinger ● Feed bogus values back from SurfaceFlinger Client ● Disable qemud (emulator artefact) ● Tweak internals by disabling key calls: ● In ActivityStack.java: – startHomeActivityLocked() – setAppStartingWindow() ● wm.detectSafeMode() ● wm.systemReady() ● wm.reclaimSuraceMemoryLocked() 39
  • 40. 40
  • 41. 9.10. Dependency on Google ● Google is the master of Android ● Google's business prerogatives may not be yours ● Most new features come from Google ● Upstreaming is tough/lenghthy ● What if Google stops developing Android? ● Still, and this is important: they like to see Android used in embedded systems. 41
  • 42. 10. Where do we go from here? ● Trends don't seem to be slowing down ● Interesting: ● Nexus Q - headless from Google – i.e. Google moving to “true” embedded? ● Ubuntu Tablet - SurfaceFlinger, not X nor Wayland – i.e. Std Linux moving to use Android parts? ● We're very much in uncharted waters 42