[PATCH v2 09/10] rockchip: rk3588: prepare env for DFU
Eugen Hristev
eugen.hristev at collabora.com
Tue Aug 1 09:28:10 CEST 2023
Prepare env variables for DFU
Signed-off-by: Eugen Hristev <eugen.hristev at collabora.com>
---
include/configs/rk3588_common.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/include/configs/rk3588_common.h b/include/configs/rk3588_common.h
index 46389d087d29..48414fe946a0 100644
--- a/include/configs/rk3588_common.h
+++ b/include/configs/rk3588_common.h
@@ -7,6 +7,7 @@
#ifndef __CONFIG_RK3588_COMMON_H
#define __CONFIG_RK3588_COMMON_H
+#include <linux/stringify.h>
#include "rockchip-common.h"
#define CFG_IRAM_BASE 0xff000000
@@ -31,6 +32,12 @@
"partitions=" PARTS_DEFAULT \
ENV_MEM_LAYOUT_SETTINGS \
ROCKCHIP_DEVICE_SETTINGS \
- "boot_targets=" BOOT_TARGETS "\0"
+ "boot_targets=" BOOT_TARGETS "\0" \
+ "dfu_alt_info=ram ram0=ram ram " \
+ __stringify(CONFIG_SPL_LOAD_FIT_ADDRESS) " " \
+ __stringify(CONFIG_SYS_DFU_DATA_BUF_SIZE) "\0" \
+ "dfu_alt_info_ram=u-boot.itb ram " \
+ __stringify(CONFIG_SPL_LOAD_FIT_ADDRESS) " " \
+ __stringify(CONFIG_SYS_DFU_DATA_BUF_SIZE)
#endif /* __CONFIG_RK3588_COMMON_H */
--
2.34.1
More information about the U-Boot
mailing list