From e6c14757522187f05ef1cfbd24e674087342cd32 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 11 May 2020 07:37:01 +0900 Subject: [PATCH] board: amlogic: fix build warning and add fdt/initrd_high Fix build warning and add fdt_high/initrd_high. (it's taken from Hardkernel u-boot.) Signed-off-by: Jaehoon Chung --- board/amlogic/w400/w400.c | 2 +- include/samsung/tizen_amlogic.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/board/amlogic/w400/w400.c b/board/amlogic/w400/w400.c index ec3f35d..7f01273 100644 --- a/board/amlogic/w400/w400.c +++ b/board/amlogic/w400/w400.c @@ -44,7 +44,7 @@ static char *get_dfu_alt_boot(char *interface, char *devstr) return NULL; if (!strncmp(devstr, "0", 1)) - alt_boot = CONFIG_DFU_ALT_SYSTEM_SD; + alt_boot = CONFIG_DFU_ALT_SYSTEM_2; else alt_boot = CONFIG_DFU_ALT_SYSTEM; diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index be2a60e..7e728bf 100644 --- a/include/samsung/tizen_amlogic.h +++ b/include/samsung/tizen_amlogic.h @@ -19,7 +19,7 @@ /* DFU */ /* For SD */ -#define CONFIG_DFU_ALT_SYSTEM_SD \ +#define CONFIG_DFU_ALT_SYSTEM_2 \ "Image fat 0 1;" \ "meson64_odroidn2_drm.dtb fat 0 1;" \ "meson64_odroidn2.dtb fat 0 1;" \ @@ -73,6 +73,8 @@ "bootmode=ramdisk\0" \ "bootdev=mmc\0" \ "tfm=setenv bootmode download; run bootcmd\0" \ + "fdt_high=0x20000000\n" \ + "initrd_high=0x3d800000\n" \ "opts=loglevel=4\0" \ "dfu_usb_con=0\0" \ "dfu_interface=mmc\0" \ -- 2.7.4