aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch
diff options
context:
space:
mode:
authorPaul Wassi <p.wassi@gmx.at>2017-10-11 19:19:06 +0200
committerMathias Kresin <dev@kresin.me>2017-11-03 20:04:52 +0100
commit67da6a7c5e45baa1cd9ce4ebbf22d4797274b368 (patch)
treeca715cf15dd7b7e53652cde577c51ae0a2ddc2be /package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch
parentdfa29309887287d9f5bc9ef9748786525ad7ccee (diff)
downloadupstream-67da6a7c5e45baa1cd9ce4ebbf22d4797274b368.tar.gz
upstream-67da6a7c5e45baa1cd9ce4ebbf22d4797274b368.tar.bz2
upstream-67da6a7c5e45baa1cd9ce4ebbf22d4797274b368.zip
uboot-kirkwood: update to 2017.09
Upgrade uboot-kirkwood to upstream release 2017.09 Catch up with upstream and move configuration options from simple defines to Kconfig, as otherwise dependencies would not be resolved and code would not compile. Tested-by: Alberto Bursi <alberto.bursi@outlook.it> Signed-off-by: Paul Wassi <p.wassi@gmx.at>
Diffstat (limited to 'package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch')
-rw-r--r--package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch47
1 files changed, 20 insertions, 27 deletions
diff --git a/package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch b/package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch
index 0bb79fa4e5..4b4356e5d5 100644
--- a/package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch
+++ b/package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch
@@ -2,22 +2,22 @@ diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
index 819bd3b..6a2d578 100644
--- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig
-@@ -59,6 +59,9 @@ config TARGET_NSA310
+@@ -62,6 +62,9 @@ config TARGET_NSA310
config TARGET_NSA310S
- bool "Zyxel NSA310S"
-
+ bool "Zyxel NSA310S"
+
+config TARGET_NSA325
+ bool "Zyxel NSA325 board"
+
endchoice
-
+
config SYS_SOC
-@@ -82,5 +85,6 @@ source "board/Seagate/goflexhome/Kconfig"
+@@ -85,5 +88,6 @@ source "board/Seagate/goflexhome/Kconfig
source "board/Seagate/nas220/Kconfig"
source "board/zyxel/nsa310/Kconfig"
source "board/zyxel/nsa310s/Kconfig"
+source "board/zyxel/nsa325/Kconfig"
-
+
endif
diff --git a/board/zyxel/nsa325/Kconfig b/board/zyxel/nsa325/Kconfig
new file mode 100644
@@ -511,7 +511,7 @@ new file mode 100644
index 0000000..48e09cc
--- /dev/null
+++ b/configs/nsa325_defconfig
-@@ -0,0 +1,22 @@
+@@ -0,0 +1,34 @@
+CONFIG_ARM=y
+CONFIG_KIRKWOOD=y
+CONFIG_TARGET_NSA325=y
@@ -527,19 +527,31 @@ index 0000000..48e09cc
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
++CONFIG_CMD_DNS=y
++CONFIG_CMD_SNTP=y
+CONFIG_CMD_USB=y
+CONFIG_USB=y
++CONFIG_CMD_DATE=y
+CONFIG_CMD_EXT2=y
++CONFIG_CMD_EXT4=y
+CONFIG_CMD_FAT=y
++CONFIG_CMD_JFFS2=y
++CONFIG_CMD_MTDPARTS=y
++CONFIG_CMD_ENV=y
++CONFIG_CMD_NAND=y
+CONFIG_EFI_PARTITION=y
++CONFIG_ENV_IS_IN_NAND=y
+CONFIG_CMD_UBI=y
++CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_STORAGE=y
++CONFIG_LZMA=y
++CONFIG_LZO=y
diff --git a/include/configs/nsa325.h b/include/configs/nsa325.h
new file mode 100644
index 0000000..e5a8e2a
--- /dev/null
+++ b/include/configs/nsa325.h
-@@ -0,0 +1,148 @@
+@@ -0,0 +1,129 @@
+/*
+ * (C) Copyright 2016 bodhi <mibodhi@gmail.com>
+ *
@@ -579,7 +591,6 @@ index 0000000..e5a8e2a
+ * High Level Configuration Options (easy to change)
+ */
+#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
-+#define CONFIG_KIRKWOOD 1 /* SOC Family Name */
+#define CONFIG_KW88F6281 1 /* SOC Name */
+
+#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
@@ -592,14 +603,8 @@ index 0000000..e5a8e2a
+/*
+ * Commands configuration
+ */
-+#define CONFIG_CMD_ENV
-+#define CONFIG_CMD_IDE
-+#define CONFIG_CMD_NAND
-+#define CONFIG_CMD_DATE
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_PREBOOT
-+#define CONFIG_SYS_HUSH_PARSER
-+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
+
+/*
+ * mv-common.h should be defined after CMD configs since it used them
@@ -611,10 +616,7 @@ index 0000000..e5a8e2a
+ * Environment variables configurations
+ */
+#ifdef CONFIG_CMD_NAND
-+#define CONFIG_ENV_IS_IN_NAND 1
+#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
-+#else
-+#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
+#endif
+/*
+ * max 4k env size is enough, but in case of nand
@@ -650,7 +652,6 @@ index 0000000..e5a8e2a
+#ifdef CONFIG_CMD_NET
+#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
+#define CONFIG_PHY_BASE_ADR 0x1
-+#define CONFIG_PHY_GIGE
+#define CONFIG_NETCONSOLE
+#endif /* CONFIG_CMD_NET */
+
@@ -665,24 +666,16 @@ index 0000000..e5a8e2a
+/*
+ * File system
+ */
-+#define CONFIG_CMD_EXT4
-+#define CONFIG_CMD_JFFS2
+#define CONFIG_JFFS2_NAND
+#define CONFIG_JFFS2_LZO
-+#define CONFIG_CMD_UBIFS
-+#define CONFIG_RBTREE
+#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
+#define CONFIG_MTD_PARTITIONS
-+#define CONFIG_CMD_MTDPARTS
-+#define CONFIG_LZO
+
+/*
+ * Date Time
+ */
+#ifdef CONFIG_CMD_DATE
+#define CONFIG_RTC_MV
-+#define CONFIG_CMD_SNTP
-+#define CONFIG_CMD_DNS
+#endif /* CONFIG_CMD_DATE */
+
+#define CONFIG_KIRKWOOD_GPIO /* Enable GPIO Support */