I am trying to flash ubi fs from uboot level . But ii am facing problem in uboot level if i flash from user level it works fine
In Uboot:
tftp 0x82000000 ubi.img
nandecc hw 2
nand erase 0x00780000 0xF880000
nand write.i 0x82000000 0x780000 0xFC0000
[ 1.028715] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.035354] UBI: logical eraseblock size: 126976 bytes
[ 1.041028] UBI: smallest flash I/O unit: 2048
[ 1.045995] UBI: sub-page size: 512
[ 1.050848] UBI: VID header offset: 2048 (aligned 2048)
[ 1.057176] UBI: data offset: 4096
[ 1.457702] UBI: max. sequence number: 0
[ 1.473071] UBI error: ubi_read_volume_table: the layout volume was not found
[ 1.480728] UBI error: ubi_attach_mtd_dev: failed to attach by scanning, error -22
ubiformat /dev/mtd7 -f ubi.img -s 512 -O 2048
ubiattach /dev/ubi_ctrl -m 7 -O 2048
setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init'
[ 1.038950] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.045601] UBI: logical eraseblock size: 126976 bytes
[ 1.051275] UBI: smallest flash I/O unit: 2048
[ 1.056237] UBI: sub-page size: 512
[ 1.061089] UBI: VID header offset: 2048 (aligned 2048)
[ 1.067417] UBI: data offset: 4096
[ 1.595819] UBI: max. sequence number: 6
[ 1.614291] UBI: attached mtd7 to ubi0
[ 1.618241] UBI: MTD device name: "Filesystem"
[ 1.623970] UBI: MTD device size: 64 MiB
[ 1.629097] UBI: number of good PEBs: 512
[ 1.633962] UBI: number of bad PEBs: 0
[ 1.638630] UBI: number of corrupted PEBs: 0
[ 1.643312] UBI: max. allowed volumes: 128
[ 1.648163] UBI: wear-leveling threshold: 4096
[ 1.653118] UBI: number of internal volumes: 1
[ 1.657786] UBI: number of user volumes: 1
Can you point some hints