OpenWrt Forum Archive

Topic: Need to flash openwrt over existing dd-wrt firmware

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

Received a TP-Link tp-wr703n router from china that had dd-wrt firmware on it version 24 sp2 (03/15/12) std. Need to flash openwrt on this router. Tried both factory and sysupgrade openwrt firmware files and receive "upgrade failed" message. Downloaded original firmware and this too failed. All this was run from dd-wrt web page for upgrading firmware.

Anybody know how to do this?

Thanks,

Perazim

dd-wrt added a special header into its image, so you are not able to flash back to stock and anything other than ddwrt.

You need to telnet into your device, use wget to download the firmware, then use mtd to flash.

Thanks for the reply.

This is the partition table:

root@DD-WRT:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "RedBoot"
mtd1: 003c0000 00010000 "linux"
mtd2: 002e0000 00010000 "rootfs"
mtd3: 00020000 00010000 "ddwrt"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "board_config"
mtd6: 00400000 00010000 "fullflash"
mtd7: 00020000 00010000 "fullboot"
root@DD-WRT:~#

I am guessing that I want to flash "linux" with the command:

mtd -r write imagefile linux

where imagefile is the squashfs-factory image.

I thought I would confirm this to avoid bricking the router.

Thanks,

Perazim

perazim wrote:

Thanks for the reply.

This is the partition table:

root@DD-WRT:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "RedBoot"
mtd1: 003c0000 00010000 "linux"
mtd2: 002e0000 00010000 "rootfs"
mtd3: 00020000 00010000 "ddwrt"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "board_config"
mtd6: 00400000 00010000 "fullflash"
mtd7: 00020000 00010000 "fullboot"
root@DD-WRT:~#

I am guessing that I want to flash "linux" with the command:

mtd -r write imagefile linux

where imagefile is the squashfs-factory image.

I thought I would confirm this to avoid bricking the router.

Thanks,

Perazim


That's right, it is linux.
I recommend you go back to stock firmware first.

mtd -r write imagefile linux

where imagefile is the squashfs-factory image.


This worked.

The discussion might have continued from here.