Just added few lines following WR740N V1 patch and V3 patch from DD-Wrt. Tested it. Firmware uploads correctly through stock WebUI. I'm not sure if I made diff correctly.
Signed-off-by: Martin Raykov martin.ray...@gmail.com Index: target/linux/ar71xx/image/Makefile =================================================================== --- target/linux/ar71xx/image/Makefile (revision 27423) +++ target/linux/ar71xx/image/Makefile (working copy) @@ -704,6 +704,11 @@ $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wr740n-v1,$(tlwe740nv1_cmdline),TL-WR740Nv1) endef +tlwe740nv3_cmdline=board=TL-WR741ND console=ttyS0,115200 +define Image/Build/Profile/TLWR740NV3 + $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wr740n-v3,$(tlwe740nv3_cmdline),TL-WR740Nv3) +endef + tlwr841nv15_cmdline=board=TL-WR841N-v1.5 console=ttyS0,115200 define Image/Build/Profile/TLWR841NV15 $(call Image/Build/Template/$(fs_squash)/$(1),TPLINK,tl-wr841n-v1.5,$(tlwr841nv15_cmdline),TL-WR841Nv1.5) @@ -823,6 +828,7 @@ $(call Image/Build/Profile/TLWA901NDV2,$(1)) $(call Image/Build/Profile/TLWR741NDV1,$(1)) $(call Image/Build/Profile/TLWR740NV1,$(1)) + $(call Image/Build/Profile/TLWR740NV3,$(1)) $(call Image/Build/Profile/TLWR841NV15,$(1)) $(call Image/Build/Profile/TLWR841NDV3,$(1)) $(call Image/Build/Profile/TLWR841NDV5,$(1)) Index: target/linux/ar71xx/generic/profiles/tp-link.mk =================================================================== --- target/linux/ar71xx/generic/profiles/tp-link.mk (revision 27423) +++ target/linux/ar71xx/generic/profiles/tp-link.mk (working copy) @@ -71,6 +71,19 @@ $(eval $(call Profile,TLWR740NV1)) + +define Profile/TLWR740NV3 + NAME:=TP-LINK TL-WR740N v3 + PACKAGES:=kmod-ath9k wpad-mini +endef + +define Profile/TLWR740NV3/Description + Package set optimized for the TP-LINK TL-WR740N v3. +endef + +$(eval $(call Profile,TLWR740NV3)) + + define Profile/TLWR841NV15 NAME:=TP-LINK TL-WR841N v1.5 PACKAGES:=kmod-ath9k wpad-mini Index: tools/firmware-utils/src/mktplinkfw.c =================================================================== --- tools/firmware-utils/src/mktplinkfw.c (revision 27423) +++ tools/firmware-utils/src/mktplinkfw.c (working copy) @@ -39,6 +39,7 @@ #define HWID_TL_WA901ND_V2 0x09010002 #define HWID_TL_WR741ND_V1 0x07410001 #define HWID_TL_WR740N_V1 0x07400001 +#define HWID_TL_WR740N_V3 0x07400300 #define HWID_TL_WR841N_V1_5 0x08410002 #define HWID_TL_WR841ND_V3 0x08410003 #define HWID_TL_WR841ND_V5 0x08410005 @@ -169,6 +170,14 @@ .kernel_ep = 0x80060000, .rootfs_ofs = 0x140000, }, { + .id = "TL-WR740Nv3", + .hw_id = HWID_TL_WR740N_V3, + .hw_rev = 1, + .fw_max_len = 0x3c0000, + .kernel_la = 0x80060000, + .kernel_ep = 0x80060000, + .rootfs_ofs = 0x140000, + }, { .id = "TL-WR841Nv1.5", .hw_id = HWID_TL_WR841N_V1_5, .hw_rev = 2,
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel