Bootlin Quarterly – 2012 Q2

This is the second Bootlin newsletter for 2012. We are happy to share with you the latest news about our projects, training courses and contributions.

New “Android system development” training

As announced in our previous newsletter, we have created a new Android system development training course.

This course targets engineers who need to develop embedded systems with Google Android. In four days, through theory and practical labs, the course makes you familiar with compiling and booting Android, with adapting Android to support a new embedded board (assuming that it is already supported by the Linux kernel), and with building a real system through accessing specific hardware, customizing the filesystem and using debugging techniques. More details and the complete agenda.

The first public session of this training will take place on June 11-14 2012 in Toulouse, France (session taught in English). There are still seats available for this session.

We will start giving on-site sessions of this course in July 2012. Do not hesitate to contact us if you want to organize on-site sessions.

Opening our training materials source code

Since Bootlin’screation in 2004, we have been releasing our training materials under the Creative Commons Attribution Share-Alike license, a free license that allows anyone to share, improve and use our embedded Linux and Linux kernel training materials. Since that time, our training materials were available as PDF files, and as OpenDocument files for the source code, but we were only updating their online version from time to time.

Now, we are proud to announce that our training materials are being converted to the LaTeX language, and their latest version is available at any time from our public Git repository.

For the moment, our embedded Linux slides have been published (about 500 slides) in this Git repository, as well as the instructions for the practical sessions of our embedded Linux and Linux kernel courses. In the near future, we will also publish in LaTeX the slides of our Linux kernel training (which remain available under PDF and OpenDocument formats) as well as the materials of our new “Android system development” course.

The creation of this public Git repository is a strong sign of our commitment for open training materials.

The LaTeX format and the public Git repository now make it easy for everyone to follow updates on our materials, to keep one’s knowledge up to date, and even to teach a training session using our materials (commercial use of our materials is welcome, as it helps to spread knowledge about Free and Open Source Software for embedded systems).

Upcoming public training sessions

Our next public training sessions dates and locations are:

  • Embedded Linux kernel and driver development
    June, 4-8 2012
    Toulouse, France
    Session given in French
    Details
  • Android system development
    June, 11-14 2012
    Toulouse, France
    Session given in English
  • Embedded Linux system development
    June, 18-22 2012
    Avignon, France
    Session given in French
    Details
  • Embedded Linux kernel and driver development
    July 2-6, 2012
    Avignon, France
    Session given in French
    Details
  • Embedded Linux kernel and driver development
    October, 8-12 2012
    Avignon, France
    Session given in English
    Details
  • Embedded Linux system development
    October, 15-19 2012
    Toulouse, France
    Session given in French
    Details
  • Embedded Linux system development
    December, 3-7 2012
    Avignon, France
    Session given in English
    Details
  • Embedded Linux system development
    February, 4-8 2013
    Lyon, France
    Session given in French
    Details

Projects

Since the beginning of the year, we have been involved in the following projects for various customers:

  • Boot time optimization and power management evaluation for a MIPS-based platform used in a payment terminal;
  • Filesystem size optimization, embedded Linux build system integration, Ethernet PHY driver development for an AT91 ARM platform used in satellite video processing;
  • Embedded Linux build system integration and generic embedded Linux debugging and support for an AT91 ARM platform used as a gateway between medical devices;
  • Starting in April, we will be working with a major ARM SoC vendor to help mainlining support for their latest SoC in the official Linux kernel sources;
  • Continued the creation of materials for our new “Android system development” course.
  • Continued our work on the Linux kernel driver for the Analog-to-Digital converters of the AT91 ARM SoC (see ‘Contributions’, below);
  • Continued our work on real-time Linux evaluation on AT91 ARM SoC (see ‘Contributions’, below.).

Career opportunities

Bootlin is looking for a kernel developer in the the French Riviera, to be hired with a permanent contract. The job is open to English speaking people who do not speak French, but are ready to settle in the area of Nice, and be hired through a French contract. See details.

Conferences and contributions

Embedded Linux Conference and Android Builders Summit

Three engineers of Bootlin attended the Embedded Linux Conference 2012 and Android Builders Summit 2012 in Redwood Shores, near San Francisco in California, on February. This strong participation of our engineers to technical conferences is a key factor to make sure we remain up to date on embedded Linux technologies and keep a close contact with the community.

During the conference, we have published daily reports about the various talks that we thought were interesting:

After the conference, we also posted videos of the talks:

Our scripts to encode videos to the royalty-free VP8 codec and add a title sequence to the videos are now available on on our public git server.

At this conference, our engineer Thomas Petazzoni has given a talk titled “Buildroot, a nice, simple and efficient embedded Linux build system”. Here are the slides and the video.

FOSDEM conference

Two of our engineers participated to the FOSDEM conference, a community-driven open-source conference, in early February.

