firmware-utils: bcm4908img: add bootfs support
authorRafał Miłecki <rafal@milecki.pl>
Fri, 2 Apr 2021 15:28:21 +0000 (17:28 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 8 Apr 2021 11:16:12 +0000 (13:16 +0200)
commitf1f1ecfab4437addea86e3615920a1e54673fe85
tree847509f1fdc9e8c387a03783010578b00755ed6f
parent0b333eb093e198e7c4febb65a63465bc94b71770
firmware-utils: bcm4908img: add bootfs support

This adds support for accessing bootfs JFFS2 partition in the BCM4908
image. Support includes:
1. Listing files
2. Renaming file (requires unchanged name length)

Above commands are useful for flashing BCM4908 images which by defualt
come with cferom.000 file and require renaming it.

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