All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot,3/3] mmc: support writing sparse images
Date: Mon, 14 May 2018 16:50:17 -0400	[thread overview]
Message-ID: <20180514205017.GY12235@bill-the-cat.ec.rr.com> (raw)
In-Reply-To: <CAO5Uq5RdDQpLF1s3iOLWS33fJO4FMKDZyyKO50t6r02gz6-ynA@mail.gmail.com>

On Mon, May 14, 2018 at 05:14:42PM +0100, Alex Kiernan wrote:
> On Mon, May 14, 2018 at 3:47 PM Tom Rini <trini@konsulko.com> wrote:
> 
> > On Mon, May 14, 2018 at 06:42:41PM +0530, Jassi Brar wrote:
> > > Hi Tom,
> > >
> > > On Tue, May 8, 2018 at 10:45 PM, Tom Rini <trini@konsulko.com> wrote:
> > > > On Fri, Apr 06, 2018 at 12:05:24PM +0530, jassisinghbrar at gmail.com
> wrote:
> > > >
> > > >> From: Jassi Brar <jaswinder.singh@linaro.org>
> > > >>
> > > >> Provide an alternate path for sparse-images to be
> > > >> written to MMC. For example, via tftp on platforms
> > > >> that don't support fastboot protocol. Or when an
> > > >> image is to written at some offset, rather than the
> > > >> start of a partition.
> > > >>
> > > >> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
> > > >
> > > > Applied to u-boot/master, thanks!
> > >
> > > I see you modified the patch to protect the feature with
> > > CONFIG_FASTBOOT_FLASH, which kills the purpose -- this feature is for
> > > platforms that don't support fastboot.
> > >
> > > Do you want me to send the patch to revert the protection?
> 
> > Sorry, I guess maybe things weren't clear enough all around, and we
> > should (functionally) revert patches 2 and 3 and try something
> > different.  It is OK to say "lets make writing sparse images more widely
> > available".  It's not OK to make every platform with MMC write grow a
> > decent bit in binary size.  Making a quick pass at re-enabling things on
> > a platform without fastboot support already grew things by nearly 2KiB.
> > The other part which is I believe got me down this path was that without
> > a change to common/Makefile to always (outside of SPL) include
> > common/image-sparse.o things don't link.
> 
> > In sum, a new patch to add an option to allow people to opt-in for
> > swrite would be good.  And please make sure to do something like:
> > diff --git a/common/Makefile b/common/Makefile
> > index d0681c7dd96a..92b2aa1ca8f0 100644
> > --- a/common/Makefile
> > +++ b/common/Makefile
> > @@ -120,6 +120,7 @@ ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
> >       obj-y += fb_nand.o
> >       endif
> >       endif
> > +obj-$(CONFIG_MMC_WRITE) += image-sparse.o
> >       endif
> 
> Isn't this just move image-sparse to lib and add a separate guard for it
> (LIB_IMAGE_SPARSE?) which can be selected by both FASTBOOT and a new
> command symbol (CMD_MMC_SWRITE)?
> 
> This is all overlapping with the UDP fastboot code I've been posting, so
> I'd kinda like it to fit nicely with that, rather than have to refactor it
> to fit something different!

That sounds like a good idea to me, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180514/44e1f35e/attachment.sig>

  reply	other threads:[~2018-05-14 20:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-06  6:34 [U-Boot] [PATCH 0/3] Enable mmc to write sparse images jassisinghbrar at gmail.com
2018-04-06  6:34 ` [U-Boot] [PATCH 1/3] fastboot: sparse: remove redundant argument to write_sparse_image jassisinghbrar at gmail.com
2018-05-08 17:15   ` [U-Boot] [U-Boot, " Tom Rini
2018-04-06  6:35 ` [U-Boot] [PATCH 2/3] fastboot: sparse: make write_sparse_image useable for non-fastboot jassisinghbrar at gmail.com
2018-05-08 17:15   ` [U-Boot] [U-Boot, " Tom Rini
2018-04-06  6:35 ` [U-Boot] [PATCH 3/3] mmc: support writing sparse images jassisinghbrar at gmail.com
2018-05-08 17:15   ` [U-Boot] [U-Boot,3/3] " Tom Rini
2018-05-14 13:12     ` Jassi Brar
2018-05-14 14:46       ` Tom Rini
2018-05-14 16:14         ` Alex Kiernan
2018-05-14 20:50           ` Tom Rini [this message]
2018-05-14 21:08             ` Alex Kiernan
2018-05-08  3:59 ` [U-Boot] [PATCH 0/3] Enable mmc to write " Jassi Brar

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=20180514205017.GY12235@bill-the-cat.ec.rr.com \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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.