Here is my Ucl.xml setting, please take a look and please help find out the problem. Thanks.
<CMD type="push" body="mknod class/mtd,mtd2,/dev/mtd2"/>
<CMD type="push" body="mknod class/mtd,mtd3,/dev/mtd3"/>
<CMD type="push" body="mknod class/mtd,mtd4,/dev/mtd4"/>
<CMD type="push" body="mknod class/mtd,mtd5,/dev/mtd5"/>
<CMD type="push" body="mknod class/mtd,mtd6,/dev/mtd6"/>
<CMD type="push" body="mknod class/mtd,mtd7,/dev/mtd7"/>
<CMD type="push" body="mknod class/misc,ubi_ctrl,/dev/ubi_ctrl"/>
<!-- <CMD type="push" body="mknod block,mtdblock2,/dev/mtdblock2,block"/>
<CMD type="push" body="mknod block,mtdblock3,/dev/mtdblock3,block"/>
<CMD type="push" body="mknod block,mtdblock4,/dev/mtdblock4,block"/>
<CMD type="push" body="mknod block,mtdblock5,/dev/mtdblock4,block"/>
<CMD type="push" body="mknod block,mtdblock6,/dev/mtdblock6,block"/>
<CMD type="push" body="mknod block,mtdblock7,/dev/mtdblock7,block"/>-->
<CMD type="push" body="send" file="files/u-boot.bin">Sending U-Boot</CMD>
<CMD type="push" body="$ echo 1 > /sys/devices/platform/gpmi-nfc.0/ignorebad">Ignore bad block</CMD>
<CMD type="push" body="$ kobs-ng init --chip_0_device_path=/dev/mtd2 $FILE">Flashing Bootloader</CMD>
<CMD type="push" body="$ echo 0 > /sys/devices/platform/gpmi-nfc.0/ignorebad">Care bad block</CMD>
<CMD type="push" body="$ flash_eraseall /dev/mtd3">Erasing Kernel partition</CMD>
<CMD type="push" body="send" file="files/uImage">Sending Kernel Image</CMD>
<CMD type="push" body="$ nandwrite /dev/mtd3 -p $FILE">Flashing Kernel</CMD>
<!-- <CMD type="push" body="$ flash_eraseall /dev/mtd4">Erasing application partition</CMD>
<CMD type="push" body="pipe nandwrite -p /dev/mtd4" file="files/Applications.jffs2">Sending and writing Application</CMD>-->
<CMD type="push" body="$ flash_eraseall /dev/mtd5">Erasing rootfs partition</CMD>
<!-- <CMD type="push" body="$ ubiformat /dev/mtd5">Ubiformat rootfs partition</CMD>-->
<CMD type="push" body="$ ubiattach /dev/ubi_ctrl -d 0 -m 5">Attaching UBI partition</CMD>
<CMD type="push" body="mknod class/ubi,ubi0,/dev/ubi0"/>
<CMD type="push" body="$ ubimkvol /dev/ubi0 -n 0 -N rootfs -m">Creating UBI volumes</CMD>
<!-- <CMD type="push" body="$ ubiupdatevol ubi0:rootfs -t">Transfer rootfs</CMD>
<CMD type="push" body="$ ubiupdatevol ubi0:rootfs rootfs.ubifs">Transfer rootfs</CMD>
<CMD type="push" body="sync">Sync NAND</CMD>-->
<CMD type="push" body="$ mkdir -p /mnt/ubi0; mount -t ubifs ubi0_0 /mnt/ubi0" />
<CMD type="push" body="pipe tar -xv -C /mnt/ubi0" file="files/rootfs.ubifs.tar">Transfer rootfs</CMD>
<!-- <CMD type="push" body="pipe ubiformat /dev/mtd5 -y -s 2048 -f - -S @FILESIZE" file="files/rootfs.ubifs.img">Sending and writting rootfs</CMD>-->
<CMD type="push" body="frf">Finish Flashing NAND</CMD>
<CMD type="push" body="$ umount /mnt/ubi0">Unmounting</CMD>
<!-- <CMD type="push" body="$ flash_eraseall /dev/mtd6">Erasing data partition</CMD>
<CMD type="push" body="$ flash_eraseall /dev/mtd7">Erasing general use partition</CMD>-->
<CMD type="push" body="$ echo Update Complete!">Done</CMD>