generic: mtdsplit_uimage: add uImage magic for the WRN2200 board
authorGabor Juhos <juhosg@openwrt.org>
Wed, 30 Oct 2013 06:51:01 +0000 (06:51 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 30 Oct 2013 06:51:01 +0000 (06:51 +0000)
Should fix boot failure on the WNR2200 boards.
Compile tested only.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38594

target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c

index 57370658795af934601a0c73089a03ffd8c95527..94b22f67e26523b33a0e35d493c9a2876a1b4f0c 100644 (file)
@@ -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;