SlideShare una empresa de Scribd logo
1 de 43
Descargar para leer sin conexión
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Nicola La Gloria
Update Remotely IoT Devices using
Eclipse hawkBit and SWUpdate
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Thanks:
Diego Rondini, Andrea Zoleo, Will Martindale,
Daniele Sergio, Eric Nelson, Gary Bisson
(Boundary Devices) and Amit Pundir (Linaro).
and...
Thanks to the little Marianna for the drawing!
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Agenda
❯ Motivations for our work with OTA updates on Embedded Linux
❯ The Android way for managing updates
❯ SWUpdate - a Linux Update agent
❯ Remote management and rollout: Eclipse hawkBit
❯ Our implementation to manage and deploy software updates
Android-like: Update Factory
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Motivations
❯ Support medium scale general purpose CPU-SOC modules
❯ Ability to implement different update approaches on Linux
❯ Create a neutral platform to support both Linux and Android
devices
❯ Track updates and divide them per device types and use cases
❯ Support custom device metadata sent to the Remote Update
Management Platform
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Part One: Device Update Approaches
❯ Double copy:
》 The devices features two copy
of the Application/OS/RootFS
》 Each copy must contain the
kernel, the root file system,
and each further component that
can be updated.
》 Cooperation with the boot
loader is necessary, to decide
which copy should be booted
❯ Single copy:
》 An upgrading software is required
》 Used usually to upgrade the
partition containing the rootfs
》 You may update Kernel and Device
Tree if the update environment is
segregated
》 Cooperation with the boot loader
is necessary to boot in update
mode.
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Double copy
Dual Boot Partition
Bootable system 1
ramdisk
rootfs
kernel
device tree
bootscript
Boot partition 1
rootfs partition 1
Bootable system 2
ramdisk
rootfs
kernel
device tree
bootscript
Boot partition 2
rootfs partition 2
bootloader
bootenv boot selection
Space non partitioned
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Double copy
Single Boot
Partition
bootloader
bootenv boot selection
Space non partitioned
ramdisk
kernel
device tree
bootscript
Boot partition 1
rootfs
rootfs partition 1
rootfs
rootfs partition 2
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Single copy
Simple
bootloader
bootenv boot selection
Space non partitioned
ramdisk
kernel
device tree
bootscript
Boot partition 1
system
recovery
rootfs
rootfs partition 1
Bootable system 1
system recovery BLOB
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Double Copy: Pros and Cons
❯ Pros:
》 Fallback in case of failure
》 Pretty easy to implement
❯ Cons:
》 Expensive in terms of storage resources, double the space
》 Requires a mechanism to switch between running and other copy if multiple
partitions are doubled (e.g. boot, root)
》 Identify which copy is running
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Single Copy: Pros and Cons
❯ Pros:
》 Requires smaller amount of space
》 “Update mode” lives in RAM
》 Can freely access whole storage (rewrite from scratch, including partition
table)
》 Can be morphed to a factory reset artifact (tftpboot / USB boot)
❯ Cons:
》 No fallback if write fails (e.g. power interruption). Restart recovery mode
to try it again
》 Simple scenario has one boot partition, kernel is shared between regular OS
and Updater
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Android update: approach to OTA updates
❯ Android approach splits the upgrade process in two phases:
》 preparation for the upgrade → performed in the full fledged Regular OS
》 execution of the upgrade → performed in a purpose built Recovery OS
❯ Preparation on the Device
》 Device flow:
■ registers to the cloud
■ polls for available updates
■ notifies update is available (Download? Y/n)
■ notifies update is ready to install (Proceed? Y/n)
■ reboot to Recovery OS
❯ Execution performed by the recovery binary
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Android update: execution
❯ Bootloader/bootscript gets “reset cause” (i.MX6 Family) and
boots in ramdisk-based Recovery Mode
❯ recovery starts
❯ recovery unpacks the update file provided (signed zip)
❯ update-binary executes actions in the updater-script (edifi)
❯ log and result files are written in the partition
❯ reboot to Regular OS
❯ https://source.android.com/devices/tech/ota/device_code
❯ https://github.com/boundarydevices/android_device_boundary/commit/f069efd28d7d55
e1cc298662881b9ceabb4650e3#diff-a55e09ca16b027ed99c01ca6765d9cca
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Snippet: bootscript (i.MX6)
+setenv bootpart 1
+
+setexpr rval *0x020CC068 & 0x180 # get reset cause
+if itest.s "x$rval" -eq "x100"; then
+ echo "----------- run fastboot here";
+else
+ if itest.s "x$rval" -eq "x80"; then
+ setenv bootpart 2;
+ fi
+fi
+
+mw.l 0x020cc068 0 1
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Android Update: advantages
❯ Single copy update featuring a recovery OS
❯ OTA agent runs in regular OS
》 No need to interrupt normal operation (yet)
》 Network access (e.g. pre-configured Wifi)
》 Interaction with the user (notifications / acknowledgment)
》 Full API access (Wifi or 3G/4G? Low battery?)
❯ Recovery has no need of network access, all artifacts are
pre-fetched
❯ Update script support binary writing (no mount is required)
❯ Recovery environment is RO, minimal, isolated
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Embedded Linux like Android
❯ A good option for building a recovery system “Android Like”
Linux is SWUpdate:
》 Written in C by Stefano Babic (Denx)
》 Run as Daemon
》 Update files (.swu) based on CPIO format
》 Several handlers (e.g. write raw data, write single file)
》 Update files scripting features (LUA)
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
SWUpdate: features
❯ Local interfaces:
》 Local storage (USB, SD) as artifacts source
》 Support local peripheral devices, through USB/UART for streaming update (i.e
MCU)
》 Embedded Web Server as local UI
❯ Remote interfaces:
》 HTTP, FTP
》 hawkBit (Suricatta embedded client)
❯ Signature and encryption of update files
❯ Handlers
》 U-boot for reading environment variables
》 Shell pre/post install scripts (also LUA)
》 Default config parser using libconfig (to parse update description file)
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
SWUpdate: Architecture
Notifier
Installer
Default
Parser
LUA Parser
Handler Manager
UBI MTD RAW ENV LUA
Local
Storage
Remote file
server
Web Server
Custom
protocol
MCU
hawkBit
START,RUN, SUCCESS, FAILURE, DOWLOAD, DONE
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
SWUpdate: single image format
CPIO Header
sw-descriptor
Image 1
Image 2
Image (n)
software =
{
version = "0.1.0";
warp = {
hardware-compatibility: [ "1.0"];
Images: (
{
filename = “rootfs.ext4.gz”;
device = /dev/mmcblk0p2”:
type = “raw”
compressed = true:
}
);
scripts:(
{
filename = “update.sh”;
type = “schellscript”;
sha256 = “faaaa30c….”
}
);
}
}
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Double copy
Dual Boot Partition
Bootable system 1
ramdisk
rootfs
kernel
device tree
bootscript
Boot partition 1
rootfs partition 1
Bootable system 2
ramdisk
rootfs
kernel
device tree
bootscript
Boot partition 2
rootfs partition 2
bootloader
bootenv boot selection
Space non partitioned
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Double copy
Single Boot
Partition
bootloader
bootenv boot selection
Space non partitioned
ramdisk
kernel
device tree
bootscript
Boot partition 1
rootfs
rootfs partition 1
rootfs
rootfs partition 2
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Single copy
Standard Scenario
bootloader
bootenv boot selection
Space non partitioned
ramdisk
kernel
device tree
bootscript
Boot partition 1
rootfs
rootfs partition 1
Bootable system 1
From user space
- fw_printenv
- fw_setenv
> ustate = [1,0]
(recovery partition
switch)
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Security notes
❯ SWUpdate combines signed sw-description with the verification
of hashes for each single image.
》 RSA PKCS#1 (public/private)
》 CMS PKCS#7 (certificates)
❯ This means that only sighed sw-description, generated by a
verified source, can be trusted by the installer.
》 sw-description.sig
》 Public.pem can be passed to SWUpdate daemon (on the device)
❯ sw-description contains hashes for each sub-image to verify
that each delivered subimage really belongs to the release.
》 Each image inside sw-description must have the attribute “sha256”
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Security notes: sign and configuration
#!/bin/bash
MODE="RSA"
PRODUCT_NAME="myproduct"
CONTAINER_VER="1.0"
IMAGES="rootfs kernel"
FILES="sw-description sw-description.sig $IMAGES"
#if you use RSA
if [ x"$MODE" == "xRSA" ]; then
openssl dgst -sha256 -sign priv.pem sw-description >
sw-description.sig
else
openssl cms -sign -in sw-description -out sw-description.sig
-signer mycert.cert.pem 
-inkey mycert.key.pem -outform DER -nosmimecap -binary
fi
for i in $FILES;do
echo $i;done | cpio -ov -H crc >
${PRODUCT_NAME}_${CONTAINER_VER}.swu
software =
{
version = "0.1.0";
hardware-compatibility: [ "revC"];
images: (
{
filename =
"core-image-full-cmdline-beaglebone.ext3";
device = "/dev/mmcblk0p2";
type = "raw";
sha256 =
"43cdedde429d1ee379a7d91e3e7c4b0b9ff952543a91a55bb2221e5c72cb
342b";
}
);
scripts: (
{
filename = "install.sh";
type = "shellscript";
sha256 =
"f53e0b271af4c2896f56a6adffa79a1ffa3e373c9ac96e00c4cfc577b9be
a5f1";
}
);
}
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Security notes (2)
❯ SWUpdate supports encrypted images
》 SWUpdate allows to symmetrically encrypt update images using the 256 bit
AES block cipher in CBC mode
》 encrypted = true parameter in sw-description
software =
{
version = "0.0.1";
images: ( {
filename = "core-image-full-cmdline-beaglebone.ext3.enc";
device = "/dev/mmcblk0p3";
encrypted = true;
}
);
}
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Case Study: Warp board
❯ Small wearable reference platform
❯ Community: www.warpx.io
❯ Support for SWUpdate for OS updates
❯ Single image
》 From bootloader, flash stand alone
SWUpdate OS Image on the eMMC
■ (UMS): dd img file
■ mmc read ${initrd_addr} 0x2000 0xAA80
》 Boot the SWUpdate OS image
》 Load module for USB over ethernet
》 From a host use browser and upload the
SWU image
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Part 2: Eclipse hawkBit
The Eclipse Foundation has been very active in promoting significative
projects for the IoT, in particular under the umbrella of the Eclipse IoT
community.
Eclipse IoT is an ecosystem of companies and individuals that are working
together to establish an Internet of Things based on open technologies.
https://iot.eclipse.org, https://eclipse.org/hawkbit/
One of the (many) projects is hawkBit “to create a domain independent back
end solution for rolling out software updates to constrained edge devices
connected to IP based networking infrastructure”
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
hawkBit overview
❯ User/Applications
》 UI
》 MGMT (API)
❯ Devices
》 DDI
(HTTP/REST/JSON)
》 DMF (AMQP)
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
hawkBit Architecture
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
<<VM>>
RabbitMQ
<<Exchange>>
X
<<VM>> <<VM>> <<VM>>
Clustering
hawkBit
Node 3
hawkBit
Node 2
hawkBit
Node 1
Caches CachesCaches
request
User action
Storage
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
hawkBit: workflow of a rollout campaign
❯ Prepare the update file and upload it
❯ Create a Software Module and add an artifact to it
❯ Create a Distribution
❯ Rollout a distribution to Targets
❯ Targets features:
》 Attributes (i.e HW revision, custom)
》 Tags (for grouping purposes)
》 Others like device description, what installed, logs, etc..
❯ Rollouts can be managed by groups
》 TAG filter
》 Group threshold
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Artifacts and Modules
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Distributions
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Deploy Management
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Rollout Configuration
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Platform to manage and deliver software update artifacts which are deployed on
single copy Linux and Android devices, featuring recovery mode
Or simply….
“Manage and Deploy Android-like software updates on Embedded Linux!”
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Update Factory Architecture
❯ Service on the embedded device
》 Gnu/Linux featuring SWUpdate
》 Android Service featuring Update Server API
❯ Update Server featuring hawkBit™
❯ IAM Server
❯ Artifact Repository
❯ Metadata Repository
❯ MsgBroker
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Android “like” behaviour on Embedded Linux
Update Factory implements all the missing bits to have an
Android-like OTA mechanism on an Embedded Linux OS
❯ Device to cloud communication
❯ Recovery partition
❯ Recovery ramdisk
❯ Recovery bootscript
❯ Bootloader coordination (boot selector using ustate env var )
❯ Device updating status to the cloud
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
UF Update Anatomy
bootloader
bootenv ustate
Space non partitioned
ramdisk
kernel
device tree
bootscript
Boot partition
rootfs partition
ramdisk
kernel
device tree
bootscript

