public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] Command for entering mask rom USB download mode
@ 2022-07-03 19:20 Michal Suchanek
  2022-07-03 19:20 ` [PATCH 1/2] cmd: boot: add brom cmd to reboot to brom dnl mode Michal Suchanek
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Michal Suchanek @ 2022-07-03 19:20 UTC (permalink / raw)
  To: u-boot
  Cc: Michal Suchanek, Andre Przywara, Simon Glass, Philipp Tomsich,
	Kever Yang, Jagan Teki, Andre Przywara, Andy Yan, Michal Simek,
	Igor Opaniuk


Hello,

many ARM SoCs have a mask rom feature that provides interface for
downloading firmware over USB.

Downstream rockchip u-boot has 'brom' or 'rbrom' command for this
purpose, and downstream sunxi u-boot provides 'efex' command. p-boot has
code for entering FEL on A64 SoC.

With this patch I am able to activate the USB downloader on a rk3399 but
the rkflashtool fails to communicate with the device. On a H2+ I can get
into the FEL mode and get flash parameters. YMMV

I don't have any great idea how to structure this so that the command
does not need platform-specific code. Is there an example of a command
that has platform-specific implementations?

Thanks

Michal

Andy Yan (1):
  cmd: boot: add brom cmd to reboot to brom dnl mode

Michal Suchanek (1):
  cmd: boot: add brom cmd to reboot to FEL mode

 .../arm/include/asm/arch-rockchip/boot_mode.h |  1 +
 arch/arm/include/asm/arch-sunxi/cpu.h         | 11 ++++++
 arch/arm/mach-sunxi/Kconfig                   | 18 ++++++++++
 arch/arm/mach-sunxi/board.c                   | 24 +++++++++++++
 cmd/boot.c                                    | 35 +++++++++++++++++++
 5 files changed, 89 insertions(+)

-- 
2.36.1


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

end of thread, other threads:[~2022-07-04 10:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-03 19:20 [PATCH 0/2] Command for entering mask rom USB download mode Michal Suchanek
2022-07-03 19:20 ` [PATCH 1/2] cmd: boot: add brom cmd to reboot to brom dnl mode Michal Suchanek
2022-07-03 19:20 ` [PATCH 2/2] cmd: boot: add brom cmd to reboot to FEL mode Michal Suchanek
2022-07-03 22:23   ` Andre Przywara
2022-07-04  9:33     ` Michal Suchánek
2022-07-03 22:22 ` [PATCH 0/2] Command for entering mask rom USB download mode Andre Przywara
2022-07-04  9:42   ` Michal Suchánek
2022-07-03 23:26 ` Samuel Holland
2022-07-04 10:32   ` Michal Suchánek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox