firmware: add tool for signing d-link ru router factory firmware images

Some Russian d-link routers require that their firmware be signed with a
salted md5 checksum followed by the bytes 0x00 0xc0 0xff 0xee. This tool
signs factory images the OEM's firmware accepts them.

Signed-off-by: Andrew Pikler <andrew.pikler@gmail.com>
This commit is contained in:
Andrew Pikler
2020-10-05 17:13:38 +03:00
committed by Petr Štetiar
parent 8ec997d006
commit 40437b18f4
3 changed files with 231 additions and 0 deletions

View File

@@ -148,6 +148,11 @@ define Build/sercom-seal
$(1)
endef
define Build/sign-dlink-ru
sign_dlink_ru $@ $1 $2
mv $@.new $@
endef
define Build/trx
$(STAGING_DIR_HOST)/bin/trx $(1) \
-o $@ \