Recovery Partition
.swu
cache partition
suricatta =
{
Tenant = “foo”;
Id = “bar”;
Url = "
https://updatefactory.io";
};
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Update Anatomy
Space non partitioned
uramdisk
kernel
device tree
bootscript
Boot partition
Android UF Service
Android UF Client App
kernel
device tree

Recovery Partition
Tenant = foo
Id = bar
Url = https:/updatefactory.io"
uramdisk
cache partition
.zip



Other default partitions
SoC
bootloader
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Update Factory goals
❯ Support medium scale general purpose CPU-SOC deployments
❯ Android like OTA update strategy for Embedded Linux based on
single image approach
❯ Create a neutral platform to support both Linux and Android
devices
❯ Provide a solid integration with Yocto to facilitate the
adoption
❯ Remote Update Management Platform as a service
❯ Free Tier
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Links
❯ https://www.kynetics.com/update-factory
❯ https://docs.updatefactory.io/
❯ https://github.com/Kynetics/meta-updatefactory
❯ http://warpx.io/blog/tutorial/easy-os-upgrades-swupdate
❯ https://eclipse.org/hawkbit/
❯ https://sbabic.github.io/swupdate
❯ https://android.googlesource.com/platform/bootable/recovery/+/
android-8.0.0_r4/recovery.cpp#167
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Thank you.
Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco
Contacts:
USA
Kynetics LLC
2040 Martin Ave, Santa Clara CA 95050
Ph: +1 (408) 475 7760
Italy
Kynetics Srl
Via G. Longhin, Padova (PD) 35129
Ph: +39 (049) 781 1091
info@kynetics.com | www.kynetics.com

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Upgrade Ubuntu 18.04 Security with Secureboot
Upgrade Ubuntu 18.04 Security with SecurebootUpgrade Ubuntu 18.04 Security with Secureboot
Upgrade Ubuntu 18.04 Security with Secureboot
 
Defeating x64: The Evolution of the TDL Rootkit
Defeating x64: The Evolution of the TDL RootkitDefeating x64: The Evolution of the TDL Rootkit
Defeating x64: The Evolution of the TDL Rootkit
 
Podman rootless containers
Podman rootless containersPodman rootless containers
Podman rootless containers
 
Programming IoT with Docker: How to Start?
Programming IoT with Docker: How to Start?Programming IoT with Docker: How to Start?
Programming IoT with Docker: How to Start?
 
Venta1
Venta1Venta1
Venta1
 
Venta1
Venta1Venta1
Venta1
 
Hacking Android OS
Hacking Android OSHacking Android OS
Hacking Android OS
 
Conda and Bioconda
Conda and BiocondaConda and Bioconda
Conda and Bioconda
 
Distro Recipes 2013 : Make Debian and compiler agnostic
Distro Recipes 2013 : Make Debian and  compiler agnostic Distro Recipes 2013 : Make Debian and  compiler agnostic
Distro Recipes 2013 : Make Debian and compiler agnostic
 
Java 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and LegosJava 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and Legos
 
Docker for Web Developers: A Sneak Peek
Docker for Web Developers: A Sneak PeekDocker for Web Developers: A Sneak Peek
Docker for Web Developers: A Sneak Peek
 
