firmware-utils: bcm4908img: detect Netgear vendor firmware
authorRafał Miłecki <rafal@milecki.pl>
Fri, 2 Apr 2021 11:59:02 +0000 (13:59 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 8 Apr 2021 11:16:11 +0000 (13:16 +0200)
commitc251ec739f67e75a3ed25ad7c4a9478cd1ff4454
treeb019d050495b6738fadcc949466b49d8220caef3
parent9db0cc5787b2eec6adeb54ae8ecf17eb2a688922
firmware-utils: bcm4908img: detect Netgear vendor firmware

Netgear uses CHK header which needs to be skipped when validating
BCM4908 image. Detect it directly in the bcm4908img tool. Dealing with
binary structs and endianess is way simpler in C.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a39f85d8b66125f07c4bcbea46b296946de60dc7)
tools/firmware-utils/src/bcm4908img.c