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.

Problem in attaching the UBI Image



Hi,

I am trying to flash the customized file system into EVM816x using the steps mentioned in the following link:

http://processors.wiki.ti.com/index.php/EZSDK_Fast_Boot_Streaming_Video

I meet the following error message after running "ubiformat /dev/mtd3 -s 2048 -f ubi.img ":

ubiformat: mtd3 (nand), size 209846272 bytes (200.1 MiB), 1601 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 1600 -- 100 % complete  
ubiformat: 1339 eraseblocks are supposedly empty
ubiformat: warning!: 262 of 1601 eraseblocks contain non-ubifs data
ubiformat: continue? (yes/no)  yes
ubiformat: warning!: only 0 of 1601 eraseblocks have valid erase counter
ubiformat: erase counter 0 will be used for all eraseblocks
ubiformat: note, arbitrary erase counter value may be specified using -e option
ubiformat: continue? (yes/no)  yes
ubiformat: use erase counter 0 for all eraseblocks
ubiformat: error!: file "ubi.img" is too large (454033408 bytes)
           error 0 (Success)

Please let me know how I can decrease the size of ubi.img or make the ubiformat accept the large size of my ubi.img.

Thanks,

Mohammad

  • Hi Mohammad,

      Since the size of your filesystem is more than the partition in NAND for the filesystem, you would need to decrease the size of your filesystem. Also you could use the "-x" option in the mkfs.ubifs command when making the ubi image which is the compression option. Currently the command supports zlib and lzo compression technique.

    You could also try to customize the basic filesystem in "filesystem/arago-base-tisdk-image-dm816x-evm.tar.gz " in EZSDK directory  which has a lesser size. Kindly refer to the "Creating the filesystem" section in the same link for more information.

    Thanks & Regards,

    Amarinder