genimage icon indicating copy to clipboard operation
genimage copied to clipboard

marry genimage and swupdate

Open flatmax opened this issue 2 years ago • 3 comments

swupdate is a tool for building firmware update images for embedded devices.

It would be nice to marry genimage with swupdate in some way. Perhaps the first step is to be able to output the genimage.cfg file as a genimage.json file (with JSON formatting).

Is there are function in the code to dump the parsed genimage.cfg information as text ? If so then perhaps that can be adapted to generate a valide json version of genimage.cfg files for use with swupdate.

flatmax avatar Mar 08 '22 09:03 flatmax

I see the new configdump code and the cfg_print line here. I guess the cfg_print_func_t has to be setup to output json in some way.

flatmax avatar Mar 08 '22 09:03 flatmax

I don't know swupdate, but I expect this needs to be a bit more intelligent than just converting the config directly into json. Probably a new image-swupdate.c that generates the config for swupdate and then calls it. We do something like that in image-rauc.c (That's also a firmware update tool).

michaelolbrich avatar Mar 08 '22 10:03 michaelolbrich

Genimage can already create swupdate bundles. Swupdate uses CPIO format, which can be created by genimage.

Harvie avatar Mar 25 '22 15:03 Harvie