* Comparing UBI volumes to generate patch for upgrades
@ 2012-02-01 18:31 Subodh Nijsure
2012-02-03 9:18 ` Artem Bityutskiy
0 siblings, 1 reply; 3+ messages in thread
From: Subodh Nijsure @ 2012-02-01 18:31 UTC (permalink / raw)
To: mtd
Hi,
I am are working on a embedded industrial product that uses UBIFS, but
we have limitation on amount of data this product can download per year.
So we are trying to figure out how to optimise size of upgrade package.
one option is use VCDIFF/bsdif or variation there-of and generate a
binary diff package.
option 2 is write a tool that compares UBI volume layout for revision 1
and UBI volume layout for revision 2 and then send that difference,
along the lines of what is outlined in the paper @
http://www.icmu.org/icmu2010/Papers/3-1.pdf
We are just getting started writing a tool to compare UBI volumes, but I
want to send out querry to UBI experts to see if there are some
fundamental issues with UBI that would make comparing UBI volumes and
applying such a patch would be a non-starter.
If we do come up with a "decent" enough tool that can compare UBI
volumes will certainly share it.
-Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Comparing UBI volumes to generate patch for upgrades
2012-02-01 18:31 Comparing UBI volumes to generate patch for upgrades Subodh Nijsure
@ 2012-02-03 9:18 ` Artem Bityutskiy
2012-02-03 23:14 ` Subodh Nijsure
0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2012-02-03 9:18 UTC (permalink / raw)
To: Subodh Nijsure; +Cc: mtd
[-- Attachment #1: Type: text/plain, Size: 968 bytes --]
On Wed, 2012-02-01 at 10:31 -0800, Subodh Nijsure wrote:
> one option is use VCDIFF/bsdif or variation there-of and generate a
> binary diff package.
>
> option 2 is write a tool that compares UBI volume layout for revision 1
> and UBI volume layout for revision 2 and then send that difference,
> along the lines of what is outlined in the paper @
> http://www.icmu.org/icmu2010/Papers/3-1.pdf
I guess you can do this for R/O volumes, but not R/W.
Depending on how much extra flash you have, you may do the actual update
in a power-off-tolerant manner or not.
> We are just getting started writing a tool to compare UBI volumes, but I
> want to send out querry to UBI experts to see if there are some
> fundamental issues with UBI that would make comparing UBI volumes and
> applying such a patch would be a non-starter.
I assume you are not planning to do this stuff in kernel space, right?
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Comparing UBI volumes to generate patch for upgrades
2012-02-03 9:18 ` Artem Bityutskiy
@ 2012-02-03 23:14 ` Subodh Nijsure
0 siblings, 0 replies; 3+ messages in thread
From: Subodh Nijsure @ 2012-02-03 23:14 UTC (permalink / raw)
To: dedekind1; +Cc: mtd
On 02/03/2012 01:18 AM, Artem Bityutskiy wrote:
> On Wed, 2012-02-01 at 10:31 -0800, Subodh Nijsure wrote:
>> one option is use VCDIFF/bsdif or variation there-of and generate a
>> binary diff package.
>>
>> option 2 is write a tool that compares UBI volume layout for revision 1
>> and UBI volume layout for revision 2 and then send that difference,
>> along the lines of what is outlined in the paper @
>> http://www.icmu.org/icmu2010/Papers/3-1.pdf
> I guess you can do this for R/O volumes, but not R/W.
Yes we would do this 'upgrade' on read-only volume.
>
> Depending on how much extra flash you have, you may do the actual update
> in a power-off-tolerant manner or not.
Actually we do have to do this upgrade in power-off-tolerant manner, but
hardware does give us few seconds of "battery backed" power, and
indicates to software that shutdown is imminent.
>> We are just getting started writing a tool to compare UBI volumes, but I
>> want to send out querry to UBI experts to see if there are some
>> fundamental issues with UBI that would make comparing UBI volumes and
>> applying such a patch would be a non-starter.
> I assume you are not planning to do this stuff in kernel space, right?
Not planning to this in kernel space.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-03 23:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-01 18:31 Comparing UBI volumes to generate patch for upgrades Subodh Nijsure
2012-02-03 9:18 ` Artem Bityutskiy
2012-02-03 23:14 ` Subodh Nijsure
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox