From: Stefano Babic <sbabic@denx.de>
To: Bryan Evenson <bevenson@melinkcorp.com>,
Stefano Babic <sbabic@denx.de>,
"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Deploying Yocto build images
Date: Thu, 21 Nov 2013 18:08:25 +0100 [thread overview]
Message-ID: <528E3E09.8010701@denx.de> (raw)
In-Reply-To: <91586D499ADFD74FBCFB8425266A5DE40153BB535322@pluto.melinkcorp.local>
Hi Bryan,
On 21/11/2013 16:48, Bryan Evenson wrote:
> Stefano,
>
> Looks interesting. I have a question that I didn't see covered in
> the documentation (yet).
I know, this is my fault. Writing documentation is a task that is always
postponed ;-)
> I can see the benefit to having a single image firmware upgrade, but
> how does swupdate handle configuration differences? I can see cases
> in which the majority of the software will be the same but there will
> be configuration file differences from device to device. I like the
> idea of a single image upgrade, but not at the cost of wiping the
> device-specific configuration.
I explain how it was done in a real project. The scope was to have a
single image, containing update for multiple devices. Let's say this is
an update of version Y for a whole family of products, but each product
has its own parts (mostly kernel differs, but not only).
In that case, an external parser was used. The sw-description is written
as XML, with a syntax like this:
<?xml version="1.0" encoding="UTF-8"?>
<software version="1.0">
<name>Update Image</name>
<version>1.0.0</version>
<description>Firmware for XXXXX Project</description>
<images>
<image device="firstdevice" version="0.9">
<stream name="dev1-uImage" type="ubivol" volume="kernel" />
<stream name="dev1.dtb" type="ubivol" volume="dtb" />
<stream name="dev1-rootfs.ubifs" type="ubivol" volume="rootfs"/>
<stream name="dev1-uboot-env" type="uboot" />
<stream name="raw_vfat" type="raw" dest="/dev/mmcblk0p4" />
<stream name="sdcard.lua" type="lua" />
</image>
<image device="seconddevice" version="0.9">
<stream name="dev2.dtb" rev="0.9" type="dtb" />
<stream name="dev2-uImage" rev="0.9" type="kernel" />
......
That is: there is a single description, that describes the components
for all devices. Each device must recognized where it is running - this
was done with a configuration file or reading directly from hardware
(GPIOs, SPI EPROM).
When the image is downloaded, the description is parsed and only the
significant parts are extracted - the rest is discarded.
Of course, the image can be significantly bigger - it contains the
software for many devices. In my real project, this was not an issue -
the scope was really to have a single image for a product family.
Note: this is only an example how the tool was used. But this shows also
that the syntax of the sw-description is open. I could also add the LUA
script/XML parser to the repository, it is at the moment not stored - I
have thought at it as a custom specific requirement.
Best regards,
Stefano
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================
prev parent reply other threads:[~2013-11-21 17:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-21 12:10 Deploying Yocto build images Stefano Babic
2013-11-21 12:34 ` Diego Sueiro
2013-11-21 13:15 ` Stefano Babic
2013-11-21 18:20 ` Michael_E_Brown
2013-11-21 18:49 ` Stefano Babic
2013-11-21 15:48 ` Bryan Evenson
2013-11-21 17:08 ` Stefano Babic [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=528E3E09.8010701@denx.de \
--to=sbabic@denx.de \
--cc=bevenson@melinkcorp.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.