diff options
author | Markus Stockhausen <markus.stockhausen@gmx.de> | 2022-07-06 13:43:23 +0200 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2022-07-08 20:15:22 +0200 |
commit | fae3ac3560459320a88be86b31c572c4bca42645 (patch) | |
tree | f204a7344458283e4708de8535d6d4e65d451e09 /target/linux/realtek/image/Makefile | |
parent | 2b49ec3a28ad09446f48f1f830a42bdfe3bce9be (diff) | |
download | upstream-fae3ac3560459320a88be86b31c572c4bca42645.tar.gz upstream-fae3ac3560459320a88be86b31c572c4bca42645.tar.bz2 upstream-fae3ac3560459320a88be86b31c572c4bca42645.zip |
realtek: build sane factory images for DGS-1210 models
During upload of firmware images the WebUI and CLI patch process
extracts a version information from the uploaded file and stores it
onto the jffs2 partition. To be precise it is written into the
flash.txt or flash2.txt files depending on the selected target image.
This data is not used anywhere else. The current OpenWrt factory
image misses this label. Therefore version information shows only
garbage. Fix this.
Before:
DGS-1210-20> show firmware information
IMAGE ONE:
Version : xfo/QE~WQD"A\Scxq...
Size : 5505185 Bytes
After:
DGS-1210-20> show firmware information
IMAGE ONE:
Version : OpenWrt
Size : 5505200 Bytes
Tested-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Diffstat (limited to 'target/linux/realtek/image/Makefile')
-rw-r--r-- | target/linux/realtek/image/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile index 3a1ba2f60e..cf779002e8 100644 --- a/target/linux/realtek/image/Makefile +++ b/target/linux/realtek/image/Makefile @@ -21,6 +21,11 @@ define Build/dlink-cameo $(SCRIPT_DIR)/cameo-tag.py $@ $(DLINK_KERNEL_PART_SIZE) endef +define Build/dlink-version + echo -n "OpenWrt" >> $@ + dd if=/dev/zero bs=25 count=1 >> $@ +endef + define Build/dlink-headers dd if=$@ bs=$(DLINK_KERNEL_PART_SIZE) count=1 of=$@.kernel_part; \ dd if=$@ bs=$(DLINK_KERNEL_PART_SIZE) skip=1 of=$@.rootfs_part; \ |