From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 0/9] Fastboot customization support
Date: Fri, 9 Feb 2018 10:43:07 +0100 [thread overview]
Message-ID: <20180209094316.8523-1-s.hauer@pengutronix.de> (raw)
In a customer project we have to do some customization to the fastboot
support. In particular, we have to check signatures in uploaded images,
which requires us to upload the whole image before it can be flashed.
This contradicts Fastboot sparse support, so we make Sparse support
optional in this series.
We decided to use FIT images as format to the signed images, so now we
are in the situation that we want to hold big FIT images in memory and
not unnecessarily copy it. Normally Fastboot temporarily stores a file
in RAMFS. This file can't be directly used by the FIT image code though,
so we add a compile time option to store the temporary fastboot image as
a buffer. This can be directly reused by the FIT image code (thanks to
recent FIT image changes).
Last not least we add hooks to the fastboot code. These can be used
to handle commands in a special way, like for example to deny certain
commands or to implement special commands. Also there is a "flash"
hook which can be used to add a custom flash operation, like for example
for our customer to implement signature checking of the FIT images.
Sascha
Sascha Hauer (9):
ubiformat: Allow to ubiformat with a buffer given
usb: gadget: fastboot: Make sparse support optional
usb: gadget: fastboot: pass struct f_fastboot * around
usb: gadget: fastboot: use read_file_2
usb: gadget: fastboot: Always remove temporary file
usb: gadget: fastboot: fix typo
usb: gadget: fastboot: beautify fb_run_command()
usb: gadget: fastboot: Add option to download to a buffer
usb: gadget: fastboot: Add external command execution support
common/ubiformat.c | 55 ++++++----
drivers/usb/gadget/Kconfig | 22 +++-
drivers/usb/gadget/f_fastboot.c | 216 ++++++++++++++++++++++++++--------------
drivers/usb/gadget/multi.c | 2 +
include/ubiformat.h | 7 ++
include/usb/fastboot.h | 17 ++++
6 files changed, 222 insertions(+), 97 deletions(-)
--
2.15.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2018-02-09 9:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-09 9:43 Sascha Hauer [this message]
2018-02-09 9:43 ` [PATCH 1/9] ubiformat: Allow to ubiformat with a buffer given Sascha Hauer
2018-02-09 9:43 ` [PATCH 2/9] usb: gadget: fastboot: Make sparse support optional Sascha Hauer
2018-02-09 9:43 ` [PATCH 3/9] usb: gadget: fastboot: pass struct f_fastboot * around Sascha Hauer
2018-02-09 9:43 ` [PATCH 4/9] usb: gadget: fastboot: use read_file_2 Sascha Hauer
2018-02-09 9:43 ` [PATCH 5/9] usb: gadget: fastboot: Always remove temporary file Sascha Hauer
2018-02-09 9:43 ` [PATCH 6/9] usb: gadget: fastboot: fix typo Sascha Hauer
2018-02-09 9:43 ` [PATCH 7/9] usb: gadget: fastboot: beautify fb_run_command() Sascha Hauer
2018-02-09 9:43 ` [PATCH 8/9] usb: gadget: fastboot: Add option to download to a buffer Sascha Hauer
2018-02-09 9:43 ` [PATCH 9/9] usb: gadget: fastboot: Add external command execution support Sascha Hauer
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=20180209094316.8523-1-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.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