
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(+)