Skip to content

Command for entering mask rom USB download mode

Michal Suchanek u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cmd: boot: add brom cmd to reboot to brom dnl modearch/arm/include/asm/arch-rockchip/boot_mode.h cmd/boot.c+21 -00 replies
2/2cmd: boot: add brom cmd to reboot to FEL modearch/arm/include/asm/arch-sunxi/cpu.h arch/arm/mach-sunxi/Kconfig arch/arm/mach-sunxi/board.c +1 more+69 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Command for entering mask rom USB download mode

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(+)
Signature · 1 line
2.36.1