firmware-utils: add sercomm/netgear tool
This adds a tool to generate a firmware file accepted by Netgear or sercomm devices. They use a zip-packed rootfs with header and a custom checksum. The generated Image can be flashed via the nmrpflash tool or the webinterface of the router. Signed-off-by: Ludwig Thomeczek <ledesrc@wxorx.net>
This commit is contained in:
committed by
Mathias Kresin
parent
42dc0e2594
commit
e5b802b9c2
@@ -123,6 +123,16 @@ define Build/tplink-safeloader
|
||||
$(if $(findstring sysupgrade,$(word 1,$(1))),-S) && mv $@.new $@ || rm -f $@
|
||||
endef
|
||||
|
||||
define Build/mksercommfw
|
||||
-$(STAGING_DIR_HOST)/bin/mksercommfw \
|
||||
$@ \
|
||||
$(KERNEL_OFFSET) \
|
||||
$(HWID) \
|
||||
$(HWVER) \
|
||||
$(SWVER)
|
||||
endef
|
||||
|
||||
|
||||
define Build/append-dtb
|
||||
cat $(KDIR)/image-$(firstword $(DEVICE_DTS)).dtb >> $@
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user