aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-10-30 06:51:01 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-10-30 06:51:01 +0000
commit5f7d85b46d604e4e67d39789f5374f1047d38cb7 (patch)
treecc5c025e3a1d50e51d7bc3aa9a7526f3303feca6 /target
parenta82dc55eca9ad63f92e4d7b7a09fcd84c1b3affe (diff)
downloadupstream-5f7d85b46d604e4e67d39789f5374f1047d38cb7.tar.gz
upstream-5f7d85b46d604e4e67d39789f5374f1047d38cb7.tar.bz2
upstream-5f7d85b46d604e4e67d39789f5374f1047d38cb7.zip
generic: mtdsplit_uimage: add uImage magic for the WRN2200 board
Should fix boot failure on the WNR2200 boards. Compile tested only. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38594 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c b/target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c
index 5737065879..94b22f67e2 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c
@@ -230,6 +230,7 @@ static struct mtd_part_parser uimage_generic_parser = {
};
#define FW_MAGIC_WNR2000V3 0x32303033
+#define FW_MAGIC_WNR2200 0x32323030
#define FW_MAGIC_WNR612V2 0x32303631
#define FW_MAGIC_WNDR3700 0x33373030
#define FW_MAGIC_WNDR3700V2 0x33373031
@@ -239,6 +240,7 @@ static bool uimage_verify_wndr3700(struct uimage_header *header)
switch be32_to_cpu(header->ih_magic) {
case FW_MAGIC_WNR612V2:
case FW_MAGIC_WNR2000V3:
+ case FW_MAGIC_WNR2200:
case FW_MAGIC_WNDR3700:
case FW_MAGIC_WNDR3700V2:
break;