Message ID | 1446252872-21979-4-git-send-email-lynxis@fe80.eu |
---|---|
State | Accepted |
Headers | show |
Hi, The TL-WDR6500 v2 does not use the standard TP-LINK firmware header. The kernel has a U-Boot header. If you use tplink-8mlzma, the bootloader won't recognize it. Please revert this patch. Regards, Weijie 2015-10-31 8:54 GMT+08:00 Alexander Couzens <lynxis@fe80.eu>: > Signed-off-by: Alexander Couzens <lynxis@fe80.eu> > --- > target/linux/ar71xx/image/Makefile | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > > diff --git a/target/linux/ar71xx/image/Makefile > b/target/linux/ar71xx/image/Makefile > index f0c3a66..be7cf9f 100644 > --- a/target/linux/ar71xx/image/Makefile > +++ b/target/linux/ar71xx/image/Makefile > @@ -332,6 +332,15 @@ $(Device/tl-wdr4300-v1) > endef > TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 > tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1 > > +define Device/tl-wdr6500-v2 > +$(Device/tplink-8mlzma) > + BOARDNAME = TL-WDR6500-v2 > + DEVICE_PROFILE = TLWDR6500V2 > + TPLINK_HWID := 0x65000002 > + TPLINK_HEADER_VERSION := 2 > +endef > +TARGET_DEVICES += tl-wdr6500-v2 > + > define Device/tl-wdr3320-v2 > $(Device/tplink-4mlzma) > BOARDNAME = TL-WDR3320-v2 > @@ -2377,8 +2386,6 @@ $(eval $(call > SingleProfile,Senao,squashfs-only,EAP300V2,eap300v2,EAP300V2,ttyS0 > > $(eval $(call > SingleProfile,TPLINKOLD,squashfs-only,TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M)) > > -$(eval $(call > SingleProfile,TPLINK-64K,64kraw,TLWDR6500V2,tl-wdr6500-v2,TL-WDR6500-v2,ttyS0,115200,0x65000002,1,8Mlzma)) > - > $(eval $(call > SingleProfile,TPLINK-SAFELOADER,64kraw,CPE510,cpe210-220-510-520,CPE510,ttyS0,115200,$$(cpe510_mtdlayout),CPE510)) > > $(eval $(call > SingleProfile,WHRHPG300N,64kraw,WHRG301N,whr-g301n,WHR-G301N,ttyS0,115200,$$(whrhpg300n_mtdlayout),WHR-G301N)) > -- > 2.6.2 > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel >
Hi Weijie, the old image also used mktplink. Do you have a wdr6500? If so it would be nice if you can test the new image. Best lynxis old image code: $(eval $(call SingleProfile,TPLINK-64K,64kraw,TLWDR6500V2,tl-wdr6500-v2,TL-WDR6500-v2,ttyS0,115200,0x65000002,1,8Mlzma)) define Image/Build/TPLINK-64K -$(STAGING_DIR_HOST)/bin/mkimage \ -A mips -O linux -T kernel -a 0x80060000 -C lzma \ -e 0x80060000 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ -d $$(KDIR_TMP)/vmlinux-$(2).bin.lzma $(KDIR_TMP)/vmlinux-$(2).bin.lzma.img -$(STAGING_DIR_HOST)/bin/mktplinkfw \ -H $(4) -W $(5) -F $(6) -N OpenWrt -m 2 -V $(REVISION) $(7) \ -X 0x20000 \ -k $(KDIR_TMP)/vmlinux-$(2).bin.lzma.img \ -r $(KDIR)/root.$(1) \ -a $(call rootfs_align,$(1)) -j \ -o $(call factoryname,$(1),$(2)) -$(STAGING_DIR_HOST)/bin/mktplinkfw \ -H $(4) -W $(5) -F $(6) -N OpenWrt -m 2 -V $(REVISION) $(7) -s \ -X 0x20000 \ -k $(KDIR_TMP)/vmlinux-$(2).bin.lzma.img \ -r $(KDIR)/root.$(1) \ -a $(call rootfs_align,$(1)) -j \ -o $(call sysupname,$(1),$(2)) endef
HI, I have this router and I submitted this router's mach. Have you noticed that the TPLINK-64K generates a U-Boot image for the kernel at first? The normal routine does not do that. So this firmware has two headers, first the tp-link header then the u-boot header. If the u-boot header disappear, the bootloader won't boot the firmware. Regards, Weijie 2015-10-31 21:47 GMT+08:00 Alexander Couzens <lynxis@fe80.eu>: > Hi Weijie, > > the old image also used mktplink. > Do you have a wdr6500? If so it would be nice if you can test the new > image. > > Best > lynxis > > old image code: > > $(eval $(call > SingleProfile,TPLINK-64K,64kraw,TLWDR6500V2,tl-wdr6500-v2,TL-WDR6500-v2,ttyS0,115200,0x65000002,1,8Mlzma)) > > define Image/Build/TPLINK-64K > -$(STAGING_DIR_HOST)/bin/mkimage \ > -A mips -O linux -T kernel -a 0x80060000 -C lzma \ > -e 0x80060000 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ > -d $$(KDIR_TMP)/vmlinux-$(2).bin.lzma > $(KDIR_TMP)/vmlinux-$(2).bin.lzma.img > -$(STAGING_DIR_HOST)/bin/mktplinkfw \ > -H $(4) -W $(5) -F $(6) -N OpenWrt -m 2 -V $(REVISION) $(7) > \ > -X 0x20000 \ > -k $(KDIR_TMP)/vmlinux-$(2).bin.lzma.img \ > -r $(KDIR)/root.$(1) \ > -a $(call rootfs_align,$(1)) -j \ > -o $(call factoryname,$(1),$(2)) > -$(STAGING_DIR_HOST)/bin/mktplinkfw \ > -H $(4) -W $(5) -F $(6) -N OpenWrt -m 2 -V $(REVISION) $(7) > -s \ > -X 0x20000 \ > -k $(KDIR_TMP)/vmlinux-$(2).bin.lzma.img \ > -r $(KDIR)/root.$(1) \ > -a $(call rootfs_align,$(1)) -j \ > -o $(call sysupname,$(1),$(2)) > endef > > -- > Alexander Couzens > > mail: lynxis@fe80.eu > jabber: lynxis@fe80.eu > mobile: +4915123277221 > gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604 >
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index f0c3a66..be7cf9f 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -332,6 +332,15 @@ $(Device/tl-wdr4300-v1) endef TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1 +define Device/tl-wdr6500-v2 +$(Device/tplink-8mlzma) + BOARDNAME = TL-WDR6500-v2 + DEVICE_PROFILE = TLWDR6500V2 + TPLINK_HWID := 0x65000002 + TPLINK_HEADER_VERSION := 2 +endef +TARGET_DEVICES += tl-wdr6500-v2 + define Device/tl-wdr3320-v2 $(Device/tplink-4mlzma) BOARDNAME = TL-WDR3320-v2 @@ -2377,8 +2386,6 @@ $(eval $(call SingleProfile,Senao,squashfs-only,EAP300V2,eap300v2,EAP300V2,ttyS0 $(eval $(call SingleProfile,TPLINKOLD,squashfs-only,TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M)) -$(eval $(call SingleProfile,TPLINK-64K,64kraw,TLWDR6500V2,tl-wdr6500-v2,TL-WDR6500-v2,ttyS0,115200,0x65000002,1,8Mlzma)) - $(eval $(call SingleProfile,TPLINK-SAFELOADER,64kraw,CPE510,cpe210-220-510-520,CPE510,ttyS0,115200,$$(cpe510_mtdlayout),CPE510)) $(eval $(call SingleProfile,WHRHPG300N,64kraw,WHRG301N,whr-g301n,WHR-G301N,ttyS0,115200,$$(whrhpg300n_mtdlayout),WHR-G301N))
Signed-off-by: Alexander Couzens <lynxis@fe80.eu> --- target/linux/ar71xx/image/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)