Commit 6cafea5c authored by Pawel Dembicki's avatar Pawel Dembicki Committed by Petr Štetiar
Browse files

uboot-kirkwood: update to 2020.04



Update U-Boot to current 2020.04 release for kirkwood platform.

Catch up with upstream and move some configuration options from
the header files to the corresponding defconfig files.

Compile tested: all devices
Run tested: nsa310, pogoplugv4

Tested-by: Cezary Jackiewicz <cezary@eko.one.pl> [nsa310]
Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
parent 29a458b0
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_VERSION:=2019.01 PKG_VERSION:=2020.04
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_HASH:=50bd7e5a466ab828914d080d5f6a432345b500e8fba1ad3b7b61e95e60d51c22 PKG_HASH:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
include $(INCLUDE_DIR)/u-boot.mk include $(INCLUDE_DIR)/u-boot.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
......
...@@ -25,7 +25,7 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in ...@@ -25,7 +25,7 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in
--- a/arch/arm/mach-kirkwood/Kconfig --- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig +++ b/arch/arm/mach-kirkwood/Kconfig
@@ -56,6 +56,9 @@ config TARGET_GOFLEXHOME @@ -53,6 +53,9 @@ config TARGET_GOFLEXHOME
config TARGET_NAS220 config TARGET_NAS220
bool "BlackArmor NAS220" bool "BlackArmor NAS220"
...@@ -505,8 +505,10 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in ...@@ -505,8 +505,10 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in
+#endif /* __NSA310_H */ +#endif /* __NSA310_H */
--- /dev/null --- /dev/null
+++ b/configs/nsa310_defconfig +++ b/configs/nsa310_defconfig
@@ -0,0 +1,40 @@ @@ -0,0 +1,48 @@
+CONFIG_ARM=y +CONFIG_ARM=y
+CONFIG_SYS_DCACHE_OFF=y
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_KIRKWOOD=y +CONFIG_KIRKWOOD=y
+CONFIG_SYS_TEXT_BASE=0x600000 +CONFIG_SYS_TEXT_BASE=0x600000
+CONFIG_TARGET_NSA310=y +CONFIG_TARGET_NSA310=y
...@@ -533,12 +535,18 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in ...@@ -533,12 +535,18 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in
+CONFIG_CMD_EXT4=y +CONFIG_CMD_EXT4=y
+CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=y
+CONFIG_CMD_JFFS2=y +CONFIG_CMD_JFFS2=y
+CONFIG_MTD=y
+CONFIG_MTD_RAW_NAND=y
+CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0x0c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)" +CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0x0c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)"
+CONFIG_CMD_MTDPARTS=y +CONFIG_CMD_MTDPARTS=y
+CONFIG_CMD_ENV=y +CONFIG_CMD_ENV=y
+CONFIG_CMD_NAND=y +CONFIG_CMD_NAND=y
+CONFIG_EFI_PARTITION=y +CONFIG_EFI_PARTITION=y
+CONFIG_ENV_IS_IN_NAND=y +CONFIG_ENV_IS_IN_NAND=y
+CONFIG_ENV_SIZE=0x20000
+CONFIG_ENV_OFFSET=0xC0000
+CONFIG_ENV_SECT_SIZE=0x20000
+CONFIG_ENV_ADDR=0xC0000
+CONFIG_CMD_UBI=y +CONFIG_CMD_UBI=y
+CONFIG_USB=y +CONFIG_USB=y
+CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_HCD=y
...@@ -548,7 +556,7 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in ...@@ -548,7 +556,7 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in
+CONFIG_SYS_LONGHELP=y +CONFIG_SYS_LONGHELP=y
--- /dev/null --- /dev/null
+++ b/include/configs/nsa310.h +++ b/include/configs/nsa310.h
@@ -0,0 +1,117 @@ @@ -0,0 +1,103 @@
+/* Copyright (C) 2015-2016 bodhi <mibodhi@gmail.com> +/* Copyright (C) 2015-2016 bodhi <mibodhi@gmail.com>
+ * + *
+ * Based on + * Based on
...@@ -606,20 +614,6 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in ...@@ -606,20 +614,6 @@ NOTE: this patch is ready for upstream, LEDE-specific parts are in
+#include "mv-common.h" +#include "mv-common.h"
+ +
+/* +/*
+ * Environment variables configurations
+ */
+#ifdef CONFIG_CMD_NAND
+#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
+#endif
+
+/* max 4k env size is enough, but in case of nand
+ * it has to be rounded to sector size
+ */
+#define CONFIG_ENV_SIZE 0x20000 /* 128k */
+#define CONFIG_ENV_ADDR 0xc0000
+#define CONFIG_ENV_OFFSET 0xc0000 /* env starts here */
+
+/*
+ * Default environment variables + * Default environment variables
+ */ + */
+#define CONFIG_BOOTCOMMAND \ +#define CONFIG_BOOTCOMMAND \
......
--- a/arch/arm/mach-kirkwood/Kconfig --- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig +++ b/arch/arm/mach-kirkwood/Kconfig
@@ -68,6 +68,9 @@ config TARGET_SBx81LIFKW @@ -68,6 +68,9 @@ config TARGET_SBx81LIFXCAT
config TARGET_SBx81LIFXCAT config TARGET_DB_88F6281_BP
bool "Allied Telesis SBx81GP24/SBx81GT24" bool "Marvell DB-88F6281-BP"
+config TARGET_NSA325 +config TARGET_NSA325
+ bool "Zyxel NSA325 board" + bool "Zyxel NSA325 board"
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
+source "board/zyxel/nsa325/Kconfig" +source "board/zyxel/nsa325/Kconfig"
source "board/alliedtelesis/SBx81LIFKW/Kconfig" source "board/alliedtelesis/SBx81LIFKW/Kconfig"
source "board/alliedtelesis/SBx81LIFXCAT/Kconfig" source "board/alliedtelesis/SBx81LIFXCAT/Kconfig"
source "board/Marvell/db-88f6281-bp/Kconfig"
--- /dev/null --- /dev/null
+++ b/board/zyxel/nsa325/Kconfig +++ b/board/zyxel/nsa325/Kconfig
@@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
...@@ -489,8 +489,10 @@ ...@@ -489,8 +489,10 @@
+#endif /* __NSA325_H */ +#endif /* __NSA325_H */
--- /dev/null --- /dev/null
+++ b/configs/nsa325_defconfig +++ b/configs/nsa325_defconfig
@@ -0,0 +1,40 @@ @@ -0,0 +1,48 @@
+CONFIG_ARM=y +CONFIG_ARM=y
+CONFIG_SYS_DCACHE_OFF=y
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_KIRKWOOD=y +CONFIG_KIRKWOOD=y
+CONFIG_SYS_TEXT_BASE=0x600000 +CONFIG_SYS_TEXT_BASE=0x600000
+CONFIG_TARGET_NSA325=y +CONFIG_TARGET_NSA325=y
...@@ -518,12 +520,18 @@ ...@@ -518,12 +520,18 @@
+CONFIG_CMD_EXT4=y +CONFIG_CMD_EXT4=y
+CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=y
+CONFIG_CMD_JFFS2=y +CONFIG_CMD_JFFS2=y
+CONFIG_MTD=y
+CONFIG_MTD_RAW_NAND=y
+CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0x0c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)" +CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0x0c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)"
+CONFIG_CMD_MTDPARTS=y +CONFIG_CMD_MTDPARTS=y
+CONFIG_CMD_ENV=y +CONFIG_CMD_ENV=y
+CONFIG_CMD_NAND=y +CONFIG_CMD_NAND=y
+CONFIG_EFI_PARTITION=y +CONFIG_EFI_PARTITION=y
+CONFIG_ENV_IS_IN_NAND=y +CONFIG_ENV_IS_IN_NAND=y
+CONFIG_ENV_SIZE=0x20000
+CONFIG_ENV_OFFSET=0xC0000
+CONFIG_ENV_SECT_SIZE=0x20000
+CONFIG_ENV_ADDR=0xC0000
+CONFIG_CMD_UBI=y +CONFIG_CMD_UBI=y
+CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_STORAGE=y +CONFIG_USB_STORAGE=y
...@@ -532,7 +540,7 @@ ...@@ -532,7 +540,7 @@
+CONFIG_SYS_LONGHELP=y +CONFIG_SYS_LONGHELP=y
--- /dev/null --- /dev/null
+++ b/include/configs/nsa325.h +++ b/include/configs/nsa325.h
@@ -0,0 +1,120 @@ @@ -0,0 +1,106 @@
+/* +/*
+ * (C) Copyright 2016 bodhi <mibodhi@gmail.com> + * (C) Copyright 2016 bodhi <mibodhi@gmail.com>
+ * + *
...@@ -593,20 +601,6 @@ ...@@ -593,20 +601,6 @@
+#include "mv-common.h" +#include "mv-common.h"
+ +
+/* +/*
+ * Environment variables configurations
+ */
+#ifdef CONFIG_CMD_NAND
+#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
+#endif
+/*
+ * max 4k env size is enough, but in case of nand
+ * it has to be rounded to sector size
+ */
+#define CONFIG_ENV_SIZE 0x20000 /* 128k */
+#define CONFIG_ENV_ADDR 0xc0000
+#define CONFIG_ENV_OFFSET 0xc0000 /* env starts here */
+
+/*
+ * Default environment variables + * Default environment variables
+ */ + */
+#define CONFIG_BOOTCOMMAND \ +#define CONFIG_BOOTCOMMAND \
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
+source "board/cloudengines/pogoplugv4/Kconfig" +source "board/cloudengines/pogoplugv4/Kconfig"
source "board/d-link/dns325/Kconfig" source "board/d-link/dns325/Kconfig"
source "board/iomega/iconnect/Kconfig" source "board/iomega/iconnect/Kconfig"
source "board/keymile/km_arm/Kconfig" source "board/keymile/Kconfig"
--- a/arch/arm/mach-kirkwood/include/mach/kw88f6192.h --- a/arch/arm/mach-kirkwood/include/mach/kw88f6192.h
+++ b/arch/arm/mach-kirkwood/include/mach/kw88f6192.h +++ b/arch/arm/mach-kirkwood/include/mach/kw88f6192.h
@@ -15,6 +15,6 @@ @@ -15,6 +15,6 @@
...@@ -532,8 +532,10 @@ ...@@ -532,8 +532,10 @@
+#endif /* __POGOPLUGV4_H */ +#endif /* __POGOPLUGV4_H */
--- /dev/null --- /dev/null
+++ b/configs/pogoplugv4_defconfig +++ b/configs/pogoplugv4_defconfig
@@ -0,0 +1,43 @@ @@ -0,0 +1,51 @@
+CONFIG_ARM=y +CONFIG_ARM=y
+CONFIG_SYS_DCACHE_OFF=y
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_KIRKWOOD=y +CONFIG_KIRKWOOD=y
+CONFIG_SYS_TEXT_BASE=0x600000 +CONFIG_SYS_TEXT_BASE=0x600000
+CONFIG_TARGET_POGOPLUGV4=y +CONFIG_TARGET_POGOPLUGV4=y
...@@ -561,6 +563,8 @@ ...@@ -561,6 +563,8 @@
+CONFIG_CMD_EXT4=y +CONFIG_CMD_EXT4=y
+CONFIG_CMD_FAT=y +CONFIG_CMD_FAT=y
+CONFIG_CMD_JFFS2=y +CONFIG_CMD_JFFS2=y
+CONFIG_MTD=y
+CONFIG_MTD_RAW_NAND=y
+CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0x1c0000(uboot),0x40000(uboot_env),0x7e00000(ubi)" +CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0x1c0000(uboot),0x40000(uboot_env),0x7e00000(ubi)"
+CONFIG_CMD_MTDPARTS=y +CONFIG_CMD_MTDPARTS=y
+CONFIG_CMD_ENV=y +CONFIG_CMD_ENV=y
...@@ -569,6 +573,10 @@ ...@@ -569,6 +573,10 @@
+CONFIG_CMD_GPIO=y +CONFIG_CMD_GPIO=y
+CONFIG_EFI_PARTITION=y +CONFIG_EFI_PARTITION=y
+CONFIG_ENV_IS_IN_NAND=y +CONFIG_ENV_IS_IN_NAND=y
+CONFIG_ENV_SIZE=0x20000
+CONFIG_ENV_OFFSET=0x1C0000
+CONFIG_ENV_SECT_SIZE=0x20000
+CONFIG_ENV_ADDR=0x1C0000
+CONFIG_CMD_UBI=y +CONFIG_CMD_UBI=y
+CONFIG_USB=y +CONFIG_USB=y
+CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_HCD=y
...@@ -617,7 +625,7 @@ ...@@ -617,7 +625,7 @@
+} +}
--- a/drivers/mmc/Makefile --- a/drivers/mmc/Makefile
+++ b/drivers/mmc/Makefile +++ b/drivers/mmc/Makefile
@@ -61,6 +61,7 @@ obj-$(CONFIG_MMC_SDHCI_TANGIER) += tang @@ -66,6 +66,7 @@ obj-$(CONFIG_MMC_SDHCI_TANGIER) += tang
obj-$(CONFIG_MMC_SDHCI_TEGRA) += tegra_mmc.o obj-$(CONFIG_MMC_SDHCI_TEGRA) += tegra_mmc.o
obj-$(CONFIG_MMC_SDHCI_XENON) += xenon_sdhci.o obj-$(CONFIG_MMC_SDHCI_XENON) += xenon_sdhci.o
obj-$(CONFIG_MMC_SDHCI_ZYNQ) += zynq_sdhci.o obj-$(CONFIG_MMC_SDHCI_ZYNQ) += zynq_sdhci.o
...@@ -1112,7 +1120,7 @@ ...@@ -1112,7 +1120,7 @@
+} +}
--- a/include/configs/mv-common.h --- a/include/configs/mv-common.h
+++ b/include/configs/mv-common.h +++ b/include/configs/mv-common.h
@@ -77,4 +77,10 @@ @@ -75,4 +75,10 @@
#define CONFIG_SYS_MAX_NAND_DEVICE 1 #define CONFIG_SYS_MAX_NAND_DEVICE 1
#endif #endif
...@@ -1125,7 +1133,7 @@ ...@@ -1125,7 +1133,7 @@
#endif /* _MV_COMMON_H */ #endif /* _MV_COMMON_H */
--- /dev/null --- /dev/null
+++ b/include/configs/pogoplugv4.h +++ b/include/configs/pogoplugv4.h
@@ -0,0 +1,127 @@ @@ -0,0 +1,113 @@
+/* +/*
+ * Copyright (C) 2014-2016 bodhi <mibodhi@gmail.com> + * Copyright (C) 2014-2016 bodhi <mibodhi@gmail.com>
+ * Based on + * Based on
...@@ -1188,20 +1196,6 @@ ...@@ -1188,20 +1196,6 @@
+#include "mv-common.h" +#include "mv-common.h"
+ +
+/* +/*
+ * Environment variables configurations
+ */
+#ifdef CONFIG_CMD_NAND
+
+#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
+
+
+#endif
+
+#define CONFIG_ENV_SIZE 0x20000 /* 128k */
+#define CONFIG_ENV_ADDR 0x1c0000
+#define CONFIG_ENV_OFFSET 0x1c0000 /* env starts here */
+
+/*
+ * Default environment variables + * Default environment variables
+ */ + */
+#define CONFIG_BOOTCOMMAND \ +#define CONFIG_BOOTCOMMAND \
......
...@@ -8,16 +8,7 @@ ...@@ -8,16 +8,7 @@
/* /*
* mv-common.h should be defined after CMD configs since it used them * mv-common.h should be defined after CMD configs since it used them
@@ -35,27 +36,22 @@ @@ -37,19 +38,15 @@
* it has to be rounded to sector size
*/
#define CONFIG_ENV_SIZE 0x20000 /* 128k */
-#define CONFIG_ENV_ADDR 0x80000
-#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
+#define CONFIG_ENV_OFFSET 0xe0000 /* env starts here */
/*
* Default environment variables
*/ */
#define CONFIG_BOOTCOMMAND \ #define CONFIG_BOOTCOMMAND \
"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
...@@ -46,7 +37,16 @@ ...@@ -46,7 +37,16 @@
* Ethernet Driver configuration * Ethernet Driver configuration
--- a/configs/dockstar_defconfig --- a/configs/dockstar_defconfig
+++ b/configs/dockstar_defconfig +++ b/configs/dockstar_defconfig
@@ -18,7 +18,7 @@ CONFIG_CMD_PING=y @@ -5,7 +5,7 @@ CONFIG_KIRKWOOD=y
CONFIG_SYS_TEXT_BASE=0x600000
CONFIG_TARGET_DOCKSTAR=y
CONFIG_ENV_SIZE=0x20000
-CONFIG_ENV_OFFSET=0x80000
+CONFIG_ENV_OFFSET=0xE0000
CONFIG_NR_DRAM_BANKS=2
CONFIG_IDENT_STRING="\nSeagate FreeAgent DockStar"
CONFIG_BOOTDELAY=3
@@ -23,7 +23,7 @@ CONFIG_CMD_EXT2=y
CONFIG_CMD_FAT=y CONFIG_CMD_FAT=y
CONFIG_CMD_JFFS2=y CONFIG_CMD_JFFS2=y
CONFIG_CMD_MTDPARTS=y CONFIG_CMD_MTDPARTS=y
......
--- a/include/configs/iconnect.h --- a/include/configs/iconnect.h
+++ b/include/configs/iconnect.h +++ b/include/configs/iconnect.h
@@ -42,24 +42,22 @@ @@ -44,17 +44,15 @@
#define CONFIG_ENV_SECT_SIZE 0x20000
#endif
#define CONFIG_ENV_SIZE 0x20000
-#define CONFIG_ENV_OFFSET 0x80000
+#define CONFIG_ENV_OFFSET 0xe0000
/*
* Default environment variables
*/ */
#define CONFIG_BOOTCOMMAND \ #define CONFIG_BOOTCOMMAND \
"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
...@@ -32,7 +24,16 @@ ...@@ -32,7 +24,16 @@
* Ethernet driver configuration * Ethernet driver configuration
--- a/configs/iconnect_defconfig --- a/configs/iconnect_defconfig
+++ b/configs/iconnect_defconfig +++ b/configs/iconnect_defconfig
@@ -11,13 +11,14 @@ CONFIG_SYS_PROMPT="iconnect => " @@ -5,7 +5,7 @@ CONFIG_KIRKWOOD=y
CONFIG_SYS_TEXT_BASE=0x600000
CONFIG_TARGET_ICONNECT=y
CONFIG_ENV_SIZE=0x20000
-CONFIG_ENV_OFFSET=0x80000
+CONFIG_ENV_OFFSET=0xE0000
CONFIG_NR_DRAM_BANKS=2
CONFIG_IDENT_STRING=" Iomega iConnect"
CONFIG_BOOTDELAY=3
@@ -16,13 +16,14 @@ CONFIG_SYS_PROMPT="iconnect => "
CONFIG_CMD_NAND=y CONFIG_CMD_NAND=y
CONFIG_CMD_USB=y CONFIG_CMD_USB=y
# CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_SETEXPR is not set
......
--- a/include/configs/ib62x0.h --- a/include/configs/ib62x0.h
+++ b/include/configs/ib62x0.h +++ b/include/configs/ib62x0.h
@@ -47,21 +47,15 @@ @@ -39,21 +39,15 @@
*/ */
#define CONFIG_BOOTCOMMAND \ #define CONFIG_BOOTCOMMAND \
"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* Ethernet driver configuration * Ethernet driver configuration
--- a/configs/ib62x0_defconfig --- a/configs/ib62x0_defconfig
+++ b/configs/ib62x0_defconfig +++ b/configs/ib62x0_defconfig
@@ -21,7 +21,7 @@ CONFIG_CMD_PING=y @@ -26,7 +26,7 @@ CONFIG_CMD_EXT2=y
CONFIG_CMD_FAT=y CONFIG_CMD_FAT=y
CONFIG_CMD_JFFS2=y CONFIG_CMD_JFFS2=y
CONFIG_CMD_MTDPARTS=y CONFIG_CMD_MTDPARTS=y
......
--- a/include/configs/pogo_e02.h --- a/include/configs/pogo_e02.h
+++ b/include/configs/pogo_e02.h +++ b/include/configs/pogo_e02.h
@@ -42,23 +42,23 @@ @@ -42,17 +42,17 @@
#endif
#define CONFIG_ENV_SIZE 0x20000 /* 128k */
-#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
+#define CONFIG_ENV_OFFSET 0xe0000 /* env starts here */
/*
* Default environment variables * Default environment variables
*/ */
#define CONFIG_BOOTCOMMAND \ #define CONFIG_BOOTCOMMAND \
...@@ -36,7 +29,16 @@ ...@@ -36,7 +29,16 @@
* Ethernet Driver configuration * Ethernet Driver configuration
--- a/configs/pogo_e02_defconfig --- a/configs/pogo_e02_defconfig
+++ b/configs/pogo_e02_defconfig +++ b/configs/pogo_e02_defconfig
@@ -18,6 +18,7 @@ CONFIG_CMD_PING=y @@ -5,7 +5,7 @@ CONFIG_KIRKWOOD=y
CONFIG_SYS_TEXT_BASE=0x600000
CONFIG_TARGET_POGO_E02=y
CONFIG_ENV_SIZE=0x20000
-CONFIG_ENV_OFFSET=0x60000
+CONFIG_ENV_OFFSET=0xE0000
CONFIG_NR_DRAM_BANKS=2
CONFIG_IDENT_STRING="\nPogo E02"
CONFIG_BOOTDELAY=3
@@ -23,6 +23,7 @@ CONFIG_CMD_EXT2=y
CONFIG_CMD_FAT=y CONFIG_CMD_FAT=y
CONFIG_CMD_JFFS2=y CONFIG_CMD_JFFS2=y
CONFIG_CMD_MTDPARTS=y CONFIG_CMD_MTDPARTS=y
......
--- a/include/configs/goflexhome.h --- a/include/configs/goflexhome.h
+++ b/include/configs/goflexhome.h +++ b/include/configs/goflexhome.h
@@ -66,17 +66,15 @@ @@ -60,17 +60,15 @@
*/ */
#define CONFIG_BOOTCOMMAND \ #define CONFIG_BOOTCOMMAND \
"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
* Ethernet Driver configuration * Ethernet Driver configuration
--- a/configs/goflexhome_defconfig --- a/configs/goflexhome_defconfig
+++ b/configs/goflexhome_defconfig +++ b/configs/goflexhome_defconfig
@@ -23,7 +23,7 @@ CONFIG_CMD_EXT4=y @@ -28,7 +28,7 @@ CONFIG_CMD_FAT=y
CONFIG_CMD_JFFS2=y CONFIG_CMD_JFFS2=y
CONFIG_CMD_MTDPARTS=y CONFIG_CMD_MTDPARTS=y
CONFIG_MTDIDS_DEFAULT="nand0=orion_nand" CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
......
--- a/arch/arm/mach-kirkwood/Kconfig --- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig +++ b/arch/arm/mach-kirkwood/Kconfig
@@ -102,4 +102,7 @@ source "board/zyxel/nsa310/Kconfig" @@ -103,4 +103,7 @@ source "board/alliedtelesis/SBx81LIFKW/K
source "board/alliedtelesis/SBx81LIFKW/Kconfig"
source "board/alliedtelesis/SBx81LIFXCAT/Kconfig" source "board/alliedtelesis/SBx81LIFXCAT/Kconfig"
source "board/Marvell/db-88f6281-bp/Kconfig"
+config SECOND_STAGE +config SECOND_STAGE
+ bool "OpenWrt second stage hack" + bool "OpenWrt second stage hack"
+ +
endif endif
--- a/include/configs/dockstar.h --- a/include/configs/dockstar.h
+++ b/include/configs/dockstar.h +++ b/include/configs/dockstar.h
@@ -65,4 +65,6 @@ @@ -60,4 +60,6 @@
* File system * File system
*/ */
+#include "openwrt-kirkwood-common.h" +#include "openwrt-kirkwood-common.h"
+ +
#endif /* _CONFIG_DOCKSTAR_H */ #endif /* _CONFIG_DOCKSTAR_H */
--- a/include/configs/ib62x0.h --- a/include/configs/ib62x0.h
+++ b/include/configs/ib62x0.h +++ b/include/configs/ib62x0.h
@@ -85,4 +85,6 @@ @@ -77,4 +77,6 @@
#define CONFIG_RTC_MV #define CONFIG_RTC_MV
#endif /* CONFIG_CMD_DATE */ #endif /* CONFIG_CMD_DATE */
+#include "openwrt-kirkwood-common.h" +#include "openwrt-kirkwood-common.h"
+ +
#endif /* _CONFIG_IB62x0_H */ #endif /* _CONFIG_IB62x0_H */
--- a/include/configs/iconnect.h --- a/include/configs/iconnect.h
+++ b/include/configs/iconnect.h +++ b/include/configs/iconnect.h
@@ -72,4 +72,6 @@ @@ -67,4 +67,6 @@
* File system * File system
*/ */
+#include "openwrt-kirkwood-common.h" +#include "openwrt-kirkwood-common.h"
+ +
#endif /* _CONFIG_ICONNECT_H */ #endif /* _CONFIG_ICONNECT_H */
...@@ -71,34 +71,34 @@ ...@@ -71,34 +71,34 @@
+#endif /* __OPENWRT_KIRKWOOD_COMMON_H */ +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
--- a/include/configs/pogo_e02.h --- a/include/configs/pogo_e02.h
+++ b/include/configs/pogo_e02.h +++ b/include/configs/pogo_e02.h
@@ -72,4 +72,6 @@ @@ -66,4 +66,6 @@
* File system * File system
*/ */
+#include "openwrt-kirkwood-common.h" +#include "openwrt-kirkwood-common.h"
+ +
#endif /* _CONFIG_POGO_E02_H */ #endif /* _CONFIG_POGO_E02_H */
--- a/include/configs/goflexhome.h