Hi experts,
I want to checking something inside UBI image on PC before testing on the board. And I got below messages after following steps from http://elinux.org/UBIFS#Mounting_UBI_Image_on_PC_using_nandsim
[user@X10SBA test] $ ls
arago-glsdk-multimedia-image-dra7xx-evm-20160109103931.rootfs.ubi
[user@X10SBA test] $ sudo modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15
[user@X10SBA test] $ cat /proc/mtd
dev: size erasesize name
mtd0: 10000000 00020000 "NAND simulator partition 0"
[user@X10SBA test] $ sudo modprobe ubi mtd=0
[user@X10SBA test] $ sudo ubidetach /dev/ubi_ctrl -m 0
[user@X10SBA test] $ sudo ubiformat /dev/mtd0 -f arago-glsdk-multimedia-image-dra7xx-evm-20160109103931.rootfs.ubi
ubiformat: mtd0 (nand), size 268435456 bytes (256.0 MiB), 2048 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 2047 -- 100 % complete
ubiformat: 2048 eraseblocks have valid erase counter, mean value is 1
ubiformat: flashing eraseblock 1756 -- 100 % complete
ubiformat: formatting eraseblock 2047 -- 100 % complete
[user@X10SBA test] $ sudo ubiattach /dev/ubi_ctrl -m 0
ubiattach: error!: cannot attach mtd0
error 22 (Invalid argument)
[user@X10SBA test] $
It looks like something wrong with parameters...
Could you help on this
Thanks.