diff options
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.patch | 34 |
1 files changed, 14 insertions, 20 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 d0bef45f88..db9a7a6fb2 100644 --- a/package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch +++ b/package/boot/uboot-kirkwood/patches/008-nsa325-uboot-generic.patch @@ -1,8 +1,8 @@ --- a/arch/arm/mach-kirkwood/Kconfig +++ b/arch/arm/mach-kirkwood/Kconfig -@@ -68,6 +68,9 @@ config TARGET_SBx81LIFKW - config TARGET_SBx81LIFXCAT - bool "Allied Telesis SBx81GP24/SBx81GT24" +@@ -68,6 +68,9 @@ config TARGET_SBx81LIFXCAT + config TARGET_DB_88F6281_BP + bool "Marvell DB-88F6281-BP" +config TARGET_NSA325 + bool "Zyxel NSA325 board" @@ -17,7 +17,7 @@ +source "board/zyxel/nsa325/Kconfig" source "board/alliedtelesis/SBx81LIFKW/Kconfig" source "board/alliedtelesis/SBx81LIFXCAT/Kconfig" - + source "board/Marvell/db-88f6281-bp/Kconfig" --- /dev/null +++ b/board/zyxel/nsa325/Kconfig @@ -0,0 +1,12 @@ @@ -489,8 +489,10 @@ +#endif /* __NSA325_H */ --- /dev/null +++ b/configs/nsa325_defconfig -@@ -0,0 +1,40 @@ +@@ -0,0 +1,48 @@ +CONFIG_ARM=y ++CONFIG_SYS_DCACHE_OFF=y ++CONFIG_ARCH_CPU_INIT=y +CONFIG_KIRKWOOD=y +CONFIG_SYS_TEXT_BASE=0x600000 +CONFIG_TARGET_NSA325=y @@ -518,12 +520,18 @@ +CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=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_CMD_MTDPARTS=y +CONFIG_CMD_ENV=y +CONFIG_CMD_NAND=y +CONFIG_EFI_PARTITION=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_USB_EHCI_HCD=y +CONFIG_USB_STORAGE=y @@ -532,7 +540,7 @@ +CONFIG_SYS_LONGHELP=y --- /dev/null +++ b/include/configs/nsa325.h -@@ -0,0 +1,120 @@ +@@ -0,0 +1,106 @@ +/* + * (C) Copyright 2016 bodhi <mibodhi@gmail.com> + * @@ -593,20 +601,6 @@ +#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 + */ +#define CONFIG_BOOTCOMMAND \ |