aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2019-10-27 17:39:49 +0100
committerBjørn Mork <bjorn@mork.no>2019-10-27 17:40:15 +0100
commit08e1d3377d3d0b91321d9a14e4ec6e5f6b8d408b (patch)
tree45e3422b021a60f50836fde758810bb0e6aa802f
parentfee952549020b40aee0a955f9f4e25ab08c57338 (diff)
doc: add info on OEM firmware download
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--dcs8000lh.md49
1 files changed, 49 insertions, 0 deletions
diff --git a/dcs8000lh.md b/dcs8000lh.md
index d46271c..32a872c 100644
--- a/dcs8000lh.md
+++ b/dcs8000lh.md
@@ -1670,6 +1670,55 @@ and upgrade in one simple tool. The fwupdate tool is used by the
mydlink cloud tool **da_adaptor** , via an fw_upgrade symlink.
+#### Downloading the latest OEM firmware
+
+The mydlink tools will set up two URLs in `/tmp/db/device.cf`:
+```
+ "FirmwareDaemonURL": "http://mp-eu-fwd.auto.mydlink.com:80/fw-upgrade",
+ "SecuredFirmwareDaemonURL": "https://mp-eu-fwd.auto.mydlink.com:443/fw-upgrade",
+```
+
+Calling either one of these with a model parameter will return a
+download URL for the latest firmware version. Examples:
+
+```
+$ curl -D - http://mp-eu-fwd.auto.mydlink.com:80/fw-upgrade?model=DCS-8000LH
+HTTP/1.1 200 OK
+Date: Sun, 27 Oct 2019 16:27:24 GMT
+Content-Length: 280
+Etag: "9a475c16361db8ba3ebfe679554680dbb6bf2c38"
+Content-Type: text/html; charset=UTF-8
+Server: TornadoServer/5.1.1
+
+{"code": 0, "fw_ver_type": "REGULAR", "process_time": 210, "main_board": {"url": "http://mydlinkmpfw.auto.mydlink.com/DCS-8000LH/DCS-8000LH_Ax_v2.03.02_3412.bin", "fw_version": "2.03.02", "md5": "3e26e96fcd8fcf711c1362a4cbfb2d48"}, "release_version": "3.2.7-b02", "device_id": ""}
+```
+
+
+```
+$ curl -D - 'https://mp-eu-fwd.auto.mydlink.com:443/fw-upgrade?model=DCS-8100LH'
+HTTP/1.1 200 OK
+Date: Sun, 27 Oct 2019 16:35:39 GMT
+Content-Length: 281
+Etag: "5714f3e62ca04e5c3465705cb4c7356f1d50e54f"
+Content-Type: text/html; charset=UTF-8
+Server: TornadoServer/5.1.1
+
+{"code": 0, "fw_ver_type": "REGULAR", "process_time": 210, "main_board": {"url": "https://mydlinkmpfw.auto.mydlink.com/DCS-8100LH/DCS-8100LH_Ax_v2.04.01_3619.bin", "fw_version": "2.04.01", "md5": "eb097a680754b94b81da6326b468121f"}, "release_version": "3.2.7-b03", "device_id": ""}
+```
+
+Download and verify the md5 sum:
+
+```
+$ curl -O https://mydlinkmpfw.auto.mydlink.com/DCS-8100LH/DCS-8100LH_Ax_v2.04.01_3619.bin
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 19.5M 100 19.5M 0 0 2457k 0 0:00:08 0:00:08 --:--:-- 2727k
+
+$ md5sum DCS-8100LH_Ax_v2.04.01_3619.bin
+eb097a680754b94b81da6326b468121f DCS-8100LH_Ax_v2.04.01_3619.bin
+```
+
+
#### Signed and encrypted
Looking at the contents of a firmware update from D-Link can be