Distro Recipes 2013 : Debian and quality assurance
Distro Recipes 2013 : Debian and quality assuranceDistro Recipes 2013 : Debian and quality assurance
Distro Recipes 2013 : Debian and quality assurance
 
Fileyogi
FileyogiFileyogi
Fileyogi
 
App container rkt
App container rktApp container rkt
App container rkt
 
Containerizing Web Application with Docker
Containerizing Web Application with DockerContainerizing Web Application with Docker
Containerizing Web Application with Docker
 
Venta
VentaVenta
Venta
 
Venta
VentaVenta
Venta
 
2013
20132013
2013
 
Docker engine - Indroduc
Docker engine - IndroducDocker engine - Indroduc
Docker engine - Indroduc
 
Q4.11: Porting Android to new Platforms
Q4.11: Porting Android to new PlatformsQ4.11: Porting Android to new Platforms
Q4.11: Porting Android to new Platforms
 

Similar a Linaro Connect 2017 - Presentation - Kynetics

Rock-solid Magento Development and Deployment Workflows
Rock-solid Magento Development and Deployment WorkflowsRock-solid Magento Development and Deployment Workflows
Rock-solid Magento Development and Deployment Workflows
AOE
 
Jenkins hudsonci-101002103143-phpapp02
Jenkins hudsonci-101002103143-phpapp02Jenkins hudsonci-101002103143-phpapp02
Jenkins hudsonci-101002103143-phpapp02
Praveen Pamula
 

Similar a Linaro Connect 2017 - Presentation - Kynetics (20)

Orchestrated Android-Style System Upgrades for Embedded Linux
Orchestrated Android-Style System Upgrades for Embedded LinuxOrchestrated Android-Style System Upgrades for Embedded Linux
Orchestrated Android-Style System Upgrades for Embedded Linux
 
Orchestrated Android-Style System Upgrades for Embedded Linux
Orchestrated Android-Style System Upgrades for Embedded LinuxOrchestrated Android-Style System Upgrades for Embedded Linux
Orchestrated Android-Style System Upgrades for Embedded Linux
 
Eclipsecon 2017 presentation
Eclipsecon 2017 presentationEclipsecon 2017 presentation
Eclipsecon 2017 presentation
 
Iot world 2018 presentation
Iot world 2018 presentationIot world 2018 presentation
Iot world 2018 presentation
 
