Dear
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?
Best regards
Pieter Cardoen
Hello,
It is needed to provide special NAND initialization for NXP BSP, using kobs-ng utility.
Please look at "NAND Flash" section of the MFG tool (in ucl2.xml file) how to perform
NAND initialization and system deployment.
Have a great day,
Yuri
------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer
button. Thank you!
Yuri
I am using a different memory architecture on our target platform. We have 2 different memories:
NOR flash:
* Bootloader (u-boot)
NAND flash:
An UBI volume is created over the entire device
UBI
|-> UBIFS: kernelA
|-> UBIFS: kernelB
|-> UBIFS: rootfsA
|-> UBIFS: rootfsB
|-> UBIFS: data
The bootloader boots correctly and tries to attach to the UBIFS partition kernelA and gives the error:
UBI init error 22
I think this has nothing to do with the kobs-ng command as this is only to flash bootloader & kernel on raw nand.
I think something is wrong related to ECC but I don't know how to debug this.
Thanks
Pieter
Hello,
Can we say, that kobs-ng was never applied ?
Strictly speaking it must be used.
Regards,
Yuri.