[PATCH v2 10/10] configs: rockchip: rock5b-rk3588: enable DFU and related configs
Kever Yang
kever.yang at rock-chips.com
Sat Aug 12 04:53:48 CEST 2023
On 2023/8/1 15:28, Eugen Hristev wrote:
> Enable DFU and related configs, expand stack and buffers to hold
> downloaded image.
>
> Signed-off-by: Eugen Hristev <eugen.hristev at collabora.com>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>
Thanks,
- Kever
> ---
> Changes in v2:
> - added # CONFIG_SPL_BINMAN_UBOOT_SYMBOLS is not set
> because with the configs enabled here, this is automatically set as =y
> and this causes a build failure.
>
> configs/rock5b-rk3588_defconfig | 18 +++++++++++++++---
> 1 file changed, 15 insertions(+), 3 deletions(-)
>
> diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig
> index 3976a6c0f05c..ca70073f3ccc 100644
> --- a/configs/rock5b-rk3588_defconfig
> +++ b/configs/rock5b-rk3588_defconfig
> @@ -4,6 +4,7 @@ CONFIG_SYS_HAS_NONCACHED_MEMORY=y
> CONFIG_COUNTER_FREQUENCY=24000000
> CONFIG_ARCH_ROCKCHIP=y
> CONFIG_TEXT_BASE=0x00a00000
> +CONFIG_SYS_MALLOC_F_LEN=0x500000
> CONFIG_SPL_LIBCOMMON_SUPPORT=y
> CONFIG_SPL_LIBGENERIC_SUPPORT=y
> CONFIG_NR_DRAM_BANKS=2
> @@ -16,9 +17,9 @@ CONFIG_ROCKCHIP_RK3588=y
> CONFIG_SPL_ROCKCHIP_COMMON_BOARD=y
> CONFIG_ROCKCHIP_SPI_IMAGE=y
> CONFIG_SPL_SERIAL=y
> -CONFIG_SPL_STACK_R_ADDR=0x600000
> +CONFIG_SPL_STACK_R_ADDR=0x1000000
> CONFIG_TARGET_ROCK5B_RK3588=y
> -CONFIG_SPL_STACK=0x400000
> +CONFIG_SPL_STACK=0x1000000
> CONFIG_DEBUG_UART_BASE=0xFEB50000
> CONFIG_DEBUG_UART_CLOCK=24000000
> CONFIG_SPL_SPI_FLASH_SUPPORT=y
> @@ -30,6 +31,7 @@ CONFIG_FIT=y
> CONFIG_FIT_VERBOSE=y
> CONFIG_SPL_FIT_SIGNATURE=y
> CONFIG_SPL_LOAD_FIT=y
> +CONFIG_SPL_LOAD_FIT_ADDRESS=0x50000000
> CONFIG_LEGACY_IMAGE_FORMAT=y
> CONFIG_OF_BOARD_SETUP=y
> CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-rock-5b.dtb"
> @@ -41,12 +43,17 @@ CONFIG_SPL_PAD_TO=0x7f8000
> CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
> CONFIG_SPL_BSS_START_ADDR=0x4000000
> CONFIG_SPL_BSS_MAX_SIZE=0x4000
> +# CONFIG_SPL_BINMAN_UBOOT_SYMBOLS is not set
> # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
> # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
> CONFIG_SPL_STACK_R=y
> +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x300000
> +CONFIG_SPL_ENV_SUPPORT=y
> +CONFIG_SPL_RAM_SUPPORT=y
> CONFIG_SPL_SPI_LOAD=y
> CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000
> CONFIG_SPL_ATF=y
> +CONFIG_CMD_DFU=y
> CONFIG_CMD_GPIO=y
> CONFIG_CMD_GPT=y
> CONFIG_CMD_I2C=y
> @@ -59,10 +66,12 @@ CONFIG_CMD_REGULATOR=y
> # CONFIG_SPL_DOS_PARTITION is not set
> CONFIG_SPL_OF_CONTROL=y
> CONFIG_OF_LIVE=y
> -CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> +CONFIG_OF_SPL_REMOVE_PROPS="interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> CONFIG_SPL_CLK=y
> +CONFIG_DFU_RAM=y
> +CONFIG_SYS_DFU_DATA_BUF_SIZE=0x200000
> # CONFIG_USB_FUNCTION_FASTBOOT is not set
> CONFIG_ROCKCHIP_GPIO=y
> CONFIG_SYS_I2C_ROCKCHIP=y
> @@ -93,6 +102,7 @@ CONFIG_ROCKCHIP_SFC=y
> CONFIG_SYSRESET=y
> CONFIG_USB=y
> CONFIG_DM_USB_GADGET=y
> +CONFIG_SPL_DM_USB_GADGET=y
> CONFIG_USB_XHCI_HCD=y
> # CONFIG_USB_XHCI_DWC3_OF_SIMPLE is not set
> CONFIG_USB_EHCI_HCD=y
> @@ -111,7 +121,9 @@ CONFIG_USB_ETHER_MCS7830=y
> CONFIG_USB_ETHER_RTL8152=y
> CONFIG_USB_ETHER_SMSC95XX=y
> CONFIG_USB_GADGET=y
> +CONFIG_SPL_USB_GADGET=y
> CONFIG_USB_GADGET_PRODUCT_NUM=0x350b
> CONFIG_USB_GADGET_DOWNLOAD=y
> CONFIG_USB_FUNCTION_ROCKUSB=y
> +CONFIG_SPL_DFU=y
> CONFIG_ERRNO_STR=y
More information about the U-Boot
mailing list