查看原文
其他

Linux的车载发行版AGL及Renesas公司采用Docker

IOT BZH Linux阅码场 2018-06-20

根据《AGL-Application-SDK-Kickstart-on-Renesas-Porter-board》,Renesas的AGL BSP-发布的时候,采用Docker部署Yocto和AGL SDK的开发环境,目的如下:

The Yocto build environment is subject to many variations depending on:

•Yocto/Poky/OpenEmbedded versions and revisions

•Specific layers required for building either the BSP or the whole distribution

•Host distribution and version1

•User environment


In particular, most of the recent Linux host distributions (Ubuntu 15.04, Debian 8.2, OpenSuse 42.1, CentOS 7.x) do not officially support building with Yocto 1.7. Unfortunately, there's no easy solution to solve this kind of problem: we will still observe for quite a long time a significant gap between the latest OS versions and a fully certified build environment.


To circumvent those drawbacks and get more deterministic results amongst the AGL community of developers and integrators, using virtualization is a good workaround. A Docker image is now available for AGL SDK: it is faster, easier and less error-prone to use a prepared Docker container because the image contains all necessary components to build and deploy an AGL image, including a validated base OS, independent of the user’s host OS. Moreover, light virtualization mechanisms used by Docker do not add much overhead when building: performances are nearly equal to native mode.

根据《AGL/Phase2 - Devkit Build from scratch: AGL image and SDK for Porter》,Docker也被采用:

The AGL DevKit allows developers to rebuild a complete bootable image and its

associated SDK from source code. It uses Yocto/Poky version 2.x with latest

version of Renesas BSP and enables low-level development of drivers and

system services.

The AGL DevKit contains:

• This guide, which describes how to create a Docker container able to

build AGL images and associated SDKs. The container is also suitable to

build AGL Applications independently of Yocto/Bitbake.

• Applications templates and demos available on Github, to start

developing various types of applications independently of Yocto:

◦ services

◦ native applications

◦ HTML5 applications

◦ ...


可见Docker的使用已经深入到嵌入式Linux的开发环境,这是一个人人都值得学会Docker的时代,一如我们都学会git。

这两篇文档的下载地址为:

http://docs.automotivelinux.org/docs/devguides/en/dev/reference/iotbzh2016/sdk/AGL-Devkit-Image-and-SDK-for-porter.pdf

http://iot.bzh/download/public/2016/sdk/AGL-Application-SDK-Kickstart-on-Renesas-Porter-board.pdf

小贴士

阅读本文快速入门Docker: 宋宝华:Docker 最初的2小时(Docker从入门到入门)


>>> 往期精彩内容

最简单Linux内核和驱动考试题(含答案与详细解析)

在Linuxer上把一个问题说清或者看懂有惊喜(Linuxer征稿)

《Linux总线、设备、驱动模型》直播PPT分享

让天堂的归天堂,让尘土的归尘土——谈Linux的总线、设备、驱动模型

宋宝华: 论一个程序员问问题的自我修养

内核开发者伍鹏(Bryan Wu):好奇的旅程

....

快,关注Linuxer这个公众号,一起涨姿势~

    您可能也对以下帖子感兴趣

    文章有问题?点此查看未经处理的缓存