Finally I managed to compile the mtd-tools with the cross compiler. I created an image, put it on the plug, formatted the flash with it but now I cannot attach it.The output looks like this:~ # ./ubiattach /dev/ubi_ctrl -m 2ubiattach: error!: cannot attach mtd2 error 22 (Invalid argument)