Eclipse Iot Day 2018 Presentation
Eclipse Iot Day 2018 PresentationEclipse Iot Day 2018 Presentation
Eclipse Iot Day 2018 Presentation
 
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
 
JavaCro'14 - Continuous delivery of Java EE applications with Jenkins and Doc...
JavaCro'14 - Continuous delivery of Java EE applications with Jenkins and Doc...JavaCro'14 - Continuous delivery of Java EE applications with Jenkins and Doc...
JavaCro'14 - Continuous delivery of Java EE applications with Jenkins and Doc...
 
OpenStack Murano introduction
OpenStack Murano introductionOpenStack Murano introduction
OpenStack Murano introduction
 
DockerCon 16 General Session Day 1
DockerCon 16 General Session Day 1DockerCon 16 General Session Day 1
DockerCon 16 General Session Day 1
 
Learning AOSP - Building AOSP for Nexus 7
Learning AOSP - Building AOSP for Nexus 7Learning AOSP - Building AOSP for Nexus 7
Learning AOSP - Building AOSP for Nexus 7
 
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Rock-solid Magento Development and Deployment Workflows
Rock-solid Magento Development and Deployment WorkflowsRock-solid Magento Development and Deployment Workflows
Rock-solid Magento Development and Deployment Workflows
 
Chicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - MediaflyChicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - Mediafly
 
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
 
Jenkins hudsonci-101002103143-phpapp02
Jenkins hudsonci-101002103143-phpapp02Jenkins hudsonci-101002103143-phpapp02
Jenkins hudsonci-101002103143-phpapp02
 
Docker module 1
Docker module 1Docker module 1
Docker module 1
 
Docker Azure Friday OSS March 2017 - Developing and deploying Java & Linux on...
Docker Azure Friday OSS March 2017 - Developing and deploying Java & Linux on...Docker Azure Friday OSS March 2017 - Developing and deploying Java & Linux on...
Docker Azure Friday OSS March 2017 - Developing and deploying Java & Linux on...
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 

Más de Kynetics

Más de Kynetics (8)

Eclipse Hara, Updating Embedded Devices with hawkBit Made Easy
Eclipse Hara, Updating Embedded Devices with hawkBit Made EasyEclipse Hara, Updating Embedded Devices with hawkBit Made Easy
Eclipse Hara, Updating Embedded Devices with hawkBit Made Easy
 
Deploy Eclipse hawBit in Production
Deploy Eclipse hawBit in ProductionDeploy Eclipse hawBit in Production
Deploy Eclipse hawBit in Production
 
ELC2019 - Poster - Update Anything
ELC2019 - Poster - Update Anything ELC2019 - Poster - Update Anything
ELC2019 - Poster - Update Anything
 
Heterogeneous multiprocessing on androd and i.mx7
Heterogeneous multiprocessing on androd and i.mx7Heterogeneous multiprocessing on androd and i.mx7
Heterogeneous multiprocessing on androd and i.mx7
 
AMP Kynetics - ELC 2018 Portland
AMP  Kynetics - ELC 2018 PortlandAMP  Kynetics - ELC 2018 Portland
AMP Kynetics - ELC 2018 Portland
 
Using Java on Wearable Devices featuring an Hybrid Architecture.
Using Java on Wearable Devices featuring an Hybrid Architecture.Using Java on Wearable Devices featuring an Hybrid Architecture.
Using Java on Wearable Devices featuring an Hybrid Architecture.
 
Deploy Small IoT Embedded SOC Devices and a Back-End Platform with Java, usin...
Deploy Small IoT Embedded SOC Devices and a Back-End Platform with Java, usin...Deploy Small IoT Embedded SOC Devices and a Back-End Platform with Java, usin...
Deploy Small IoT Embedded SOC Devices and a Back-End Platform with Java, usin...
 
Reactive IoT, Java One 2016
Reactive IoT, Java One 2016Reactive IoT, Java One 2016
Reactive IoT, Java One 2016
 

Último

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Último (20)

Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 

