This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ubi image on AM5xx

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.

  • Hi,

    Just a note here.

    The ubi images for AM57xx devices are:
    tisdk-rootfs-image-am57xx-evm.ubi
    and
    arago-base-tisdk-image-am57xx-evm.ubi
    Which are part of the ti-processor-sdk. Images are verified to work on am57xx gp evm.

    The arago-glsdk-multimedia-image-dra7xx-evm-20160109103931.rootfs.ubi is tested only on DRA7xx EVM.

    Best Regards,
    Yordan