From ed019091a3b1367175e24402db479ee39259f076 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 12 Feb 2018 14:47:19 +0900 Subject: [PATCH] config: rpi3: enable the configurations relevant to NFSDOWN Enable the configurations relevant to nfsdown command for rpi3. Change-Id: Ic050057e75f4e92b1507ca84c642ba3c798ba6fc Signed-off-by: Jaehoon Chung --- configs/rpi_3_defconfig | 1 + include/configs/rpi.h | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/configs/rpi_3_defconfig b/configs/rpi_3_defconfig index 3cebd65..9ab8c5a 100644 --- a/configs/rpi_3_defconfig +++ b/configs/rpi_3_defconfig @@ -45,3 +45,4 @@ CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_CMD_NFS_DOWNLOAD=y diff --git a/include/configs/rpi.h b/include/configs/rpi.h index 522b41c..bd278ed 100644 --- a/include/configs/rpi.h +++ b/include/configs/rpi.h @@ -97,6 +97,29 @@ #define CONFIG_CMDLINE_TAG #define CONFIG_INITRD_TAG +#define CONFIG_DFU_ALT_SYSTEM \ + "Image fat 0 1;" \ + "bcm2710-rpi3-b.dtb fat 0 1;" \ + "bcm2837-rpi3-b.dtb fat 0 1;" \ + "u-boot.img fat 0 1;" \ + "u-boot.env fat 0 1;" \ + "optee.bin 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" + +#define CONFIG_DFU_ALT_BOOT_EMMC "" + +/* NFSDOWN */ +#define CONFIG_IP_DEFRAG + +#define CONFIG_SET_DFU_ALT_INFO +#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) + /* Environment */ #define ENV_DEVICE_SETTINGS \ "stdin=serial,usbkbd\0" \ -- 2.7.4