layout: post title: Linksys E1700 Flash openwrt over dd-wrt date: 2020-10-23 07:30 +0200 —————————

My Linksys E1700 (which shall become a firewall) was running dd-wrt. As I want to switch over to openwrt, as they are way more active in development, I needed to flash openwrt. DD-wrt didn’t like openwrt’s Factory or upgrade images. They flashed just fine and the device rebooted, but afterwards, dd-wrt was still running.

After some dedicated web research I found a hint in the official openwrt forum. It was a different device, but I compared partition tables and it seemed that it should work for the Linksys E1700 as well, which it did :D

So here’s a small protocol what I did:

  1. Get your latest Factory Image (not upgrade image) from OpenWrt’s Linksys E1700 page.
  2. (Enable ssh on your device)
  3. scp the factory image to the router: `Downloads/openwrt-19.07.4-ramips-mt7620-e1700-squashfs-factory.bin root@
  4. ssh login to root@
  5. Do steps, ignore errors (forums say, they are normal, I succesfully flashed w/ them as well):

```shell script cat /proc/mtd # mtd partitions should look like this roughly

dev: size erasesize name

mtd0: 00030000 00010000 “u-boot”

mtd1: 00010000 00010000 “u-boot-env”

mtd2: 00010000 00010000 “factory”

mtd3: 007a0000 00010000 “linux”

mtd4: 0069b000 00010000 “rootfs”

mtd5: 00120000 00010000 “ddwrt”

mtd6: 00010000 00010000 “nvram”

cd /tmp/ mtd -f write openwrt-19.07.4-ramips-mt7620-e1700-squashfs-factory.bin linux


Unlocking linux …

Could not unlock MTD device: linux

linux: Not supported

Writing from openwrt-19.07.4-ramips-mt7620-e1700-squashfs-factory.bin to linux … [w]

Warning unaligned data, we use manual padding to avoid errors. size was 4!!!

echo “echo” reboot ```

After reboot, you are greeted w/ the OpenWrt login page.