linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: Tanya Brokhman <tlinder@codeaurora.org>, ricard.wanderlof@axis.com
Cc: linux-mtd@lists.infradead.org, Artem Bityutskiy <dedekind1@gmail.com>
Subject: Re: [PATCH 2/2] ubi-utils: ubinize: Add fastmap suport to image creation
Date: Wed, 18 Mar 2015 17:33:46 +0100	[thread overview]
Message-ID: <5509A8EA.10201@nod.at> (raw)
In-Reply-To: <5509725F.6050606@codeaurora.org>

Am 18.03.2015 um 13:41 schrieb Tanya Brokhman:
> (thinking out-loud, trying not to reveal our flasher details)
> UBI aware flasher has to:
> 1. scan partition and collect ec values
> 2. for each PEB of the image: update the ec_header, erase PEB and flash the image
> 3. for remaining empty PEBs erase and write ec_heaser
> 
> For generating FM in flasher we need to update #2 and while flashing the image construct the FM data in memory. (what PEB, for what volume etc). this is O(1)
> 
> When we have the layout in memory we need to construct the actual FM data => go over all lists => O(number of dev PEBs) => probably can be neglected as well.
> 
> Ok, I take it back: run time wont be effected. What will be effected is memory consumption.

Yeah, but a smart flasher would of course not keep the whole image in memory.

> If I remember correctly, when we discussed this whole idea a while back you mentioned that a lot of users use their own proprietary flasher. So from your experience: you think
> users will prefer to have a libfastmap and not ubinize enhancement?
> Maybe implementing libfastmap to be added to any flasher isn't such a bad idea. Then the whole "ubi awareness" can be implemented there.
> I wasn't aware of the fact that ubinize is skipped. Is this common?

I've seen that more than once. Customers tend to use their own non-trivial tools. ;)
If we implement libfastmap ubinize could also use it (plus a big fat warning that you'll need a fastmap aware flasher).

Thanks,
//richard

      reply	other threads:[~2015-03-18 16:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18  8:52 [PATCH 2/2] ubi-utils: ubinize: Add fastmap suport to image creation Tanya Brokhman
2015-03-18 10:22 ` Richard Weinberger
2015-03-18 10:43   ` Tanya Brokhman
2015-03-18 11:15     ` Richard Weinberger
2015-03-18 12:12       ` Tanya Brokhman
2015-03-18 12:19         ` Richard Weinberger
2015-03-18 12:41           ` Tanya Brokhman
2015-03-18 16:33             ` Richard Weinberger [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=5509A8EA.10201@nod.at \
    --to=richard@nod.at \
    --cc=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=ricard.wanderlof@axis.com \
    --cc=tlinder@codeaurora.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;
as well as URLs for NNTP newsgroup(s).