openbmc / docs

OpenBMC Documentation
Creative Commons Attribution 4.0 International
267 stars 305 forks source link

code update: updating the whole chip #50

Closed ytmhub closed 4 years ago

ytmhub commented 4 years ago

Is there a way to trigger an update of the entire chip instead of updating each partition separately?

This is required in cases where partition offsets are changed.

ytmhub commented 4 years ago

After going over the code of phosphor-software-manager, I think I got my answer.

Due to this hardcoded list, products like obmc-phosphor-image-hls.static.mtd.all.tar, which contain an "image-bmc" file, won't work since it doesn't appear there.

As a local solution, I added patches to my layer that support dynamically identifying the images in the package, and deploying this list during activation.

This allows to not only support the full chip update, but also use partial packages, in which I only update the kernel, for instance.