OpenWrt Forum Archive

Topic: Unable to Flash via WEB TP-Link TL-WR703N

The content of this topic has been archived between 5 Apr 2018 and 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have this message

Error Code: 18005 
Upload file version does not match with the models.

Im tryng to flash this versión of openwrt.
AA(12.09)
Information

The current software version: 
3.17.1 Build 140120 Rel.56593n 
Current hardware version: 
WR703N v1 00000000

Please Help
In Chinese :3

错误代码:18005
上传的文件版本与机型不符。
当前软件版本:    
3.17.1 Build 140120 Rel.56593n
当前硬件版本:    
WR703N v1 00000000
注意:升级时请选择与当前硬件版本一致的软件。升级过程不能关闭路由器电源,否则将导致路由器损坏而无法使用。升级过程约1至2分钟,当升级结束后,路由器将会自动重新启动

(Last edited by Dr_Deathscythe on 8 Mar 2014, 03:35)

The same to you

hi, good news: you are not alone.

with newest tp-link firmware (140120) tplink GUI seems to refuse a firmware without uboot.

the only firmware that works is the same version you can download from here (useless.. DO NOT UPDATE if you have an older tp-link firmware, or you will not be able to flash anything else...)

http://service.tp-link.com.cn/detail_Download_1390.html

this very same firwmare image is not accepted if you trim out uboot the usual way (cut first 0x20200 bytes), so OLDER tplink firmware and openwrt or dd-wrt firmware is NOT accepted.

imho the only way is build and image that contains uboot, but i do not know how to calculate checksum.
it seems that mktplinkfw.c already contains the necessary code, we just need to figure out HOW to use it:

https://dev.openwrt.org/browser/trunk/t … tplinkfw.c

nebbia88 wrote:

imho the only way is build and image that contains uboot, but i do not know how to calculate checksum.
it seems that mktplinkfw.c already contains the necessary code, we just need to figure out HOW to use it:
https://dev.openwrt.org/browser/trunk/t … tplinkfw.c

So we don't have a solution now =S

Dr_Deathscythe wrote:

So we don't have a solution now =S

Or take out the flash chip (a simple 8pins device) and program it externally, you can even
buy ready programmed flash chips on Ebay and solder that in, these are most of the time
16MB so you have a lot more space to install packages.

If you want to build your own image i can highly recommend the modified U-boot from
pepe2k, i don't know if you then still have the checksum issue, i always program my flash
chips externally.

Grtzz  Mark

Just curious if the OP and other users bought their router preloaded with 140120 firmware or if they manually upgraded it.

Also, what version is printed on the bottom of the router?

Mark_V wrote:

Or take out the flash chip (a simple 8pins device) and program it externally, you can even
buy ready programmed flash chips on Ebay and solder that in, these are most of the time
16MB so you have a lot more space to install packages.

If you want to build your own image i can highly recommend the modified U-boot from
pepe2k, i don't know if you then still have the checksum issue, i always program my flash
chips externally.

Grtzz  Mark

Thanks for your answer. The problem is i don't know to do it. Im just an end user.

King0fK0ng wrote:

Just curious if the OP and other users bought their router preloaded with 140120 firmware or if they manually upgraded it.

Also, what version is printed on the bottom of the router?

Says 1.1

(Last edited by Dr_Deathscythe on 10 Mar 2014, 22:10)

"1.1"? I was expecting 1.6, 1.7 or 1.8, not 1.1.

So did you buy it new with the 140120 firmware pre-installed or did you buy it used or upgraded it manually yourself first?

King0fK0ng wrote:

"1.1"? I was expecting 1.6, 1.7 or 1.8, not 1.1.

So did you buy it new with the 140120 firmware pre-installed or did you buy it used or upgraded it manually yourself first?

Sorry was 1.6. My error. Upgraded.

(Last edited by Dr_Deathscythe on 11 Mar 2014, 01:35)

Any idea how to fix it?

Any progress on that? I have flashed my v. 1.5 with latest original firmware. And now i can't move to openwrt.

Okay, I just picked up a new 703N router and it is a version v1.7 (manufactured in 4/2014) and running into the same issue as the OP, so it looks like TP-LINK is sending out routers with this latest firmware and it's not OpenWRT friendly.

3.17.1 Build 140120 Rel.56593n

Any ideas on what need to change so that the TP-LINK firmware will accept the OpenWRT firmware?

King0fK0ng wrote:

Okay, I just picked up a new 703N router and it is a version v1.7 (manufactured in 4/2014) and running into the same issue as the OP, so it looks like TP-LINK is sending out routers with this latest firmware and it's not OpenWRT friendly.

3.17.1 Build 140120 Rel.56593n

Any ideas on what need to change so that the TP-LINK firmware will accept the OpenWRT firmware?


Having the same exact troubles here. Just picked one up the past week.

