From: Svyatoslav Ryhel <clamor95@gmail.com>
To: "Svyatoslav Ryhel" <clamor95@gmail.com>,
"Thierry Reding" <treding@nvidia.com>,
"Tom Rini" <trini@konsulko.com>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Jonas Schwöbel" <jonasschwoebel@yahoo.de>,
"Ion Agorria" <ion@agorria.com>,
"Peter Geis" <pgwipeout@gmail.com>,
"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
"Guillaume La Roque" <glaroque@baylibre.com>
Cc: u-boot@lists.denx.de
Subject: [PATCH v2 0/9] ARM: tegra: Add custom fastboot flash handler
Date: Sat, 5 Dec 2026 12:05:36 +0200 [thread overview]
Message-ID: <20261205100545.106967-1-clamor95@gmail.com> (raw)
Add fastboot flash handler that allows boards to intercept fastboot
flash/erase and modify/change behavior according to board specifics
like AES encryption or RSA signing.
Add board_fastboot_get_part_info to provide info as fastboot tool queries
during flash/erase
Refactor existing Tegra flash mechanisms to use new handler.
---
Changes in v2:
- rebased on uboot/next
- switched returns to -ENOTSUPP (asked by Mattijs Korpershoek)
- added more documentation and function descriptions
---
Ion Agorria (9):
fastboot: Add board_fastboot_flash/erase/get_part_info hooks
ARM: tegra: Refactor BCT patching process
ARM: tegra: Add custom fastboot flash handler
configs: tegra: Enable TEGRA_FASTBOOT_FLASH option
crypto: tegra_aes: Add support for Tegra124
ARM: tegra124: Add AES engine node and enable it for Mi Pad
ARM: tegra: n1: Add bsev node
board: tegra: Update ebtupdate usage
doc: cmd: Update ebtupdate description and document bctupdate command
arch/arm/dts/tegra124-xiaomi-mocha.dts | 4 +
arch/arm/dts/tegra124.dtsi | 16 +
arch/arm/dts/tegra20-samsung-n1-common.dtsi | 4 +
arch/arm/mach-tegra/Kconfig | 18 +-
arch/arm/mach-tegra/Makefile | 2 +
arch/arm/mach-tegra/bct.c | 910 ++++++++++++++++++
arch/arm/mach-tegra/bct.h | 86 ++
arch/arm/mach-tegra/fastboot.c | 78 ++
arch/arm/mach-tegra/tegra124/Makefile | 1 -
arch/arm/mach-tegra/tegra124/bct.c | 86 --
arch/arm/mach-tegra/tegra124/bct.h | 64 +-
arch/arm/mach-tegra/tegra20/Makefile | 1 -
arch/arm/mach-tegra/tegra20/bct.c | 84 --
arch/arm/mach-tegra/tegra20/bct.h | 55 +-
arch/arm/mach-tegra/tegra30/Makefile | 1 -
arch/arm/mach-tegra/tegra30/bct.c | 84 --
arch/arm/mach-tegra/tegra30/bct.h | 55 +-
board/acer/picasso/picasso.env | 5 +-
board/asus/transformer-t30/board-info.c | 6 -
.../asus/transformer-t30/transformer-t30.env | 2 +-
.../ideapad-yoga-11/ideapad-yoga-11.env | 2 +-
board/samsung/n1/n1.env | 4 +-
board/xiaomi/mocha/mocha.env | 4 -
configs/endeavoru_defconfig | 1 +
configs/grouper_defconfig | 1 +
configs/ideapad-yoga-11_defconfig | 1 +
configs/mocha_defconfig | 1 +
configs/mot_defconfig | 1 +
configs/n1_defconfig | 1 +
configs/ouya_defconfig | 1 +
configs/picasso_defconfig | 1 +
configs/qc750_defconfig | 1 +
configs/star_defconfig | 1 +
configs/transformer_t20_defconfig | 1 +
configs/transformer_t30_defconfig | 1 +
configs/x3_t30_defconfig | 1 +
doc/android/fastboot.rst | 28 +
doc/usage/cmd/bctupdate.rst | 45 +
doc/usage/cmd/ebtupdate.rst | 41 +-
drivers/crypto/tegra/tegra_aes.c | 2 +
drivers/fastboot/fb_command.c | 70 ++
drivers/fastboot/fb_getvar.c | 30 +
include/env/nvidia/prod_upd.env | 66 +-
43 files changed, 1439 insertions(+), 428 deletions(-)
create mode 100644 arch/arm/mach-tegra/bct.c
create mode 100644 arch/arm/mach-tegra/bct.h
create mode 100644 arch/arm/mach-tegra/fastboot.c
delete mode 100644 arch/arm/mach-tegra/tegra124/bct.c
delete mode 100644 arch/arm/mach-tegra/tegra20/bct.c
delete mode 100644 arch/arm/mach-tegra/tegra30/bct.c
create mode 100644 doc/usage/cmd/bctupdate.rst
--
2.53.0
next reply other threads:[~2026-12-05 10:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 10:05 Svyatoslav Ryhel [this message]
2026-12-05 10:05 ` [PATCH v2 1/9] fastboot: Add board_fastboot_flash/erase/get_part_info hooks Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 2/9] ARM: tegra: Refactor BCT patching process Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 3/9] ARM: tegra: Add custom fastboot flash handler Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 4/9] configs: tegra: Enable TEGRA_FASTBOOT_FLASH option Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 5/9] crypto: tegra_aes: Add support for Tegra124 Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 6/9] ARM: tegra124: Add AES engine node and enable it for Mi Pad Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 7/9] ARM: tegra: n1: Add bsev node Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 8/9] board: tegra: Update ebtupdate usage Svyatoslav Ryhel
2026-12-05 10:05 ` [PATCH v2 9/9] doc: cmd: Update ebtupdate description and document bctupdate command Svyatoslav Ryhel
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=20261205100545.106967-1-clamor95@gmail.com \
--to=clamor95@gmail.com \
--cc=glaroque@baylibre.com \
--cc=ilias.apalodimas@linaro.org \
--cc=ion@agorria.com \
--cc=jonasschwoebel@yahoo.de \
--cc=mkorpershoek@kernel.org \
--cc=pgwipeout@gmail.com \
--cc=treding@nvidia.com \
--cc=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.