OpenWrt Forum Archive

Topic: TP-Link TL-WR1043ND

The content of this topic has been archived on 10 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've got an TP-Link TL-WR1043ND router with openwrt. I will go back to the original firmware. But why, i can't use the web-gui for flashing the orig. fw?

can i flash my orig. fw with out cut the first 0x20200 bytes from original firmware.

Can I use the web-gui with the "uncutted" orig. fw to go back to the orig. fw???

Thanks
Max

----

Sry, for my bad english

No and no.

ok, but I can't cut this, can you cut this for me, please???

Why is it so hard to cut the image yourself? With a minute of googling you'd have found dd.exe for windows: http://www.chrysocome.net/dd

Modified original TL-WR1043ND firmware (cut off 0x20200)

DD-WRT Forum :: View topic - TP-Link TL-WR1043ND Bricked ,Can not write flash memory.

Edit:
I guess you're going to ask how to transfer the firmware. Let's name it tplink.bin. Install and run WinSCP. Ignore the warning message. Copy tplink.bin (transfer as binary) to /tmp. Install PuTTY and ssh to 192.168.1.1. Run:

root@OpenWrt:~# mtd -r write /tmp/tplink.bin firmware

Do it at your own risk.

BTW,

root@OpenWrt:~# type dd
dd is /bin/dd

(Last edited by fyi on 3 Dec 2010, 16:23)

jow wrote:

No and no.

Sorry But when you say no is no what?   smile

Because wiki says that if the fw filename doesn't containt "boot"  you don't need to cut it, simply use mtd. Please tell me if understand well what the wiki states.

Thanks in advance!

fyi wrote:

Modified original TL-WR1043ND firmware (cut off 0x20200)

DD-WRT Forum :: View topic - TP-Link TL-WR1043ND Bricked ,Can not write flash memory.

Edit:
I guess you're going to ask how to transfer the firmware. Let's name it tplink.bin. Install and run WinSCP. Ignore the warning message. Copy tplink.bin (transfer as binary) to /tmp. Install PuTTY and ssh to 192.168.1.1. Run:

root@OpenWrt:~# mtd -r write /tmp/tplink.bin firmware

Do it at your own risk.

BTW,

root@OpenWrt:~# type dd
dd is /bin/dd

thanks, it works!!!

i've copied the downloaded fw in the /tmp folder in the router. then i started putty, ...

sebelk wrote:

Because wiki says that if the fw filename doesn't containt "boot"  you don't need to cut it, simply use mtd. Please tell me if understand well what the wiki states.

TP-LINK uses a unique image header (512 bytes). Take TL-WR941ND for example.

RoundSparrow wrote:
Creating 5 MTD partitions on "ar7100-nor0":
0x00000000-0x00020000 : "u-boot"
0x00020000-0x00120000 : "kernel"
0x00120000-0x003e0000 : "rootfs"
0x003e0000-0x003f0000 : "config"
0x003f0000-0x00400000 : "art"

wr941nv2_v3_en_3_11_2_up_boot(100323).bin 4063744 bytes

image_header1 + u-boot_image + image_header2 + kernel_image + rootfs_image

wr941nv2_en_3_11_8_up(100609).bin 3932160 bytes

image_header2 + kernel_image + rootfs_image

4063744 - 3932160 = 131584 = 0x20200 (image_header1 + u-boot_image)

MTD "kernel" equals to "image_header2 + kernel_image" which occupy 0x100000 bytes.

OpenWrt / TP-Link TL-WR941N WR941ND - Atheros AP81 platform, USB port
http://download.lark.net.cn/wr941n/hack/

Sorry, for insistance but is right the following steps:

1. Get the fw from the tp-link websiste, in my case the newest is wr1043nv1_en_3_12_2_up(100820).bin
2. I see  that  firmware filename doesn't contain "boot". So, it doesn't need cut it, dd is not needed.
3. scp wr1043nv1_en_3_12_2_up(100820).bin   root@openwrt_ip_address:/tmp (Note: scp or whatever secure copy tool)
4. mtd -r write wr1043nv1_en_3_12_2_up(100820).bin  firmware


Please correct  me if I am wrong.

Thanks in advance

To my knowledge, that's it but I don't have any TP-LINK router to prove the theory.

I have checked the format of Backfire 10.03.1-rc4  openwrt-ar71xx-tl-wr1043nd-v1-squashfs-sysupgrade.bin. It does meet the format of

image_header2 + kernel_image + rootfs_image

And "image_header2 + kernel_image" occupy 0x140000 bytes.

As of wr1043nv1_en_3_12_2_up(100820).bin in which "image_header2 + kernel_image" occupy 0x100000 bytes.

sebelk wrote:

1. Get the fw from the tp-link websiste, in my case the newest is wr1043nv1_en_3_12_2_up(100820).bin
2. I see  that  firmware filename doesn't contain "boot". So, it doesn't need cut it, dd is not needed.
3. scp wr1043nv1_en_3_12_2_up(100820).bin   root@openwrt_ip_address:/tmp (Note: scp or whatever secure copy tool)
4. mtd -r write wr1043nv1_en_3_12_2_up(100820).bin  firmware

OpenWrt / help bricked wr741nd

The discussion might have continued from here.