Our engineer Maxime Ripard gave a talk on his work around the IIO kernel subsystem, which he used to write an ADC driver for the AT91 SoC. Here are the slides.

Our engineer Thomas Petazzoni gave a talk about “Using Qt for non-graphical applications”. Here are the slides.

AT91 Analog-to-Digital converter drivers

Details about the driver for the AT91 Analog-to-Digital converters driver written by Maxime Ripard from Bootlin have been published on the Atmel Linux4Sam wiki. This driver relies on the IIO framework, and we are in the process of getting this driver merged upstream. See the Atmel Linux4Sam wiki page.

Real-time Linux benchmarks

A report of extensive real-time benchmarks conducted by Gregory Clement from Bootlin on AT91 platforms has been published on the Atmel Linux4Sam Wiki. This report compares a vanilla Linux kernel, the PREEMPT-RT patches and the Xenomai co-kernel approach through timer-based and GPIO-based benchmarks. See the Atmel Linux4Sam wiki page.

Buildroot

Bootlin’sinvolvement in Buildroot is still strong:

  • Maxime Ripard and Thomas Petazzoni participated to the Buildroot Developer Day organized in Brussels before the FOSDEM conference. A report of this meeting, which gathered several other Buildroot developers, is available at the Buildroot mailing list archives.
  • Since the beginning of the year, Thomas Petazzoni has contributed 64 patches that have been merged: support for the LTT-ng Linux tracing solution, support to represent host utilities in the menuconfig, many updates and fixes to external toolchain support and many other fixes.
  • In the same time-frame, Maxime Ripard has contributed 13 patches that have been merged: support for systemd, improvements to the package infrastructure and various fixes.
  • Thomas Petazzoni has implemented a Web interface that publicly shows the result of our random configuration builds, available at http://autobuild.buildroot.org. The Buildroot community is doing random configuration builds 24/7 on three machines, with various configurations. This Web interface collects the build results and sends a summary every day on the Buildroot mailing-list. This has already allowed to fix many build issues, and will help to improve Buildroot’s quality in the future.

Linux kernel course

Participants to our Embedded Linux kernel and driver development course have also started contributing to the Linux kernel sources during the course itself. Here are the patches which have been merged so far:

During our git lab, instead of asking people to make dummy code changes, we ask them to make real improvements to the Linux sources, and send them for real to the right maintainers and mailing lists. This way, people get a better understanding of how they can interact with the Linux kernel developers to merge their changes and contributions.

See our slides and practical lab instructions for our git lectures and lab.

Blog posts

Bootlin has published several blog posts:

You can follow Bootlin’snews by reading our blog and by following our quick news on Twitter.

By the way, the right column of the Bootlin blog now lists the most popular posts and pages. This can help you to find useful content that you may have missed.

Bootlin remains available to help you in your embedded Linux projects, either through its development and support services or through its training sessions. Do not hesitate to contact us!

Gregory, Maria, Maxime, Michael and Thomas – Bootlin

Linux kernel engineer job in Nice

Penguin worksBootlin is looking for a embedded Linux and kernel engineer in the area of Nice in France (on the French Riviera). The contract will be home based, but will also involve working at customer locations in the same area, possibly for long periods of time.

A detailed job description is available on our careers page.

For this particular job opening, we absolutely need someone with prior experience with kernel and driver development, and contributions to the official Linux kernel sources will be a strong advantage. This is because a customer of ours is looking for an engineer to develop new drivers and port the Linux kernel to pre-silicon and silicon platforms.

Once we find a candidate with the expected skills and profile, and once the customer agrees to contract this person for this initial project, the engineer will be hired by Bootlin under a permanent contract, and will work on the customer site for at least 6 months.

Once the initial assignment is over, our engineer will continue to work on projects for other Bootlin customers, and will also give embedded Linux and kernel training sessions to customers throughout the world.

Note that this position is open to people who do not speak French, but are ready to settle in the French Riviera and to be hired through a French contract.

If you are interested in this position, see our job description for details about how to apply.

Report on extensive real-time Linux benchmarks on AT91

The real time page I wrote for Atmel was finally released on the Linux4Sam Atmel Wiki. The purpose of this page was to help new comers to use real time features with Atmel CPUs and to present the state of the real time support.