So from this thread (https://forum.openwrt.org/viewtopic.php … 83#p222183) I believe the new firmware is doing a product id and product version check.

if ( (original_product_id == recovery_product_id)
             && (original_product_ver== recovery_product_ver) )

I'm wondering if we can just (hex) edit the openwrt image to get it to load. Any ideas?

http://i.imgur.com/6LT97aA.jpg


Here is the official TP-Link Firmware that is now not allowing OpenWRT flashing via the website (note that U-Boot is also included in the file):
TL-WR703N V1.0_140120
http://service.tp-link.com.cn/detail_download_1390.html

King0fK0ng wrote:

So from this thread (https://forum.openwrt.org/viewtopic.php … 83#p222183) I believe the new firmware is doing a product id and product version check.

if ( (original_product_id == recovery_product_id)
             && (original_product_ver== recovery_product_ver) )

that topic is about tftp recovery mode from uboot, and has nothing to do with the check during firmware upgrade from web GUI sad

Hi @nebbia88, yes I'm aware that topic is on tftp recover mode from uboot. I was just assuming that the uboot firmware check method would be the same used in the web gui.

After some more research last night, I don't think the product id and version check is new. It looks like that have been there for a while now and OpenWRT was already handled it.

I found this TP Link firmware checker/editor tool and checked the new TP-Link 140120 firmware with the OpenWRT version and they are the same.

http://i.imgur.com/svH9iew.jpg

nebbia88 wrote:
King0fK0ng wrote:

So from this thread (https://forum.openwrt.org/viewtopic.php … 83#p222183) I believe the new firmware is doing a product id and product version check.

if ( (original_product_id == recovery_product_id)
             && (original_product_ver== recovery_product_ver) )

that topic is about tftp recovery mode from uboot, and has nothing to do with the check during firmware upgrade from web GUI sad

I also re-read your post above about the web gui not accepting the TP-Link 140120 firmware with the U-Boot trimmed out.

Interesting...

I guess it would help if someone with serial console access to upgrade to the 140120 firmware and maybe see if the console would give us an hints. Maybe access to the web gui files to see the check is being performed?

I have another 703n router with pepe2k recovery firmware. I'm wondering if it's possible trim out the Uboot from the 140120 firmware and load it on my 703n router with pepe2k recovery firmware? That way I can use the netconsole to see what's going on.

Also, not sure if this 140120 firmware include the tftp recover mode in uboot mentioned in the other thread. I tried plugging in the router with the reset button pushed and wiresharked the connection, but didnt see any tftp packets. I'll be honest though, not sure if I did it right.

For the record, I don't have the solder skills to add a serial console to the 703n (those darn tx/rx pads are super tiny and I lifted the contacts attempting). I've totally messed up two 703n attempting sad

(Last edited by King0fK0ng on 7 Jun 2014, 16:44)

nebbia88 wrote:

this very same firwmare image is not accepted if you trim out uboot the usual way (cut first 0x20200 bytes), so OLDER tplink firmware and openwrt or dd-wrt firmware is NOT accepted.

imho the only way is build and image that contains uboot, but i do not know how to calculate checksum.
it seems that mktplinkfw.c already contains the necessary code, we just need to figure out HOW to use it:

https://dev.openwrt.org/browser/trunk/t … tplinkfw.c

Okay I tried trimming out the uBoot on the TP-Link Firmware and confirmed the original TP-Link firmware without Uboot doesn't load. Also tried patching it using the TP-Link firmware patching app (screenshot above).

How about if we trim out the uboot from the TP-Link Firmware and merge it with the OpenWRT firmware? Not sure what the correct dd command would be to extract the UBoot from the TP-Link Firmware.

Here is the command I used to trim out the UBoot. What would be the somewhat opposite command to only output the Uboot part of the file?

Cut the first 0x20200 (that is 131,584 = 257*512) Bytes from original firmware:

dd if=orig.bin of=tplink.bin skip=257 bs=512

Edit: I believe I figured out the command.
dd if=wr703nv1.bin of=uboot.bin bs=512 count=257

Now to merge it.

Edit: didn't work. Properly didn't like the checksum or something

(Last edited by King0fK0ng on 8 Jun 2014, 19:54)

Does anyone have a link to the previous version of TP-LINK Firmware for the 703N router?

I have the pre-1.7 firmware on my laptop if anyone needs it. 

Anyone try using the mr3040 firmware?  I had good luck using that in the past since it was in English and the only thing it broke was the led.

Okay, I tried both the mr3020 and older versions of firmware and no go, as expected.

try flash with prolific usb serial adapter

@leo8

that's not the point, obviously you can flash with serial, but this topic is about GUI flashing (no hw mod necessary...)

Can you post the link that describes how to flash via serial?  I assume i can put the old v1.6 factory image on it and be able to whatever else I need from that point?