To update a ubifs volume by replacing it with entirely new content, ubiupdatevol from mtd-utils can be used:
ubiupdatevol /dev/ubiX_Y /path/to/ubifs.img
Is there a way to apply patch on ubifs volume instead of relacing the complete content? For instance, apply only the binary diff b/w ubifs_base.img and ubifs_dest.img on /dev/ubiX_Y
.
I don't think you can do this. UBI volume write informations with flash sector rotation to avoid writing all the time the same blocks. IMHO the best way to provide partial update to you volume is by applying a tarball over you existing filesystem and using a script to remove unwanted files or by using a package manager.