Re-enable useful features for D-Link DIR-505
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 30 Aug 2016 23:25:13 +0000 (01:25 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Tue, 30 Aug 2016 23:25:13 +0000 (01:25 +0200)
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

index a3571d9fe5b4c316b0a5e436f559ba4a5e9d0bf1..d311d36edba91015a22795df6e71375e72b08d6f 100644 (file)
 
        #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)
 
  * 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
 
 /* 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
 
 /*