Create UBI image

Create a 128MiB UBI image with 3 volumes: a static
pnor-ro-<versionId>, a dynamic pnor-rw-<versionId>,
and a dynamic pnor-prsv.
The pnor-ro-<versionId> is created from the squashfs file.
pnor-rw-<versionId> and pnor-prsv are both empty and size
16MiB and 2MiB respectively.

A future enhancement would be to  pass in the size of the image.

Resolves openbmc/openbmc#2509

Change-Id: Ia8d9f3d8c72487eac06d7a5be5e856b1b07de7b1
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
1 file changed
tree: 31f0df9741b8fbd40a83b601908bfd8d27cf6b79
  1. m4/
  2. org/
  3. test/
  4. .gitignore
  5. activation.cpp
  6. activation.hpp
  7. bootstrap.sh
  8. configure.ac
  9. generate-squashfs
  10. generate-ubi
  11. item_updater.cpp
  12. item_updater.hpp
  13. item_updater_main.cpp
  14. LICENSE
  15. Makefile.am
  16. README.md
  17. serialize.cpp
  18. serialize.hpp
  19. version.cpp
  20. version.hpp
  21. watch.cpp
  22. watch.hpp
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.