summaryrefslogtreecommitdiffstats
path: root/generate-ubi
Commit message (Collapse)AuthorAgeFilesLines
* Static layout: Generate tar.gz for static layout pnorLei YU2019-03-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add --image_type option to specify the image type of generated PNOR in tarball. Support "squashfs" and "static" image types. Rename `generate-squashfs` to `generate-tar` to reflect that this util is to generate a tarball instead of squashfs. Example of usage: # Generate unsigned tarball for Witherspoon ./generate-tar -i squashfs witherspoon.pnor # Generate signed tarball with default key for Witherspoon ./generate-tar -i squashfs -s -- witherspoon.pnor # Generate unsigned tarball for Romulus ./generate-tar -i static romulus.pnor # Generate signed tarball with default key for Romulus ./generate-tar -i static -s -- romulus.pnor Tested: Verify the generated tarball contains correct files. Change-Id: Ibb66605663b28888bd643baf92d6e4bdbf60c206 Signed-off-by: Lei YU <mine260309@gmail.com>
* Always clean up the scratch dirGunnar Mills2017-11-061-4/+4
| | | | | | | | | The scratch directory, holding the extracted squashfs image and the temporary UBI image, can be quite large, >40MB. Use trap to make sure it always gets cleaned up. Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Change-Id: I0289036dcf2bbf40fc76cf5ebf9dde1d47379435
* Pass in the size of the UBI imageGunnar Mills2017-11-061-4/+12
| | | | | | | | Allow user to pass in the size of the PNOR UBI image. Default is 128. Change-Id: Ifbd7ff0e9185e4d445f39be144f07eb907f0051e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Create UBI imageGunnar Mills2017-11-061-2/+72
| | | | | | | | | | | | | | | | 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>
* Untar tarball and check for squashfs fileGunnar Mills2017-11-061-0/+18
| | | | | | | | | | Untar the tarball and then check for existence of pnor.xz.squashfs file. A PNOR SquashFS Tarball must have a pnor.xz.squashfs file. A similar check is done is in the openpower item updater. Change-Id: Id6e63ee088941044ecc22282bd5abd6358d17d87 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Basic generate-ubi script.Gunnar Mills2017-11-061-0/+52
The generate-ubi script generates a UBI, Unsorted Block Images, PNOR image from a PNOR SquashFS Tarball. The PNOR SquashFS Tarball is generated from the generate-squashfs script. This commit is help text and taking arguments. More to come. Change-Id: I645e8292624d1663393035dc041415b378ac9386 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
OpenPOWER on IntegriCloud