aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/image
diff options
context:
space:
mode:
authorRani Hod <rani.hod@gmail.com>2023-06-25 15:31:54 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2023-11-20 00:24:54 +0100
commitc4fe1bfc65bc6de1de2de0a9d009cb81e51a7e33 (patch)
tree7b8ae6a57b4dc902b5914202c5a0fb2e091a4e2d /target/linux/ramips/image
parentdf4c5f7eb2cfafbcc6b87af9c545cdbb76ffd3f8 (diff)
downloadupstream-c4fe1bfc65bc6de1de2de0a9d009cb81e51a7e33.tar.gz
upstream-c4fe1bfc65bc6de1de2de0a9d009cb81e51a7e33.tar.bz2
upstream-c4fe1bfc65bc6de1de2de0a9d009cb81e51a7e33.zip
ramips: D-Link Dxx-1xx0 image fixes
Three fixes for D-Link DAP-1620 rev B and its twin D-Link DRA-1360: 1. `uboot-envtools` is removed from default package list. 2. Makefile variable is doubly escaped, i.e. `$$$$(DLINK_HWID)`. 3. Previously the size of `factory.bin` was always 10.5 MiB, same as D-Link firmwares. This commit makes it possible to use smaller images (with no lost space due to padding) as well as larger images. Tested successfully flashing a 6.5 MiB image and a 14.5 MiB image. Recall that factory images need to be installed via D-Link Web Recovery (at http://192.168.0.50/, server ignores pings and DHCP requests). P.S. I implemented the OEM firmware encryption algorithm, so firmware can be flashed via OEM firmware, but after successful flashing the device reboots to web recovery, so further debugging is required. Signed-off-by: Rani Hod <rani.hod@gmail.com>
Diffstat (limited to 'target/linux/ramips/image')
-rw-r--r--target/linux/ramips/image/mt7621.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 72e0565c422..83f0b8f4163 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -676,14 +676,12 @@ TARGET_DEVICES += dlink_covr-x1860-a1
define Device/dlink_dxx-1xx0-x1
DEVICE_VENDOR := D-Link
- DEVICE_PACKAGES := kmod-mt7615-firmware rssileds
+ DEVICE_PACKAGES := kmod-mt7615-firmware rssileds -uboot-envtools
IMAGE_SIZE := 16064k
IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | \
- check-size 11009992 | pad-to 11009992 | \
- append-md5sum-ascii-salted ffff | \
- append-string $$(DLINK_HWID) | \
- check-size
+ IMAGE/factory.bin := append-kernel | append-rootfs | \
+ pad-rootfs -x 60 | append-md5sum-ascii-salted ffff | \
+ append-string $$$$(DLINK_HWID) | check-size
endef
define Device/dlink_dap-1620-b1