From: Petr Hodina <[email protected]> Define dfu_alt_info with a single entry that maps the whole 16 MiB SPI NOR on bus 1, chip select 0 to "u-boot-spi". With this "dfu 0" from the U-Boot prompt exposes it, so u-boot-rockchip-spi.bin can be flashed over USB without going through maskrom:
dfu-util -a u-boot-spi -D u-boot-rockchip-spi.bin Signed-off-by: Petr Hodina <[email protected]> --- include/configs/pinephone-pro-rk3399.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/pinephone-pro-rk3399.h b/include/configs/pinephone-pro-rk3399.h index 9cd44473439..9e5d3800347 100644 --- a/include/configs/pinephone-pro-rk3399.h +++ b/include/configs/pinephone-pro-rk3399.h @@ -10,7 +10,8 @@ #define ROCKCHIP_DEVICE_SETTINGS \ "stdin=serial,usbkbd\0" \ "stdout=serial,vidconsole\0" \ - "stderr=serial,vidconsole\0" + "stderr=serial,vidconsole\0" \ + "dfu_alt_info=sf 1:0=u-boot-spi raw 0x0 0x1000000\0" #include <configs/rk3399_common.h> -- 2.55.0
