From 1978e9bebae9b8a7ae0e1e28db7914c741f30b2f Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Wed, 31 Aug 2016 01:25:13 +0200 Subject: [PATCH] Re-enable useful features for D-Link DIR-505 As we have saved some space in image, re-enable useful features for D-Link DIR-505, including writable environment (use second half of the mac partition for that). --- u-boot/include/configs/ap121.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/u-boot/include/configs/ap121.h b/u-boot/include/configs/ap121.h index a3571d9..d311d36 100644 --- a/u-boot/include/configs/ap121.h +++ b/u-boot/include/configs/ap121.h @@ -186,7 +186,7 @@ #define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:06 "\ "rootfstype=squashfs init=/sbin/init "\ - "mtdparts=ar7240-nor0:64k(u-boot),64k(ART),64k(mac),64k(nvram),256k(language),1024k(uImage),6656k(rootfs)" + "mtdparts=ar7240-nor0:64k(u-boot),64k(art),64k(mac),64k(nvram),256k(language),1024k(uImage),6656k(rootfs)" #elif defined(CONFIG_FOR_GS_OOLITE_V1_DEV) @@ -240,8 +240,12 @@ * Environment configuration * ========================= */ -#if defined(CONFIG_FOR_DRAGINO_V2) ||\ - defined(CONFIG_FOR_MESH_POTATO_V2) +#if defined(CONFIG_FOR_DLINK_DIR505_A1) + #define CFG_ENV_ADDR 0x9F028000 + #define CFG_ENV_SIZE 0x7C00 + #define CFG_ENV_SECT_SIZE 0x10000 +#elif defined(CONFIG_FOR_DRAGINO_V2) ||\ + defined(CONFIG_FOR_MESH_POTATO_V2) #define CFG_ENV_ADDR 0x9F030000 #define CFG_ENV_SIZE 0x8000 #define CFG_ENV_SECT_SIZE 0x10000 @@ -350,19 +354,8 @@ /* D-Link DIR-505 is limited to 64 KB only and doesn't use env */ #if defined(CONFIG_FOR_DLINK_DIR505_A1) - #define CFG_ENV_IS_NOWHERE 1 - #undef CFG_ENV_IS_IN_FLASH - #undef CONFIG_CMD_DHCP - #undef CONFIG_CMD_SNTP - #undef CONFIG_CMD_IMI - #undef CONFIG_CMD_ENV #undef CONFIG_CMD_LOADB - #undef CONFIG_CMD_BUTTON - #undef CONFIG_CMD_SLEEP - - #undef CONFIG_UPG_SCRIPTS_UBOOT - #undef CONFIG_UPG_SCRIPTS_FW #endif /* -- 2.25.1