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>
Mon, 5 Apr 2021 07:54:10 +0000 (09:54 +0200)
commitf792b86e1f89dd6ba1210625fd23b2bb8d6a90b5
treef08ad779399e7cdb2fde7ed6b3d4bea68b191435
parentbaabfc21a271bda45423ab01d476b2af5fa34936
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>
src/bcm4908img.c