From 08e1d3377d3d0b91321d9a14e4ec6e5f6b8d408b Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Sun, 27 Oct 2019 17:39:49 +0100 Subject: doc: add info on OEM firmware download MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- dcs8000lh.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) 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 -- cgit v1.2.3