ubifs.sh and ubi.img is ok,the create command is :ubifs.sh 512 32 (available PEBs)*(logical eraseblock size) 1024 rootfs/