On Tue, 02 Dec 2025 18:28:25 +0100
Kory Maincent <[email protected]> wrote:

> Add a new fwumdata tool to allows users to read, display, and modify FWU
> (Firmware Update) metadata from Linux userspace. It provides functionality
> similar to fw_printenv/fw_setenv but for FWU metadata. Users can view
> metadata, change active/previous bank indices, modify bank states, and set
> image acceptance flags. Configuration is done via fwumdata.config file.
> 
> Made a few change to mkfwumdata tool along the way.

I just noticed that I should have added an output example:
$ ./fwumdata -l
FWU Metadata:
        Version:            2
        Active Index:       0
        Previous Index:     1
        CRC32:              0x1f21ff7b
        Metadata Size:      120 bytes
        Descriptor Offset:  16
        Bank States:
                Bank 0: accepted (0xfc)
                Bank 1: accepted (0xfc)

        Firmware Store Descriptor:
                Number of Banks:       2
                Number of Images:      1
                Image Entry Size:      80
                Bank Info Entry Size:  24

        Images:
                Image 0:
                        Image Type GUID:  65ae85ad-1fb3-0b46-8c5d-285543aa6eab
                        Location GUID:    51513491-da07-2a4f-9bea-375ea53b1b5c
                        Banks:
                                Bank 0:
                                        Image GUID:  
cb2df442-f929-6a44-a374-672d92eb2aa7
                                        Accepted:    yes (1)
                                Bank 1:
                                        Image GUID:  
a839a18f-395c-484f-83b8-0354077c8f9f
                                        Accepted:    yes (1)


Regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

Reply via email to