From d42f0c9a1bf08ae9ff057ffc4b440b5acfad0662 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 6 Jul 2011 10:36:56 +0000 Subject: [PATCH] fixes mtd maps for lantiq easy50712 and easy50601 evalkit. without this patch mini_fo/jffs caused the uboot to be overwritten on firstboot SVN-Revision: 27489 --- .../lantiq/patches-2.6.32/0014-fix_mtd.patch | 32 +++++++++++++++++++ .../lantiq/patches-2.6.39/0014-fix_mtd.patch | 32 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 target/linux/lantiq/patches-2.6.32/0014-fix_mtd.patch create mode 100644 target/linux/lantiq/patches-2.6.39/0014-fix_mtd.patch diff --git a/target/linux/lantiq/patches-2.6.32/0014-fix_mtd.patch b/target/linux/lantiq/patches-2.6.32/0014-fix_mtd.patch new file mode 100644 index 0000000000..051ba86cf4 --- /dev/null +++ b/target/linux/lantiq/patches-2.6.32/0014-fix_mtd.patch @@ -0,0 +1,32 @@ +--- a/arch/mips/lantiq/xway/mach-easy50601.c ++++ b/arch/mips/lantiq/xway/mach-easy50601.c +@@ -32,12 +32,7 @@ + { + .name = "linux", + .offset = 0x20000, +- .size = 0xE0000, +- }, +- { +- .name = "rootfs", +- .offset = 0x100000, +- .size = 0x300000, ++ .size = 0x3d0000, + }, + }; + +--- a/arch/mips/lantiq/xway/mach-easy50712.c ++++ b/arch/mips/lantiq/xway/mach-easy50712.c +@@ -34,12 +34,7 @@ + { + .name = "linux", + .offset = 0x20000, +- .size = 0xe0000, +- }, +- { +- .name = "rootfs", +- .offset = 0x100000, +- .size = 0x300000, ++ .size = 0x3d0000, + }, + }; + diff --git a/target/linux/lantiq/patches-2.6.39/0014-fix_mtd.patch b/target/linux/lantiq/patches-2.6.39/0014-fix_mtd.patch new file mode 100644 index 0000000000..051ba86cf4 --- /dev/null +++ b/target/linux/lantiq/patches-2.6.39/0014-fix_mtd.patch @@ -0,0 +1,32 @@ +--- a/arch/mips/lantiq/xway/mach-easy50601.c ++++ b/arch/mips/lantiq/xway/mach-easy50601.c +@@ -32,12 +32,7 @@ + { + .name = "linux", + .offset = 0x20000, +- .size = 0xE0000, +- }, +- { +- .name = "rootfs", +- .offset = 0x100000, +- .size = 0x300000, ++ .size = 0x3d0000, + }, + }; + +--- a/arch/mips/lantiq/xway/mach-easy50712.c ++++ b/arch/mips/lantiq/xway/mach-easy50712.c +@@ -34,12 +34,7 @@ + { + .name = "linux", + .offset = 0x20000, +- .size = 0xe0000, +- }, +- { +- .name = "rootfs", +- .offset = 0x100000, +- .size = 0x300000, ++ .size = 0x3d0000, + }, + }; + -- 2.30.2