diff options
author | John Crispin <blogic@openwrt.org> | 2014-11-03 20:20:56 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-11-03 20:20:56 +0000 |
commit | 1b0343012a2aeb8fd6e06fadd79daba7a2db59d9 (patch) | |
tree | e3ba1b63957cb091e469fbc94a44208d14025213 /target/linux/generic | |
parent | ebf8e128cc2d1e1e3318d89251d33598cc16874e (diff) | |
download | upstream-1b0343012a2aeb8fd6e06fadd79daba7a2db59d9.tar.gz upstream-1b0343012a2aeb8fd6e06fadd79daba7a2db59d9.tar.bz2 upstream-1b0343012a2aeb8fd6e06fadd79daba7a2db59d9.zip |
ar71xx: add support for Netgear WNR2000v4
Signed-off-by: Michaƫl Burtin <mburtin@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43173 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c b/target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c index de55297870..7dad63c9bb 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_WNR2000V4 0x32303034 #define FW_MAGIC_WNR2200 0x32323030 #define FW_MAGIC_WNR612V2 0x32303631 #define FW_MAGIC_WNDR3700 0x33373030 @@ -237,6 +238,7 @@ static struct mtd_part_parser uimage_generic_parser = { static bool uimage_verify_wndr3700(struct uimage_header *header) { + uint8_t expected_type = IH_TYPE_FILESYSTEM; switch be32_to_cpu(header->ih_magic) { case FW_MAGIC_WNR612V2: case FW_MAGIC_WNR2000V3: @@ -244,12 +246,15 @@ static bool uimage_verify_wndr3700(struct uimage_header *header) case FW_MAGIC_WNDR3700: case FW_MAGIC_WNDR3700V2: break; + case FW_MAGIC_WNR2000V4: + expected_type = IH_TYPE_KERNEL; + break; default: return false; } if (header->ih_os != IH_OS_LINUX || - header->ih_type != IH_TYPE_FILESYSTEM) + header->ih_type != expected_type) return false; return true; |