AnsweredAssumed Answered

ubimkvol execute speed

Question asked by jiangfux on Jul 11, 2012
Latest reply on Jul 12, 2012 by Aaronwu


I want to flash rootfs.ubifs to nand flash auto. I make a initramfs image with rootfs.ubifs in it.

At start up, I run the script:


ubiformat /dev/mtd4 -s 512 -O 512 -y

ubiattach /dev/ubi_ctrl -m 4

ubimkvol /dev/ubi0 -N rootfs -m

ubiupdatevol /dev/ubi0_0 /usr/rootfs.ubifs





This script give error like this:

libubi: error!: cannot get information about "/dev/ubi0_0"

        error 2 (No such file or directory)

ubiupdatevol: error!: "/dev/ubi0_0" is not an UBI volume node


If I add "sleep 3" between ubimkvol and ubiupdatevol, everything is ok.

Is ubimkvol execute slow?