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)
commita39f85d8b66125f07c4bcbea46b296946de60dc7
tree069eac4e17438637ba117083ae228b6a68a4d612
parent7d5f7439428d2b4c6952af47b36acc010b846372
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>
tools/firmware-utils/src/bcm4908img.c