From 3c0901a14df0ad0480cd29f7323e3b6781117d3a Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 11 May 2020 07:36:47 +0900 Subject: [PATCH] include: tizen_amlogic: set dfu buf/max file size Set dfu buf/max file size. And changed image names for amlogic. Signed-off-by: Jaehoon Chung --- include/samsung/tizen_amlogic.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index a36f9f5f94..7e513c33e9 100644 --- a/include/samsung/tizen_amlogic.h +++ b/include/samsung/tizen_amlogic.h @@ -19,24 +19,27 @@ /* DFU */ #define CONFIG_DFU_ALT_SYSTEM \ - "Image fat 0 1;" \ - "bcm2710-rpi-3-b.dtb fat 0 1;" \ - "bcm2837-rpi-3-b.dtb fat 0 1;" \ - "bcm2710-rpi-3-b-plus.dtb fat 0 1;" \ - "bcm2711-rpi-4-b.dtb fat 0 1;" \ - "boot.scr.uimg fat 0 1;" \ - "boot.img part 0 1;" \ - "rootfs part 0 2;" \ - "system-data part 0 3;" \ - "user part 0 5;" \ - "module part 0 6;" \ - "ramdisk.img part 0 7;" \ - "ramdisk-recovery part 0 8\0" + "Image fat 1 1;" \ + "meson64_odroidn2_drm.dtb fat 1 1;" \ + "meson64_odroidn2.dtb fat 1 1;" \ + "boot.scr.uimg fat 1 1;" \ + "boot.img part 1 1;" \ + "rootfs part 1 2;" \ + "system-data part 1 3;" \ + "user part 1 5;" \ + "module part 1 6;" \ + "ramdisk.img part 1 7\0" #define CONFIG_DFU_ALT_BOOT_EMMC "" #define CONFIG_SET_DFU_ALT_INFO #define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) +/* DFU over USB/UDC */ +#if defined(CONFIG_CMD_DFU) || defined(CONFIG_CMD_THOR) +#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M +#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_2M +#endif + /* SD/MMC configuration */ #define CONFIG_MMC_DEFAULT_DEV 0 -- 2.34.1