diff options
author | John Crispin <blogic@openwrt.org> | 2015-01-30 08:06:40 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-01-30 08:06:40 +0000 |
commit | 93eb47fb3d13c7d85ca193cfbe2ebc50e0af0ec1 (patch) | |
tree | 9c2af604ff670904c96e507cc6db4c7d84866c8b /target/linux/generic/files | |
parent | f223ab856d64ad86fe82d371dc4b5702ed386af4 (diff) | |
download | master-187ad058-93eb47fb3d13c7d85ca193cfbe2ebc50e0af0ec1.tar.gz master-187ad058-93eb47fb3d13c7d85ca193cfbe2ebc50e0af0ec1.tar.bz2 master-187ad058-93eb47fb3d13c7d85ca193cfbe2ebc50e0af0ec1.zip |
ar71xx: add Netgear WNR1000v2/WNR1000v2-VC support (#18633)
The board is already supported by OpenWrt. WNR1000v2/WNR1000v2-VC are
pretty much the same as WNR2000v3/WNR612v2, therefore the same
initialization code and flash layout is used.
Signed-off-by: Ștefan Rusu <saltwaterc@gmail.com>
Tested-by: Douglas Fraser <1dsfraser@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44221 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r-- | target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c index 7dad63c9bb..1df0ac1ae1 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c @@ -233,6 +233,8 @@ static struct mtd_part_parser uimage_generic_parser = { #define FW_MAGIC_WNR2000V4 0x32303034 #define FW_MAGIC_WNR2200 0x32323030 #define FW_MAGIC_WNR612V2 0x32303631 +#define FW_MAGIC_WNR1000V2 0x31303031 +#define FW_MAGIC_WNR1000V2_VC 0x31303030 #define FW_MAGIC_WNDR3700 0x33373030 #define FW_MAGIC_WNDR3700V2 0x33373031 @@ -241,6 +243,8 @@ 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_WNR1000V2: + case FW_MAGIC_WNR1000V2_VC: case FW_MAGIC_WNR2000V3: case FW_MAGIC_WNR2200: case FW_MAGIC_WNDR3700: |