Ticket #8455: 0001-ar71xx-add-support-for-TL-WR740N-v1.2.patch

File 0001-ar71xx-add-support-for-TL-WR740N-v1.2.patch, 3.1 KB (added by anonymous, 4 years ago)
  • target/linux/ar71xx/generic/profiles/tp-link.mk

    From ba972bf1bb0823d86762cfe8e7c0fc92091ffa0f Mon Sep 17 00:00:00 2001
    From: Paul Fertser <fercerpav@gmail.com>
    Date: Wed, 15 Dec 2010 01:21:33 +0300
    Subject: [PATCH] ar71xx: add support for TL-WR740N v1
    
    Same as TL-WR741ND but with different hardware ID and without
    detachable antenna.
    
    Signed-off-by: Paul Fertser <fercerpav@gmail.com>
    ---
     target/linux/ar71xx/generic/profiles/tp-link.mk |   11 +++++++++++
     target/linux/ar71xx/image/Makefile              |    5 +++++
     tools/firmware-utils/src/mktplinkfw.c           |    9 +++++++++
     3 files changed, 25 insertions(+), 0 deletions(-)
    
    diff --git a/target/linux/ar71xx/generic/profiles/tp-link.mk b/target/linux/ar71xx/generic/profiles/tp-link.mk
    index a36e175..df3873c 100644
    a b endef 
    4949 
    5050$(eval $(call Profile,TLWR741NDV1)) 
    5151 
     52define Profile/TLWR740NV1 
     53        NAME:=TP-LINK TL-WR740N v1 
     54        PACKAGES:=kmod-ath9k wpad-mini 
     55endef 
     56 
     57define Profile/TLWR740NV1/Description 
     58        Package set optimized for the TP-LINK TL-WR740N v1. 
     59endef 
     60 
     61$(eval $(call Profile,TLWR740NV1)) 
     62 
    5263define Profile/TLWR841NV15 
    5364        NAME:=TP-LINK TL-WR841N v1.5 
    5465        PACKAGES:=kmod-ath9k wpad-mini 
  • target/linux/ar71xx/image/Makefile

    diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
    index f6dc3b0..f1a9362 100644
    a b define Image/Build/Profile/TLWR741NDV1 
    590590        $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wr741nd-v1,board=TL-WR741ND,TL-WR741NDv1) 
    591591endef 
    592592 
     593define Image/Build/Profile/TLWR740NV1 
     594        $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wr740n-v1,board=TL-WR741ND,TL-WR740Nv1) 
     595endef 
     596 
    593597define Image/Build/Profile/TLWR841NV15 
    594598        $(call Image/Build/Template/$(fs_squash)/$(1),TPLINK,tl-wr841n-v1.5,board=TL-WR841N-v1.5,TL-WR841Nv1.5) 
    595599endef 
    define Image/Build/Profile/Default 
    677681        $(call Image/Build/Profile/TLMR3420V1,$(1)) 
    678682        $(call Image/Build/Profile/TLWA901NDV1,$(1)) 
    679683        $(call Image/Build/Profile/TLWR741NDV1,$(1)) 
     684        $(call Image/Build/Profile/TLWR740NV1,$(1)) 
    680685        $(call Image/Build/Profile/TLWR841NV15,$(1)) 
    681686        $(call Image/Build/Profile/TLWR841NDV3,$(1)) 
    682687        $(call Image/Build/Profile/TLWR841NDV5,$(1)) 
  • tools/firmware-utils/src/mktplinkfw.c

    diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c
    index aea7e35..73603bf 100644
    a b  
    3737#define HWID_TL_MR3420_V1       0x34200001 
    3838#define HWID_TL_WA901ND_V1      0x09010001 
    3939#define HWID_TL_WR741ND_V1      0x07410001 
     40#define HWID_TL_WR740N_V1       0x07400001 
    4041#define HWID_TL_WR841N_V1_5     0x08410002 
    4142#define HWID_TL_WR841ND_V3      0x08410003 
    4243#define HWID_TL_WR841ND_V5      0x08410005 
    static struct board_info boards[] = { 
    151152                .kernel_ep      = 0x80060000, 
    152153                .rootfs_ofs     = 0x140000, 
    153154        }, { 
     155                .id             = "TL-WR740Nv1", 
     156                .hw_id          = HWID_TL_WR740N_V1, 
     157                .hw_rev         = 1, 
     158                .fw_max_len     = 0x3c0000, 
     159                .kernel_la      = 0x80060000, 
     160                .kernel_ep      = 0x80060000, 
     161                .rootfs_ofs     = 0x140000, 
     162        }, { 
    154163                .id             = "TL-WR841Nv1.5", 
    155164                .hw_id          = HWID_TL_WR841N_V1_5, 
    156165                .hw_rev         = 2,