Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marry genimage and swupdate #179

Open
flatmax opened this issue Mar 8, 2022 · 3 comments
Open

marry genimage and swupdate #179

flatmax opened this issue Mar 8, 2022 · 3 comments

Comments

@flatmax
Copy link

flatmax commented Mar 8, 2022

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
Copy link
Author

flatmax commented Mar 8, 2022

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.

@michaelolbrich
Copy link
Member

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).

@Harvie
Copy link
Contributor

Harvie commented Mar 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants