From: Mike Looijmans <mike.looijmans@topic.nl>
To: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [yocto] RFC: Improving the developer workflow
Date: Sat, 09 Aug 2014 13:22:10 +0200 [thread overview]
Message-ID: <53E60462.3010700@topic.nl> (raw)
In-Reply-To: <53E5DF83.3060301@dynamicdevices.co.uk>
On 08/09/2014 10:44 AM, Alex J Lennon wrote:
>
> On 09/08/2014 09:13, Mike Looijmans wrote:
>> On 08/07/2014 03:05 PM, Paul Eggleton wrote:
>>> On Thursday 07 August 2014 11:13:02 Alex J Lennon wrote:
>>>> Historically I, and I suspect others, have done full image updates of
>>>> the storage medium, onboard flash or whatever but these images are
>>>> getting so big now that I am trying to move away from that and into
>>>> using package feeds for updates to embedded targets.
>>>
>>> Personally with how fragile package management can end up being, I'm
>>> convinced
>>> that full-image updates are the way to go for a lot of cases, but
>>> ideally with
>>> some intelligence so that you only ship the changes (at a filesystem
>>> level
>>> rather than a package or file level). This ensures that an upgraded
>>> image on
>>> one device ends up exactly identical to any other device including a
>>> newly
>>> deployed one. Of course it does assume that you have a read-only
>>> rootfs and
>>> keep your configuration data / logs / other writeable data on a separate
>>> partition or storage medium. However, beyond improvements to support for
>>> having a read-only rootfs we haven't really achieved anything in
>>> terms of out-
>>> of-the-box support for this, mainly due to lack of resources.
>>
>> Full-image upgrades are probably most seen in "lab" environments,
>> where the software is being developed.
>>
>> Once deployed to customers, who will not be using a build system, the
>> system must rely on packages and online updates.
>>
>> Embedded systems look more like desktops these days.
>>
>> - End-users will make changes to the system:
>> - "plugins" and other applications.
>> - configuration data
>> - application data (e.g. loggings, EPG data)
>> - There is not enough room in the flash for two full images.
>> - There is usually a virtually indestructable bootloader that can
>> recover even from fully erasing the NAND flash.
>> - Flash filesystems are usually NAND. NAND isn't suitable for
>> read-only root filesystems, you want to wear-level across the whole
>> flash.
>>
>
> Agreeing with much you say Mike, I was under the impression that there
> are block management layers now which will wear level across partitions?
>
> So you could have your read only partition but still wear levelled
> across the NAND ?
Going off-topic here I guess, but I think you can use the UBI block
layer in combination with e.g. squashfs. Never tried it, but it should
be possible to create an UBI volume, write a squash blob into it and
mount that.
However, any system that accomplishes that, is sort of cheating. It
isn't a read-only rootfs in the true meaning of the word any more. In
time, the volume will move around on the flash, thus the rootfs will be
re-written.
>> For the OpenPLi settop boxes we've been using "online upgrades" which
>> basically just call "opkg update && opkg upgrade" for many years, and
>> there's never been a real disaster. The benefits easily outweigh the
>> drawbacks.
>>
>> When considering system upgrades, too much attention is being spent in
>> the "corner cases". It's not really a problem if the box is bricked
>> when the power fails during an upgrade. As long as there's a procedure
>> the end-user can use to recover the system (on most settop boxes,
>> debricking the system is just a matter of inserting a USB stick and
>> flipping the power switch).
>
> For us on this latest project - and indeed the past few projects - it is
> a major problem (and cost) if the device is bricked. These devices are
> not user-maintainable and we'd be sending engineers out around the world
> to fix.
>
> Not a good impression to make with the customers either.
>
> Whether we're a usual use case I don't know.
I think you're a very usual use case, and it's a valid one indeed. I'm
just trying to create awareness that there are projects out there that
use OE for consumer products, and have millions of devices running in
the end-users' living rooms, who upgrade at a whim (feed servers sending
out about 4TB traffic each month).
I've also done medical devices where, just as you say, bricking it just
isn't an option. These are typically inaccessible by the end-user, and
see no modification other than about 1k of configuration data (e.g. wifi
keys) during their lifespan.
--
Mike Looijmans
next prev parent reply other threads:[~2014-08-09 11:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 9:10 RFC: Improving the developer workflow Paul Eggleton
2014-08-07 10:13 ` [yocto] " Alex J Lennon
2014-08-07 13:05 ` Paul Eggleton
2014-08-07 13:14 ` Alex J Lennon
2014-08-08 7:54 ` Nicolas Dechesne
2014-08-08 15:57 ` Alex J Lennon
2014-08-09 8:13 ` Mike Looijmans
2014-08-09 8:44 ` Alex J Lennon
2014-08-09 11:22 ` Mike Looijmans [this message]
2014-08-09 11:57 ` Alex J Lennon
2014-08-08 8:04 ` Nicolas Dechesne
2014-08-25 6:47 ` Paul Eggleton
2014-08-08 12:56 ` Mike Looijmans
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=53E60462.3010700@topic.nl \
--to=mike.looijmans@topic.nl \
--cc=ajlennon@dynamicdevices.co.uk \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox