aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
diff options
context:
space:
mode:
authorAlberto Bursi <alberto.bursi@outlook.it>2017-01-22 14:43:51 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-24 16:21:24 +0100
commit3d1b2b22d6d27f9da64d159743fd77ee7265eee9 (patch)
tree52dc178542e3cb41bf5ee651c79efcfb1cba0295 /package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
parentbeb69e242e9ff5873002d29456aa39985fb94bfc (diff)
downloadupstream-3d1b2b22d6d27f9da64d159743fd77ee7265eee9.tar.gz
upstream-3d1b2b22d6d27f9da64d159743fd77ee7265eee9.tar.bz2
upstream-3d1b2b22d6d27f9da64d159743fd77ee7265eee9.zip
uboot-kirkwood: add uboot for nsa310b
this commit allows to make a standalone u-boot for nsa310b. While both first-stage and second-stage u-boot work fine if installed to flash or loaded with kwboot, I could not get stock u-boot nor bodhi's u-boot to chainload any second stage u-boot (I also tried with dockstar's uboot that works fine on this device if loaded with kwboot). Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
Diffstat (limited to 'package/boot/uboot-kirkwood/patches/200-openwrt-config.patch')
-rw-r--r--package/boot/uboot-kirkwood/patches/200-openwrt-config.patch27
1 files changed, 18 insertions, 9 deletions
diff --git a/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch b/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
index 37f30d0a50..1f5dd84107 100644
--- a/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
+++ b/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
@@ -1,9 +1,9 @@
--- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig
-@@ -74,4 +74,7 @@ source "board/Seagate/goflexhome/Kconfig
- source "board/Seagate/nas220/Kconfig"
+@@ -78,4 +78,7 @@ source "board/Seagate/nas220/Kconfig"
+ source "board/zyxel/nsa310/Kconfig"
source "board/zyxel/nsa310s/Kconfig"
-
+
+config SECOND_STAGE
+ bool "OpenWrt second stage hack"
+
@@ -13,7 +13,7 @@
@@ -98,4 +98,6 @@
#define CONFIG_CMD_MTDPARTS
#define CONFIG_LZO
-
+
+#include "openwrt-kirkwood-common.h"
+
#endif /* _CONFIG_DOCKSTAR_H */
@@ -22,7 +22,7 @@
@@ -108,4 +108,6 @@
#define CONFIG_RTC_MV
#endif /* CONFIG_CMD_DATE */
-
+
+#include "openwrt-kirkwood-common.h"
+
#endif /* _CONFIG_IB62x0_H */
@@ -31,7 +31,7 @@
@@ -103,4 +103,6 @@
#define CONFIG_MTD_PARTITIONS
#define CONFIG_CMD_MTDPARTS
-
+
+#include "openwrt-kirkwood-common.h"
+
#endif /* _CONFIG_ICONNECT_H */
@@ -83,7 +83,7 @@
@@ -99,4 +99,6 @@
#define CONFIG_CMD_MTDPARTS
#define CONFIG_LZO
-
+
+#include "openwrt-kirkwood-common.h"
+
#endif /* _CONFIG_POGO_E02_H */
@@ -92,7 +92,7 @@
@@ -109,4 +109,6 @@
#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
#endif /* CONFIG_CMD_IDE */
-
+
+#include "openwrt-kirkwood-common.h"
+
#endif /* _CONFIG_SHEEVAPLUG_H */
@@ -101,7 +101,16 @@
@@ -122,4 +122,6 @@
#define CONFIG_RTC_MV
#endif /* CONFIG_CMD_DATE */
-
+
+#include "openwrt-kirkwood-common.h"
+
#endif /* _CONFIG_GOFLEXHOME_H */
+--- a/include/configs/nsa310.h
++++ b/include/configs/nsa310.h
+@@ -166,4 +166,6 @@
+ #define CONFIG_CMD_DNS
+ #endif /* CONFIG_CMD_DATE */
+
++#include "openwrt-kirkwood-common.h"
++
+ #endif /* _CONFIG_NSA310_H */