1 --- a/arch/arm/cpu/arm926ejs/kirkwood/Kconfig
2 +++ b/arch/arm/cpu/arm926ejs/kirkwood/Kconfig
3 @@ -84,4 +84,7 @@ source "board/raidsonic/ib62x0/Kconfig"
4 source "board/Seagate/dockstar/Kconfig"
5 source "board/Seagate/goflexhome/Kconfig"
8 + bool "OpenWrt second stage hack"
11 --- a/include/configs/dockstar.h
12 +++ b/include/configs/dockstar.h
14 #define CONFIG_CMD_MTDPARTS
17 +#include "openwrt-kirkwood-common.h"
19 #endif /* _CONFIG_DOCKSTAR_H */
20 --- a/include/configs/ib62x0.h
21 +++ b/include/configs/ib62x0.h
23 #define CONFIG_MTD_PARTITIONS
24 #define CONFIG_CMD_MTDPARTS
26 +#include "openwrt-kirkwood-common.h"
28 #endif /* _CONFIG_IB62x0_H */
29 --- a/include/configs/iconnect.h
30 +++ b/include/configs/iconnect.h
32 #define CONFIG_MTD_PARTITIONS
33 #define CONFIG_CMD_MTDPARTS
35 +#include "openwrt-kirkwood-common.h"
37 #endif /* _CONFIG_ICONNECT_H */
39 +++ b/include/configs/openwrt-kirkwood-common.h
42 + * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
44 + * SPDX-License-Identifier: GPL-2.0+
47 +#ifndef __OPENWRT_KIRKWOOD_COMMON_H
48 +#define __OPENWRT_KIRKWOOD_COMMON_H
51 +#define CONFIG_CMD_BOOTZ
53 +#if defined(CONFIG_CMD_NET)
54 +#define CONFIG_CMD_DHCP
55 +#define CONFIG_CMD_PING
59 +#undef CONFIG_BOOTDELAY
60 +#define CONFIG_BOOTDELAY 3
63 +#if defined(CONFIG_CMD_NET)
64 +#define CONFIG_SERVERIP 192.168.1.2
65 +#define CONFIG_IPADDR 192.168.1.1
68 +/* second stage loader */
69 +#if defined(CONFIG_SECOND_STAGE)
70 +#undef CONFIG_ENV_IS_IN_NAND
71 +#undef CONFIG_ENV_SECT_SIZE
72 +#define CONFIG_ENV_IS_NOWHERE
75 +/* Flattened Device Tree */
76 +#define CONFIG_OF_LIBFDT
78 +/* Flattened uImage Tree */
80 +#define CONFIG_FIT_VERBOSE
88 +#undef CONFIG_BOOTM_NETBSD
89 +#undef CONFIG_BOOTM_PLAN9
90 +#undef CONFIG_BOOTM_RTEMS
92 +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
93 --- a/include/configs/pogo_e02.h
94 +++ b/include/configs/pogo_e02.h
96 #define CONFIG_CMD_MTDPARTS
99 +#include "openwrt-kirkwood-common.h"
101 #endif /* _CONFIG_POGO_E02_H */
102 --- a/include/configs/sheevaplug.h
103 +++ b/include/configs/sheevaplug.h
105 #define CONFIG_CMD_MTDPARTS
108 +#include "openwrt-kirkwood-common.h"
110 #endif /* _CONFIG_SHEEVAPLUG_H */