I have several questions regarding UBI. I'm getting following error when trying to attach to an UBI device (u-boot):
> ubi0: attaching mtd1
> UBI init error 22
I got this error after programming the board with (kernel, in user space):
# flash_erase /dev/mtd0 0 0
# ubiformat /dev/mtd0
# ubiattach -m 0
# ubimkvol /dev/ubi0 -N kernel -s 32MiB
# ubimkvol /dev/ubi0 -N rootfs -s 128MiB
However if I first apply
> nand erase.chip
in u-boot, the programming succeeds and I don't get an error in u-boot.
What could cause this issue? Could this be related to the ECC?
Furthermore, how can I verify the ECC mode in kernel and in u-boot?