]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: avoid to create two UBI_LAYOUT_VOLUME_ID volume
authorYufen Yu <yuyufen@huawei.com>
Fri, 25 Jan 2019 07:01:24 +0000 (15:01 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Fri, 25 Jan 2019 11:50:13 +0000 (12:50 +0100)
commit4a5a10a3dfe13d3f546ee4acbe2a96054ae423f7
treedfff8f4b30eacdda871e1f0684c959b24aee039c
parentb1ecfaba533af1895edbdd0ab9bdbbacb1a5ec10
mtd-utils: avoid to create two UBI_LAYOUT_VOLUME_ID volume

When we create a ubi image by ubinize, a UBI_LAYOUT_VOLUME_ID
volume will be created by ubigen_write_layout_vol().
However, after the commit 4c00cf2c5816 (ubiformat: remove
no-volume-table option), ubiformat remove novtbl args in format().
As a result, it will also create a layout volume.

When we attempt to do ubiattach, it will fail for ubi_compare_lebs error:
ubi0 error: ubi_compare_lebs: unsupported on-flash UBI format
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubi-utils/ubiformat.c