ubi_reader icon indicating copy to clipboard operation
ubi_reader copied to clipboard

Wrong vol_flags into ini file for ubinize

Open stich86 opened this issue 1 year ago • 2 comments

Hi,

each time you create scripts for image using ubireader_utils_info, the *.ini file contains the value vol_flags = 0 that seems to not be supported by ubinize.

Is it normal behaviour? Only way to make UBI image back is to remove that flags or use vol_flags = autoresize, that is not supported by the original image

Thanks in advance

stich86 avatar Jan 18 '24 16:01 stich86

Sorry for the late answer. It depends on the UBI volume flags, see https://github.com/onekey-sec/ubi_reader/blob/main/ubireader/scripts/ubireader_utils_info.py#L95

My take is that it should either set vol_flags to autoresize or not set it at all. I'll come up with a fix soon.

qkaiser avatar Feb 09 '24 15:02 qkaiser

oh good thanks for feedback :)

stich86 avatar Feb 09 '24 15:02 stich86