How to create UBI images?
UBI images may be created using the ubinize utility (see here). This utility takes the configuration file on input and generates an UBI image. The input configuration file describes all UBI volumes which the resulting UBI image have to contain. The configuration file has ini-file syntax. Here is an example: $ cat config.ini [configuration-data-volume] mode=ubi image=config_data.img vol_id=0 vol_size=512KiB vol_type=static vol_name=configuration [rootfs-volume] mode=ubi image=rootfs.img vol_id=1 vol_size=220MiB vol_type=dynamic vol_name=rootfs vol_flags=autoresize $ ./ubinize -o ubi.img -p 128KiB -m 512 -s 256 config.ini The config.ini file tells UBIFS to create 2 volumes: • static configuration volume of 512KiB in size, assign it ID 0 and name “configuration”; the contents of the volume should be taken from the config_data.img file; • dynamic root file-system volume of 220MiB in size, assign it ID 1 and name “rootfs”; the contents of the volume should be taken from the rootfs.img file;