Here are some figures associated to this work:

  • On this page I present the results of more than 300 hours of benchmarks!
  • During the setup and the tuning tests ran for more than 600 hours.
  • Analysis and formatting took a few dozen hours of work.
  • The benchmarks have been run on 3 boards, 3 flavors of Linux (vanilla, PREEMPT-RT patches, Xenomai co-kernel approach), and 2 kinds of tests (timer-based and GPIO-based)
  • Experiment with Yocto

    I recently had the opportunity to use Yocto. I already practiced quite a lot with OpenEmbedded before. You can see Yocto as a project derived from OpenEmbedded even it is a bit more than that.

    In fact, Yocto is made of Poky (a build system based on OpenEmbedded), a few added build tools (swabber, pseudo, etc.), as well as a set of meta data allowing to create embedded distributions for a number of targets.

    The strength but also the weakness of OpenEmbedded is that it a very flexible build system. It can make production root filesystems, but also a complete distribution with its ready to use package repository, and this for multiple hardware platforms. It makes it a difficult system to get started and get efficient with. Even two years ago, the OpenEmbedded documentation contributed to making it difficult to get started. Indeed, OpenEmbedded did supply some documentation, but which only started to make sense once you start mastering it. This is quite a paradox for a piece of documentation. It lacked the elements allowing developers to understand its operation well.

    With Yocto, I was pleased to realize that substantial progress had been made on this side. The project comes with documentation that is much more exhaustive and above all much more accessible for beginners. Getting started with it is still not completely straightforward, but this time, this is rather because of the complexity and the rich features of the tool.

    In a few hours, I managed to develop a minimalistic BSP (Board Support Package) for a given board (in this case a AT91SAM9G20-EK). The concept of layer allows to have a configuration layer specific to a given piece of hardware. You can even support multiple hardware platforms at once and add specific packages. A layer is indeed just a set of packages and configurations (or configuration overrides). The BSP is just a layer specific to one or several pieces of hardware.

    As you can see, even to support a simple embedded board, there is already a number of concepts to deal with. There are also multiple ways of achieving the same result but which will be easier or more difficult to maintain. The concept of “BSP” for Yocto is therefore a kind of guideline to allow the Yocto community to have a common point of reference. I will try to illustrate the use of a BSP on the AT91SAMG20-EK board here and/or on my Google+ page.

    Another significant progress is optimizing build time for a “minimalistic” target, which went down from more than three hours to just over one hour now. It remains a long time for a very simple target.

    To build a filesystem image with only a few components, Buildroot remains much more appropriate. For systems that require a great number of components, more advanced functionality is then often needed, such as managing a package repository and supporting multiple hardware platforms at once for example. In this case, Yocto remains the best (the only?) option, all the more as this project addresses the traditional weaknesses of OpenEmbedded.

    Embedded Linux Conference 2012 videos

    The 2012 edition of the Embedded Linux Conference took place on February 15-17th 2012 at Redwood Shores near San Francisco in California. Three engineers of Bootlin attended this conference, and we reported every day our impressions about the talks, see our blog posts for day 1, day 2 and day 3. We have now taken the time to encode all the videos we have recorded during this event, and are proud to distribute them today.

    It is worth noting that for the first time, the Linux Foundation was also recording videos of the talks, the Linux Foundation videos are available from video.linux.com, and we included links to these videos below for the different talks.

    We hope that those of you who couldn’t attend the conference will enjoy those videos, with many great talks on technical embedded Linux topics.

    Jon CorbetVideo capture
    Editor at LWN.net
    The Kernel Report
    Slides
    Linux Foundation video
    Bootlin video (53 minutes):
    full HD (525M), 450×800 (154M)

    Loïc PallardyVideo capture
    Saving the Power Consumption of the Unused Memory
    Slides
    Bootlin video (46 minutes):
    full HD (378M), 450×800 (125M)

    Bernhard RosenkränzerVideo capture
    Linaro
    What Android and Embedded Linux Can Learn From Each Other
    Slides
    Linux Foundation video
    Bootlin video (40 minutes):
    full HD (370M), 450×800 (129M)

    Ricardo Salveti de AraujoVideo capture
    Linaro
    Ubuntu on ARM: Improvements and Optimizations Done By Linaro
    Slides
    Linux Foundation video
    Bootlin video (46 minutes):
    full HD (301M), 450×800 (140M)

    Zach PfefferVideo capture
    Linaro
    Binary Blobs Attack
    Slides
    Linux Foundation video
    Bootlin video (50 minutes):
    full HD (486M), 450×800 (157M)

    Hisao MunakataVideo capture
    Renesas Electronics
    Close Encounters of the Upstream Resource
    Slides
    Linux Foundation video
    Bootlin video (37 minutes):
    full HD (394M), 450×800 (121M)

    Daniel HurshVideo capture
    IBM
    Open Source Automated Test Framework
    Slides
    Bootlin video (45 minutes):
    full HD (303M), 450×800 (132M)

    Saul WoldVideo capture
    Intel
    The Yocto Project Overview and Update
    Slides
    Linux Foundation video
    Bootlin video (54 minutes):
    full HD (543M), 450×800 (171M)

    Sean HudsonVideo capture
    Mentor Graphics, Inc.
    Embedded Linux Pitfalls
    Slides
    Bootlin video (51 minutes):
    full HD (483M), 450×800 (176M)

    Vincent GuittotVideo capture
    Linaro
    Comparing Power Saving Techniques For Multicore ARM Platforms
    Slides
    Linux Foundation video
    Bootlin video (57 minutes):
    full HD (307M), 450×800 (154M)

    Tim BirdVideo capture
    Sony Network Entertainment
    Status of Embedded Linux
    Slides
    Linux Foundation video
    Bootlin video (49 minutes):
    full HD (492M), 450×800 (159M)

    Bruce AshfieldVideo capture
    Wind River
    A View From the Trenches: Embedded Functionality and How It Impacts Multi-Arch Kernel Maintenance
    Slides
    Bootlin video (54 minutes):
    full HD (741M), 450×800 (222M)

    R DurgadossVideo capture
    Intel
    PeakCurrent Management in x86-Based Smartphones
    Slides
    Linux Foundation video
    Bootlin video (50 minutes):
    full HD (296M), 450×800 (141M)

    Matt PorterVideo capture
    Texas Instruments
    Passing Time With SPI Framebuffer Driver
    Slides

    Bootlin video (54 minutes):
    full HD (565M), 450×800 (172M)

    WookeyVideo capture
    Linaro
    Multiarch and Why You Should Care: Running, Installing and Crossbuilding With Multiple Architectures
    Slides
    Bootlin video (42 minutes):
    full HD (453M), 450×800 (143M)

    Amit Daniel KachhapVideo capture
    Linaro/Samsung
    A New Simplified Thermal Framework For ARM Platforms
    Slides
    Linux Foundation video
    Bootlin video (41 minutes):
    full HD (226M), 450×800 (115M)

    Tsugikazu ShibataVideo capture
    NEC
    On The Road: To Provide the Long-Term Stable Linux For The Industry
    Slides
    Linux Foundation video
    Bootlin video (32 minutes):
    full HD (304M), 450×800 (95M)

    Thomas P. AbrahamVideo capture
    Samsung Electronics
    Experiences With Device Tree Support Development For ARM-Based SOC’s
    Slides
    Bootlin video (44 minutes):
    full HD (509M), 450×800 (155M)

    Paul E. McKenneyVideo capture
    IBM
    Making RCU Safe For Battery-Powered Devices
    Slides
    Linux Foundation video
    Bootlin video (52 minutes):
    full HD (506M), 450×800 (186M)

    Mike AndersonVideo capture
    Chief Technology Officer at The PTR Group
    The Internet of Things
    Slides
    Linux Foundation video
    Bootlin video (50 minutes):
    full HD (580M), 450×800 (186M)

    Thomas PetazzoniVideo capture
    Bootlin
    Buildroot: A Nice, Simple, and Efficient Embedded Linux Build System
    Slides
    Linux Foundation video
    Bootlin video (56 minutes):
    full HD (594M), 450×800 (182M)

    Steven RostedtVideo capture
    Red Hat
    Automated Testing with ktest.pl (Embedded Edition)
    Slides
    Linux Foundation video
    Bootlin video (102 minutes):
    full HD (1,2G), 450×800 (354M)

    David VomLehnVideo capture
    Cisco
    Intricacies of a MIPS Stack Backtrace Implementation
    Slides
    Linux Foundation video
    Bootlin video (52 minutes):
    full HD (345M), 450×800 (153M)

    Edward HerveyVideo capture
    Collabora
    GStreamer 1.0: No Longer Compromise Flexibility For Performance
    Slides
    Linux Foundation video
    Bootlin video (49 minutes):
    full HD (540M), 450×800 (174M)

    Tim BirdVideo capture
    Sony Network Entertainment
    Embedded-Appropriate Crash Handling in Linux
    Slides
    Linux Foundation video
    Bootlin video (49 minutes):
    full HD (292M), 450×800 (142M)

    Arnd BergmannVideo capture
    Linaro
    ARM Subarchitecture Status
    Slides
    Linux Foundation video
    Bootlin video (49 minutes):
    full HD (416M), 450×800 (140M)

    Mark GisiVideo capture
    Wind River Systems
    The Power of SPDX – Sharing Critical Licensing Information Within a Linux Device Supply Chain
    Linux Foundation video
    Bootlin video (49 minutes):
    full HD (498M), 450×800 (164M)

    Yoshitake KobayashiVideo capture
    Toshiba
    Ineffective and Effective Ways To Find Out Latency Bottlenecks With Ftrace
    Slides
    Linux Foundation video
    Bootlin video (37 minutes):
    full HD (251M), 450×800 (108M)

    Ohad Ben-CohenVideo capture
    Wizery / Texas Instruments
    Using virtio to Talk With Remote Processors
    Slides
    Linux Foundation video
    Bootlin video (54 minutes):
    full HD (582M), 450×800 (182M)

    Elizabeth FlanaganVideo capture
    Intel
    Embedded License Compliance Patterns and Antipatterns
    Linux Foundation video
    Bootlin video (44 minutes):
    full HD (391M), 450×800 (144M)

    David AndersVideo capture
    Texas Instruments
    Board Bringup: LCD and Display Interfaces
    Slides
    Linux Foundation video
    Bootlin video (40 minutes):
    full HD (207M), 450×800 (113M)

    Rob ClarkVideo capture
    Texas Instruments
    DMA Buffer Sharing: An Introduction
    Slides
    Linux Foundation video
    Bootlin video (35 minutes):
    full HD (306M), 450×800 (100M)

    Ken ToughVideo capture
    Intrinsyc
    Linux on eMMC: Optimizing For Performance
    Slides
    Linux Foundation video
    Bootlin video (52 minutes):
    full HD (468M), 450×800 (165M)

    Paul LarsonVideo capture
    Linaro
    LAVA Project Update
    Slides
    Linux Foundation video
    Bootlin video (52 minutes):
    full HD (366M), 450×800 (159M)

    Frank RowandVideo capture
    Sony Network Entertainment
    Real Time (BoFs)
    Slides
    Bootlin video (77 minutes):
    full HD (924M), 450×800 (288M)

    Mike TurquetteVideo capture
    Texas Instruments
    Common Clock Framework (BoFs)
    Slides
    Bootlin video (53 minutes):
    full HD (333M), 450×800 (148M)

    Hunyue YauVideo capture
    HY Research LLC
    Userland Tools and Techniques For Linux Board Bring-Up and Systems Integration
    Slides
    Linux Foundation video
    Bootlin video (51 minutes):
    full HD (407M), 450×800 (136M)

    Matt WeberVideo capture
    Rockwell Collins Inc.
    Optimizing the Embedded Platform Using OpenCV
    Slides
    Linux Foundation video
    Bootlin video (37 minutes):
    full HD (388M), 450×800 (125M)

    Greg UngererVideo capture
    McAfee
    M68K: Life in the Old Architecture
    Slides
    Linux Foundation video
    Bootlin video (46 minutes):
    full HD (452M), 450×800 (166M)

    Gary BissonVideo capture
    Adeneo Embedded
    Useful USB Gadgets on Linux
    Slides
    Linux Foundation video
    Bootlin video (43 minutes):
    full HD (402M), 450×800 (129M)

    Jason KridnerVideo capture
    Texas Instruments
    GUIs: Coming To Uncommon Goods Near You
    Slides
    Linux Foundation video
    Bootlin video (52 minutes):
    full HD (476M), 450×800 (166M)

    Mike AndersonVideo capture
    The PTR Group
    Adapting Your Network Code For IPv6 Support
    Slides
    Linux Foundation video
    Bootlin video (63 minutes):
    full HD (485M), 450×800 (216M)

    Koen KooiVideo capture
    The Angstrom Distribution
    Producing the Beaglebone and Supporting It
    Linux Foundation video
    Bootlin video (42 minutes):
    full HD (398M), 450×800 (126M)

    Danny BennettVideo capture
    basysKom GmbH
    HTML5 in a Plasma-Active World
    Slides
    Linux Foundation video
    Bootlin video (34 minutes):
    full HD (258M), 450×800 (75M)

    Marcin MielczarczykVideo capture
    Tieto
    Getting the First Open Source GSM Stack in Linux
    Slides
    Linux Foundation video
    Bootlin video (54 minutes):
    full HD (439M), 450×800 (178M)

    Pierre TardyVideo capture
    Intel
    PyTimechart Practical
    Slides
    Linux Foundation video
    Bootlin video (32 minutes):
    full HD (260M), 450×800 (86M)

    Linus WalleijVideo capture
    ST-Ericsson
    Pin Control Subsystem Overview
    Slides
    Linux Foundation video
    Bootlin video (60 minutes):
    full HD (638M), 450×800 (200M)

    Khem RajVideo capture
    OpenEmbedded Project
    OpenEmbedded – A Layered Approach
    Slides
    Linux Foundation video
    Bootlin video (39 minutes):
    full HD (227M), 450×800 (108M)

    Lucas De MarchiVideo capture
    ProFUSION Embedded Systems
    Managing Kernel Modules With kmod
    Slides
    Linux Foundation video
    Bootlin video (46 minutes):
    full HD (443M), 450×800 (140M)

    Jean PihetVideo capture
    NewOldBits
    A New Model for the System and Devices Latency
    Slides
    Bootlin video (49 minutes):
    full HD (431M), 450×800 (146M)

    Android Builders Summit 2012 videos

    On February 13-14th 2012, the second edition of the Android Builders Summit took place in Redwood Shores, near San Francisco in California. While Bootlin was not officially in charge of video recording for this conference, we recorded the talks we attended and that we are glad to share below. The Linux Foundation has also recorded those talks (except a few of them for which they had technical issues), and we provide those additional links below. You can also follow our reports from day 1 and day 2 of this conference.

    You’ll find below our videos of the main talks we recorded, and also the videos of the lightning talks that took place on the evening of the first day of the conference. Enjoy!

    Main talks

    Karim YaghmourVideo capture
    Opersys
    Leveraging Linux’s History With Android
    Slides
    Bootlin video (32 minutes):
    full HD (386M), 450×800 (107M)

    Arnd Bergmann, Tim Bird, Greg Kroah-Hartmann, Zach Pfeffer, moderated by Jonathan CorbetVideo capture
    IBM/Linaro, Sony Network Entertainment, The Linux Foundation, Linaro, LWN.net
    Panel: Android and the Linux Kernel Mainline: Where Are We?
    Bootlin video (38 minutes):
    full HD (525M), 450×800 (156M)

    Marko GargentaVideo capture
    Marakana
    Customizing Android
    Slides
    Linux Foundation video
    Bootlin video (50 minutes):
    full HD (409M), 450×800 (131M)

    Tetsuyuki KobayashiVideo capture
    Kyoto Microcomputer
    How ADB(Android Debug Bridge) Works
    Slides
    Linux Foundation video
    Bootlin video (33 minutes):
    full HD (365M), 450×800 (100M)

    Andrew BoieVideo capture
    Intel
    Android OTA SW Updates
    Slides
    Linux Foundation video
    Bootlin video (61 minutes):
    full HD (698M), 450×800 (189M)

    Benjamin ZoresVideo capture
    Alcatel-Lucent
    Android Device Porting Walkthrough
    Slides
    Linux Foundation video
    Bootlin video (69 minutes):
    full HD (534M), 450×800 (179M)

    Jason Kridner, Khasim Syed MohammedVideo capture
    Texas Instruments
    Using Android outside of the Mobile Phone Space
    Slides
    Linux Foundation video
    Bootlin video (34 minutes):
    full HD (414M), 450×800 (120M)

    Tom MossVideo capture
    3LM
    The Android Ecosystem
    Linux Foundation video
    Bootlin video (27 minutes):
    full HD (267M), 450×800 (82M)

    Karim YaghmourVideo capture
    Opersys
    Headless Android
    Slides
    Bootlin video (50 minutes):
    full HD (462M), 450×800 (145M)

    Tom FoyVideo capture
    Intrinsyc
    Android on eMMC: Optimizing for Performance
    Slides
    Bootlin video (34 minutes):
    full HD (234M), 450×800 (90M)

    Wolfgang MauererVideo capture
    Siemens
    Real-Time Android
    Slides
    Bootlin video (59 minutes):
    full HD (418M), 450×800 (155M)

    Jim HuangVideo capture
    0xlab
    Improve Android System Component Performance
    Slides
    Linux Foundation video
    Bootlin video (54 minutes):
    full HD (457M), 450×800 (152M)

    Rodrigo ChiossiVideo capture
    Samsung
    AndroidXRef: Speeding up the Development of Android Internals
    Slides
    Linux Foundation video
    Bootlin video (38 minutes):
    full HD (313M), 450×800 (108M)

    Mark BrownVideo capture
    Wolfson Microelectronics
    Towards a Standard Audio HAL for Android
    Slides
    Linux Foundation video
    Bootlin video (47 minutes):
    full HD (227M), 450×800 (123M)

    Jen CostilloVideo capture
    Topics in Designing An Android Sensor Subsystem: Pitfalls and Considerations
    Slides
    Linux Foundation video
    Bootlin video (36 minutes):
    full HD (238M), 450×800 (101M)

    Aleksandar (Saša) GargentaVideo capture
    Marakana
    Android Services Black Magic
    Linux Foundation video
    Bootlin video (61 minutes):
    full HD (410M), 450×800 (169M)

    Lightning talks

    Dario LaverdeVideo capture
    HTC
    HTC Dev
    Bootlin video (3 minutes):
    full HD (44M), 450×800 (13M)

    Robert McQueenVideo capture
    Collabora
    Integrating GStreamer and PulseAudio in Android
    Bootlin video (4 minutes):
    full HD (49M), 450×800 (16M)

    Mark GrossVideo capture
    Intel
    Android build times and host tweakage
    Bootlin video (4 minutes):
    full HD (37M), 450×800 (13M)

    Tony ManssonVideo capture
    Linaro
    Painless debugging of native code in Android-based device (using DS-5)
    Bootlin video (4 minutes):
    full HD (32M), 450×800 (13M)

    Paul ArssovVideo capture
    ARS Technologies Inc.
    How easy is it to support external hardware on Android platform
    Bootlin video (4 minutes):
    full HD (33M), 450×800 (13M)

    Karim YaghmourVideo capture
    Opersys
    Cyborgstack
    Bootlin video (4 minutes):
    full HD (60M), 450×800 (18M)

    Yahya MirzaVideo capture
    Aurora Borealis Software
    Towards a heterogeneous application for compute driver performance testing and analysis
    Bootlin video (3 minutes):
    full HD (47M), 450×800 (14M)

    Joe BornVideo capture
    Sonrlabs
    Sonr, Serial headphone interface and hardware
    Bootlin video (4 minutes):
    full HD (38M), 450×800 (13M)

    A new tool to ease kernel maintainer life

    When you are involved in mainlining or maintaining some kernel code, a non negligible part of your time is spent checking patches or patchsets themselves . It is not the most interesting part but it is truly necessary to help merging in kernel code, or to make sure you don’t break anything, for example building with an incompatible configuration.

    Aiaiai developed by Artem Bityutskiy is a tool to do most of this task for you! It uses other checking tools and scripts such as sparse, coccinelle and checkpatch.pl, and comes with its own set of tools and scripts. I don’t know what does “aiaiai” stands for, but in French it sounds like “Ouch Ouch Ouch”, the sound you could make if you forget to use this tool 😉

    PS: On my G+ post, Yegor Yefremov pointed that “aiaiai” means something like “tsk tsk!” (shame on you!) in Russian.

    Android gdbclient command

    Before you even start building Android, Google’s instructions tell you to source the build/envsetup.sh shell script.

    This script exports a number of environment variables (that’s why you have to source it), mostly setting the PATH to your different toolchains and to your output directories.

    It also defines a number of shell functions. Among them some functions are advertised, like the well-know lunch, that is used to configure to some extent the build system, or the grepping functions, but some are not, like pid, which uses adb to get the PID of a process running on the device.

    Among the latter, one seems pretty useful: gdbclient. What gdbclient does is obviously gdb related but in fact it does more than that.

    First, you run it by doing gdbclient <binary>:<port> <process_name>

    Then it sets up adb with the forward command so that you use it as a transport layer to your device, while it appears as (in that case) opened TCP sockets both on your machine and on the device.

    Then, it attaches a gdbserver to the process you gave as the third argument on the device.

    Finally, it launches your cross-gdb on your workstation, loads the debugging symbols from the file passed as first argument, and sets up a remote debugging session. All of that through USB!

    This is definitely useful, and I can’t say why Google doesn’t advertise it more, but hey, it’s there!

    How to boot an uncompressed Linux kernel on ARM

    This is a quick post to share my experience booting uncompressed Linux kernel images, during the benchmarks of kernel compression options, and no compression at all was one of these options.

    It is sometimes useful to boot a kernel image with no compression. Though the kernel image is bigger, and takes more time to copy from storage to RAM, the kernel image no longer has to be decompressed to RAM. This is useful for systems with a very slow CPU, or very little RAM to store both the compressed and uncompressed images during the boot phase. The typical case is booting CPUs emulated by FPGA, during processor development, before the final silicon is out. For example, I saw a Cortex A15 chip boot at 11 MHz during Linaro Connect Q2.11 in Budapest. At this clock frequency, booting a kernel image with no compression saves several minutes of boot time, reducing development and test time. Note that with such hardware emulators, copying the kernel image to RAM is cheap, as it is done by the emulator from a file given by the user, before starting to emulate the system.

    Building a kernel image with no compression on ARM is easy, but only once you know where the uncompressed image is and what to do! For people who have never done that before, I’m sharing quick instructions here.

    To generate your uncompressed kernel image, all you have to do is run the usual make command. The file that you need is arch/arm/boot/Image.

    Depending on the bootloader that you use, this could be sufficient. However, if you use U-boot, you still need to put this image in a uImage container, to let U-boot know about details such as how big the image is, what its entry point is, whether it is compressed or not… The problem is you can’t run make uImage any more to produce this container. That’s because Linux on ARM has no configuration option to keep the kernel uncompressed, and the uImage file would contain a compressed kernel.

    Therefore, you have to create the uImage by invoking the mkimage command manually. To do this without having to guess the right mkimage parameters, I recommend to run make V=1 uImage once:

    $ make V=1 uImage
    ...
      Kernel: arch/arm/boot/zImage is ready
      /bin/bash /home/mike/linux/scripts/mkuboot.sh -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n 'Linux-3.3.0-rc6-00164-g4f262ac' -d arch/arm/boot/zImage arch/arm/boot/uImage
    Image Name:   Linux-3.3.0-rc6-00164-g4f262ac
    Created:      Thu Mar  8 13:54:00 2012
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    3351272 Bytes = 3272.73 kB = 3.20 MB
    Load Address: 80008000
    Entry Point:  80008000
      Image arch/arm/boot/uImage is ready
    

    Don’t be surprised if the above message says that the kernel is uncompressed (corresponding to -C none). If we told U-boot that the image is already compressed, it would take care of uncompressing it to RAM before starting the kernel image.

    Now, you know what mkimage command you need to run. Just invoke this command on the Image file instead of zImage (you can directly replace mkuboot.sh by mkimage):

    $ mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n 'Linux-3.3.0-rc6-00164-g4f262ac' -d arch/arm/boot/Image arch/arm/boot/uImage
    Image Name:   Linux-3.3.0-rc6-00164-g4f262ac
    Created:      Thu Mar  8 14:02:27 2012
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    6958068 Bytes = 6794.99 kB = 6.64 MB
    Load Address: 80008000
    Entry Point:  80008000
    

    Now, you can use your uImage file as usual.

    Linux on ARM: xz kernel decompression benchmarks

    I recently managed to find time to clean up and submit my patches for xz kernel compression support on ARM, which I started working on back in November, during my flight to Linaro Connect. However, it was too late as Russell King, the ARM Linux maintainer, alreadyaccepted a similar patch, about 3 weeks before my submission. The lesson I learned was that checking a git tree is not always sufficient. I should have checked the mailing list archives too.

    The good news is that xz kernel compression support should be available in Linux 3.4 in a few months from now. xz is a compression format based on the LZMA2 compression algorithm. It can be considered as the successor of lzma, and achieves even better compression ratios!

    Before submitting my patches, I ran a few benchmarks on my own implementation. As the decompressing code is the same, the results should be the same as if I had used the patches that are going upstream.

    Benchmark methodology

    For both boards I tested, I used the same pre 3.3 Linux kernel from Linus Torvalds’ mainline git tree. I also used the U-boot bootloader in both cases.

    I used the very useful grabserial script from Tim Bird. This utility reads messages coming out of the serial line, and adds timestamps to each line it receives. This allow to measure time from the earliest power on stages, and doesn’t slow down the target system by adding instrumentation to it.

    Our benchmarks just measure the time for the bootloader to copy the kernel to RAM, and then the time taken by the kernel to uncompress itself.

    • Loading time is measured between “reading uImage” and “OK” (right before “Starting kernel”) in the bootloader messages.
    • Compression time measured between “Uncompressing Linux” and “done”:
      ~/bin/grabserial -v -d /dev/ttyUSB0 -e 15 -t -m "Uncompressing Linux" -i "done," > booting-lzo.log

    Benchmarks on OMAP4 Panda

    The Panda board has a fast dual Cortex A9 CPU (OMAP 4430) running at 1 GHz. The standard way to boot this board is from an MMC/SD card. Unfortunately, the MMC/SD interface of the board is rather slow.

    In this case, we have a fast CPU, but with rather slow storage. Therefore, the time taken to copy the kernel from storage to RAM is expected to have a significant impact on boot time.

    This case typically represents todays multimedia and mobile devices such as phones, media players and tablets.

    Compression Size Loading time Uncompressing time Total time
    gzip 3355768 2.213376 0.501500 2.714876
    lzma 2488144 1.647410 1.399552 3.046962
    xz 2366192 1.566978 1.299516 2.866494
    lzo 3697840 2.471497 0.160596 2.632093
    None 6965644 4.626749 0 4.626749

    Results on Calao Systems USB-A9263 (AT91)

    The USB-A9263 board from Calao Systems has a cheaper and much slower AT91SAM9263 CPU running at 200 MHz.

    Here we are booting from NAND flash, which is the fastest way to boot a kernel on this board. Note that we are using the nboot command from U-boot, which guarantees that we just copy the number of bytes specified in the uImage header.

    In this case, we have a slow CPU with slow storage. Therefore, we expect both the kernel size and the decompression algorithm to have a major impact on boot time.

    This case is a typical example of industrial systems (AT91SAM9263 is still very popular in such applications, as we can see from customer requests), booting from NAND storage operating with a 200 to 400 MHz CPU.

    Compression Size Loading time Uncompressing time Total time
    gzip 2386936 5.843289 0.935495 6.778784
    lzma 1794344 4.465542 6.513644 10.979186
    xz 1725360 4.308605 4.816191 9.124796
    lzo 2608624 6.351539 0.447336 6.798875
    None 4647908 11.080560 0 11.080560

    Lessons learned

    Here’s what we learned from these benchmarks:

    • lzo is still the best solution for minimum boot time. Remember, lzo kernel compression was merged by Bootlin.
    • xz is always better than lzma, both in terms of image size. Therefore, there’s no reason to stick to lzma compression if you used it.
    • Because of their heavy CPU usage, lzma and xz remain pretty bad in terms of boot time, on most types of storage devices. On systems with a fast CPU, and very slow storage though, xz should be the best solution
    • On systems with a fast CPU, like the Panda board, boot time with xz is actually pretty close to lzo, and therefore can be a very interesting compromise between kernel size and boot time.
    • Using a kernel image without compression is rarely a worthy solution, except in systems with a very slow CPU. This is the case of CPUs emulated on an FPGA (typically during chip development, before silicon is available). In this particular case, copying to memory is directly done by the emulator, and we just need CPU cycles to start the kernel.