summaryrefslogtreecommitdiff
path: root/scripts/ubinize-image.sh
Commit message (Collapse)AuthorAgeFilesLines
* scripts/ubinize-image.sh: fix ubinize-image.sh when used with --kernelJohn Crispin2014-06-291-0/+1
| | | | | | | | | r41359 broke support for building ubinized images which do include a kernel volume. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 41368
* make UbinizeImage work nicely without a kernel volumeImre Kaloz2014-06-271-10/+4
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 41359
* scripts/ubinize-image.sh: fix parameter handlingJohn Crispin2014-06-261-24/+27
| | | | | | | | | | ubinize-image.sh previously used ${var:offset:length} substitutions which are not valid in standard shell. Replace the existing parameter matching by a case ... esac expression. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 41347
* scripts: add ubinize-image.sh to generate ubi imagesJohn Crispin2014-06-111-0/+113
This is a wrapper for the ubinize tool which integrates auto-generation of the ubinize.cfg for common volume layouts with and without a kernel volume. It supports auto-detecting the rootfs-type and decides whether or not to include a rootfs_data volume based on whether the rootfs is ubifs or not (and thus is read-only and needs rootfs_data ubifs overlay). The script allows to create layouts as found in all current ubinize{,-overlay}.cfg files using ubinize-image.sh --no-kernel root.{ubifs,squashfs} output.ubi $UBI_OPTS It also includes support for adding ubootenv and ubootenv2 volumes typically used by U-Boot for storing its environment in UBI using the "--uboot-env" parameter. See also https://gitorious.org/openwrt-oxnas/openwrt-oxnas/source/target/linux/ oxnas/image/Makefile Signed-off-by: Daniel Golle <daniel@makrotopia.org> create mode 100755 scripts/ubinize-image.sh SVN-Revision: 41121