Linaro Connect 2017 - Presentation - Kynetics

  • 1. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Nicola La Gloria Update Remotely IoT Devices using Eclipse hawkBit and SWUpdate
  • 2. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Thanks: Diego Rondini, Andrea Zoleo, Will Martindale, Daniele Sergio, Eric Nelson, Gary Bisson (Boundary Devices) and Amit Pundir (Linaro). and... Thanks to the little Marianna for the drawing!
  • 3. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Agenda ❯ Motivations for our work with OTA updates on Embedded Linux ❯ The Android way for managing updates ❯ SWUpdate - a Linux Update agent ❯ Remote management and rollout: Eclipse hawkBit ❯ Our implementation to manage and deploy software updates Android-like: Update Factory
  • 4. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Motivations ❯ Support medium scale general purpose CPU-SOC modules ❯ Ability to implement different update approaches on Linux ❯ Create a neutral platform to support both Linux and Android devices ❯ Track updates and divide them per device types and use cases ❯ Support custom device metadata sent to the Remote Update Management Platform
  • 5. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Part One: Device Update Approaches ❯ Double copy: 》 The devices features two copy of the Application/OS/RootFS 》 Each copy must contain the kernel, the root file system, and each further component that can be updated. 》 Cooperation with the boot loader is necessary, to decide which copy should be booted ❯ Single copy: 》 An upgrading software is required 》 Used usually to upgrade the partition containing the rootfs 》 You may update Kernel and Device Tree if the update environment is segregated 》 Cooperation with the boot loader is necessary to boot in update mode.
  • 6. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Double copy Dual Boot Partition Bootable system 1 ramdisk rootfs kernel device tree bootscript Boot partition 1 rootfs partition 1 Bootable system 2 ramdisk rootfs kernel device tree bootscript Boot partition 2 rootfs partition 2 bootloader bootenv boot selection Space non partitioned
  • 7. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Double copy Single Boot Partition bootloader bootenv boot selection Space non partitioned ramdisk kernel device tree bootscript Boot partition 1 rootfs rootfs partition 1 rootfs rootfs partition 2
  • 8. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Single copy Simple bootloader bootenv boot selection Space non partitioned ramdisk kernel device tree bootscript Boot partition 1 system recovery rootfs rootfs partition 1 Bootable system 1 system recovery BLOB
  • 9. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Double Copy: Pros and Cons ❯ Pros: 》 Fallback in case of failure 》 Pretty easy to implement ❯ Cons: 》 Expensive in terms of storage resources, double the space 》 Requires a mechanism to switch between running and other copy if multiple partitions are doubled (e.g. boot, root) 》 Identify which copy is running
  • 10. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Single Copy: Pros and Cons ❯ Pros: 》 Requires smaller amount of space 》 “Update mode” lives in RAM 》 Can freely access whole storage (rewrite from scratch, including partition table) 》 Can be morphed to a factory reset artifact (tftpboot / USB boot) ❯ Cons: 》 No fallback if write fails (e.g. power interruption). Restart recovery mode to try it again 》 Simple scenario has one boot partition, kernel is shared between regular OS and Updater
  • 11. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Android update: approach to OTA updates ❯ Android approach splits the upgrade process in two phases: 》 preparation for the upgrade → performed in the full fledged Regular OS 》 execution of the upgrade → performed in a purpose built Recovery OS ❯ Preparation on the Device 》 Device flow: ■ registers to the cloud ■ polls for available updates ■ notifies update is available (Download? Y/n) ■ notifies update is ready to install (Proceed? Y/n) ■ reboot to Recovery OS ❯ Execution performed by the recovery binary
  • 12. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Android update: execution ❯ Bootloader/bootscript gets “reset cause” (i.MX6 Family) and boots in ramdisk-based Recovery Mode ❯ recovery starts ❯ recovery unpacks the update file provided (signed zip) ❯ update-binary executes actions in the updater-script (edifi) ❯ log and result files are written in the partition ❯ reboot to Regular OS ❯ https://source.android.com/devices/tech/ota/device_code ❯ https://github.com/boundarydevices/android_device_boundary/commit/f069efd28d7d55 e1cc298662881b9ceabb4650e3#diff-a55e09ca16b027ed99c01ca6765d9cca
  • 13. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Snippet: bootscript (i.MX6) +setenv bootpart 1 + +setexpr rval *0x020CC068 & 0x180 # get reset cause +if itest.s "x$rval" -eq "x100"; then + echo "----------- run fastboot here"; +else + if itest.s "x$rval" -eq "x80"; then + setenv bootpart 2; + fi +fi + +mw.l 0x020cc068 0 1
  • 14. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Android Update: advantages ❯ Single copy update featuring a recovery OS ❯ OTA agent runs in regular OS 》 No need to interrupt normal operation (yet) 》 Network access (e.g. pre-configured Wifi) 》 Interaction with the user (notifications / acknowledgment) 》 Full API access (Wifi or 3G/4G? Low battery?) ❯ Recovery has no need of network access, all artifacts are pre-fetched ❯ Update script support binary writing (no mount is required) ❯ Recovery environment is RO, minimal, isolated
  • 15. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Embedded Linux like Android ❯ A good option for building a recovery system “Android Like” Linux is SWUpdate: 》 Written in C by Stefano Babic (Denx) 》 Run as Daemon 》 Update files (.swu) based on CPIO format 》 Several handlers (e.g. write raw data, write single file) 》 Update files scripting features (LUA)
  • 16. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco SWUpdate: features ❯ Local interfaces: 》 Local storage (USB, SD) as artifacts source 》 Support local peripheral devices, through USB/UART for streaming update (i.e MCU) 》 Embedded Web Server as local UI ❯ Remote interfaces: 》 HTTP, FTP 》 hawkBit (Suricatta embedded client) ❯ Signature and encryption of update files ❯ Handlers 》 U-boot for reading environment variables 》 Shell pre/post install scripts (also LUA) 》 Default config parser using libconfig (to parse update description file)
  • 17. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco SWUpdate: Architecture Notifier Installer Default Parser LUA Parser Handler Manager UBI MTD RAW ENV LUA Local Storage Remote file server Web Server Custom protocol MCU hawkBit START,RUN, SUCCESS, FAILURE, DOWLOAD, DONE
  • 18. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco SWUpdate: single image format CPIO Header sw-descriptor Image 1 Image 2 Image (n) software = { version = "0.1.0"; warp = { hardware-compatibility: [ "1.0"]; Images: ( { filename = “rootfs.ext4.gz”; device = /dev/mmcblk0p2”: type = “raw” compressed = true: } ); scripts:( { filename = “update.sh”; type = “schellscript”; sha256 = “faaaa30c….” } ); } }
  • 19. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Double copy Dual Boot Partition Bootable system 1 ramdisk rootfs kernel device tree bootscript Boot partition 1 rootfs partition 1 Bootable system 2 ramdisk rootfs kernel device tree bootscript Boot partition 2 rootfs partition 2 bootloader bootenv boot selection Space non partitioned
  • 20. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Double copy Single Boot Partition bootloader bootenv boot selection Space non partitioned ramdisk kernel device tree bootscript Boot partition 1 rootfs rootfs partition 1 rootfs rootfs partition 2
  • 21. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Single copy Standard Scenario bootloader bootenv boot selection Space non partitioned ramdisk kernel device tree bootscript Boot partition 1 rootfs rootfs partition 1 Bootable system 1 From user space - fw_printenv - fw_setenv > ustate = [1,0] (recovery partition switch)
  • 22. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Security notes ❯ SWUpdate combines signed sw-description with the verification of hashes for each single image. 》 RSA PKCS#1 (public/private) 》 CMS PKCS#7 (certificates) ❯ This means that only sighed sw-description, generated by a verified source, can be trusted by the installer. 》 sw-description.sig 》 Public.pem can be passed to SWUpdate daemon (on the device) ❯ sw-description contains hashes for each sub-image to verify that each delivered subimage really belongs to the release. 》 Each image inside sw-description must have the attribute “sha256”
  • 23. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Security notes: sign and configuration #!/bin/bash MODE="RSA" PRODUCT_NAME="myproduct" CONTAINER_VER="1.0" IMAGES="rootfs kernel" FILES="sw-description sw-description.sig $IMAGES" #if you use RSA if [ x"$MODE" == "xRSA" ]; then openssl dgst -sha256 -sign priv.pem sw-description > sw-description.sig else openssl cms -sign -in sw-description -out sw-description.sig -signer mycert.cert.pem -inkey mycert.key.pem -outform DER -nosmimecap -binary fi for i in $FILES;do echo $i;done | cpio -ov -H crc > ${PRODUCT_NAME}_${CONTAINER_VER}.swu software = { version = "0.1.0"; hardware-compatibility: [ "revC"]; images: ( { filename = "core-image-full-cmdline-beaglebone.ext3"; device = "/dev/mmcblk0p2"; type = "raw"; sha256 = "43cdedde429d1ee379a7d91e3e7c4b0b9ff952543a91a55bb2221e5c72cb 342b"; } ); scripts: ( { filename = "install.sh"; type = "shellscript"; sha256 = "f53e0b271af4c2896f56a6adffa79a1ffa3e373c9ac96e00c4cfc577b9be a5f1"; } ); }
  • 24. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Security notes (2) ❯ SWUpdate supports encrypted images 》 SWUpdate allows to symmetrically encrypt update images using the 256 bit AES block cipher in CBC mode 》 encrypted = true parameter in sw-description software = { version = "0.0.1"; images: ( { filename = "core-image-full-cmdline-beaglebone.ext3.enc"; device = "/dev/mmcblk0p3"; encrypted = true; } ); }
  • 25. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Case Study: Warp board ❯ Small wearable reference platform ❯ Community: www.warpx.io ❯ Support for SWUpdate for OS updates ❯ Single image 》 From bootloader, flash stand alone SWUpdate OS Image on the eMMC ■ (UMS): dd img file ■ mmc read ${initrd_addr} 0x2000 0xAA80 》 Boot the SWUpdate OS image 》 Load module for USB over ethernet 》 From a host use browser and upload the SWU image
  • 26. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Part 2: Eclipse hawkBit The Eclipse Foundation has been very active in promoting significative projects for the IoT, in particular under the umbrella of the Eclipse IoT community. Eclipse IoT is an ecosystem of companies and individuals that are working together to establish an Internet of Things based on open technologies. https://iot.eclipse.org, https://eclipse.org/hawkbit/ One of the (many) projects is hawkBit “to create a domain independent back end solution for rolling out software updates to constrained edge devices connected to IP based networking infrastructure”
  • 27. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco hawkBit overview ❯ User/Applications 》 UI 》 MGMT (API) ❯ Devices 》 DDI (HTTP/REST/JSON) 》 DMF (AMQP)
  • 28. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco hawkBit Architecture
  • 29. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco <<VM>> RabbitMQ <<Exchange>> X <<VM>> <<VM>> <<VM>> Clustering hawkBit Node 3 hawkBit Node 2 hawkBit Node 1 Caches CachesCaches request User action Storage
  • 30. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco hawkBit: workflow of a rollout campaign ❯ Prepare the update file and upload it ❯ Create a Software Module and add an artifact to it ❯ Create a Distribution ❯ Rollout a distribution to Targets ❯ Targets features: 》 Attributes (i.e HW revision, custom) 》 Tags (for grouping purposes) 》 Others like device description, what installed, logs, etc.. ❯ Rollouts can be managed by groups 》 TAG filter 》 Group threshold
  • 31. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Artifacts and Modules
  • 32. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Distributions
  • 33. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Deploy Management
  • 34. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Rollout Configuration
  • 35. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Platform to manage and deliver software update artifacts which are deployed on single copy Linux and Android devices, featuring recovery mode Or simply…. “Manage and Deploy Android-like software updates on Embedded Linux!”
  • 36. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Update Factory Architecture ❯ Service on the embedded device 》 Gnu/Linux featuring SWUpdate 》 Android Service featuring Update Server API ❯ Update Server featuring hawkBit™ ❯ IAM Server ❯ Artifact Repository ❯ Metadata Repository ❯ MsgBroker
  • 37. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Android “like” behaviour on Embedded Linux Update Factory implements all the missing bits to have an Android-like OTA mechanism on an Embedded Linux OS ❯ Device to cloud communication ❯ Recovery partition ❯ Recovery ramdisk ❯ Recovery bootscript ❯ Bootloader coordination (boot selector using ustate env var ) ❯ Device updating status to the cloud
  • 38. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco UF Update Anatomy bootloader bootenv ustate Space non partitioned ramdisk kernel device tree bootscript Boot partition rootfs partition ramdisk kernel device tree bootscript Recovery Partition .swu cache partition suricatta = { Tenant = “foo”; Id = “bar”; Url = " https://updatefactory.io"; };
  • 39. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Update Anatomy Space non partitioned uramdisk kernel device tree bootscript Boot partition Android UF Service Android UF Client App kernel device tree Recovery Partition Tenant = foo Id = bar Url = https:/updatefactory.io" uramdisk cache partition .zip Other default partitions SoC bootloader
  • 40. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Update Factory goals ❯ Support medium scale general purpose CPU-SOC deployments ❯ Android like OTA update strategy for Embedded Linux based on single image approach ❯ Create a neutral platform to support both Linux and Android devices ❯ Provide a solid integration with Yocto to facilitate the adoption ❯ Remote Update Management Platform as a service ❯ Free Tier
  • 41. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Links ❯ https://www.kynetics.com/update-factory ❯ https://docs.updatefactory.io/ ❯ https://github.com/Kynetics/meta-updatefactory ❯ http://warpx.io/blog/tutorial/easy-os-upgrades-swupdate ❯ https://eclipse.org/hawkbit/ ❯ https://sbabic.github.io/swupdate ❯ https://android.googlesource.com/platform/bootable/recovery/+/ android-8.0.0_r4/recovery.cpp#167
  • 42. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Thank you.
  • 43. Nicola La Gloria, www.kynetics.comLinaro Connect 2017, San Francisco Contacts: USA Kynetics LLC 2040 Martin Ave, Santa Clara CA 95050 Ph: +1 (408) 475 7760 Italy Kynetics Srl Via G. Longhin, Padova (PD) 35129 Ph: +39 (049) 781 1091 info@kynetics.com | www.kynetics.com

Notas del editor

  1. Aaron
  2. There are also other motivations like being, customer needs open source, and written on specific languages.
  3. There are also other motivations like being open source, and written on specific languages.