OpenWrt firmware update: Checksum doesn't match

I am trying to install ....sysupgrade.bin firmware for my TP-link4300 however everytime I download and upload the firmware image, the checksum generated is not matching the one required.

Any ways to solve the problem?

  • What country are you in?
  • Are you downloading via HTTP or HTTPS?

http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin

On website: bb8604aabc15758528f7f6d7ce5798e41b49a499184da8658f41545559dd0f42

Screenshot%20from%202018-09-23%2022-48-08

user@machine:~$ wget http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin
--2018-09-23 22:48:52--  http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin
Resolving downloads.openwrt.org (downloads.openwrt.org)... 2a01:4f8:202:43ea::2, 148.251.78.235
Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a01:4f8:202:43ea::2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3735556 (3.6M) [application/octet-stream]
Saving to: ‘openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin’

openwrt-18.06.1-ar7 100%[===================>]   3.56M  3.24MB/s    in 1.1s    

2018-09-23 22:48:54 (3.24 MB/s) - ‘openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin’ saved [3735556/3735556]

user@machine:~$ sha256sum openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin 
bb8604aabc15758528f7f6d7ce5798e41b49a499184da8658f41545559dd0f42  openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin

I am in US, I am using http

Can you give me the link of the website from where you are getting the checksum

I also used you link to download the file and uploaded it . Now it shows the checksum.
Screenshot%20from%202018-09-24%2012-55-56

It doesnt matches the checksum you provided.

That is the website:

Perhaps you mean the download directory that displays the checksums?

Just remove the filename: http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic

There's also a file there containing the sums, too:
https://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/sha256sums

You must be using an older version of OpenWrt, that pic shows only the MD5 sum. Newer versions of OpenWrt show both the MD5 and SHA256 sums.

user@machine:~$ wget http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin
--2018-09-24 13:02:46--  http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin
Resolving downloads.openwrt.org (downloads.openwrt.org)... 148.251.78.235, 2a01:4f8:202:43ea::2
Connecting to downloads.openwrt.org (downloads.openwrt.org)|148.251.78.235|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3735556 (3.6M) [application/octet-stream]
Saving to: ‘openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin’

openwrt-18.06.1-ar7 100%[===================>]   3.56M  4.10MB/s    in 0.9s    

2018-09-24 13:02:47 (4.10 MB/s) - ‘openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin’ saved [3735556/3735556]


user@machine:~$ md5sum openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin 
348ad9e9521a1ae664cffbd34dfd69b5  openwrt-18.06.1-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin

The MD5 sum is: 348ad9e9521a1ae664cffbd34dfd69b5

It is correct!

:+1:

Yes, but not yet proven by your example.

Your basic reasoning is right, the old Openwrt DD does not calculate or show sha256sum, but only md5sum. However, LuCI shows and displays the same md5sum that you calculated, but that is not visible on the download website listing (which currently only shows sha256sum). So, no way to verify the md5sum directly.

@banerjee.152
you could download the firmware to your PC and calculate hashes there (e.g. with hashcalc or similar tool). Then you could verify the calculated sha256sum against the sha256sum listing on download website.

Like this hashcalc example below. You can verify the sha256 from the website that lleachii linked, and then you know also the matching MD5 hash calculated from the same file:

image

Thanks a lot. I guess I am downloading the correct file.

1 Like

I flashed the downloaded image file. The system Flashing window opens, after some time the device gets disconnected from the wifi connection.Screenshot%20from%202018-09-27%2016-19-27

However the window still remains open. The wifi network is no longer visible though the device is turned on.
It is about 2 hours now the window is still showing waiting to change.

Is this normal? Or there is any bug?

That is not normal, but may happen due to e.g. the https connection breaking (if SSL certs change or something similar). Just browse to 192.168.1.1 normally. No need to wait there.

192.168.1.1 doesnt work as the wifi network is not visible. I cannot connect to it

I think I solved it by connecting it with ethernet. Thanks

1 Like