All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/9] ARM: tegra: Add custom fastboot flash handler
@ 2026-12-05 10:05 Svyatoslav Ryhel
  2026-12-05 10:05 ` [PATCH v2 1/9] fastboot: Add board_fastboot_flash/erase/get_part_info hooks Svyatoslav Ryhel
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Svyatoslav Ryhel @ 2026-12-05 10:05 UTC (permalink / raw)
  To: Svyatoslav Ryhel, Thierry Reding, Tom Rini, Ilias Apalodimas,
	Jonas Schwöbel, Ion Agorria, Peter Geis, Mattijs Korpershoek,
	Guillaume La Roque
  Cc: u-boot

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-12-05 10:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 10:05 [PATCH v2 0/9] ARM: tegra: Add custom fastboot flash handler Svyatoslav Ryhel
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

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.