root@acqua:~# ./testnand.sh ubiformat /dev/mtd5 ubiformat: mtd5 (nand), size 260046848 bytes (248.0 MiB), 1984 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes libscan: scanning eraseblock 1983 -- 100 % complete ubiformat: 1980 eraseblocks have valid erase counter, mean value is 7 ubiformat: 4 bad eraseblocks found, numbers: 1980, 1981, 1982, 1983 ubiformat: formatting eraseblock 1983 -- 100 % complete ubiattach -p /dev/mtd5 ubi0: attaching mtd5 ubi0: scanning is finished ubi0: attached mtd5 (name "rootfs", size 248 MiB) ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 ubi0: good PEBs: 1980, bad PEBs: 4, corrupted PEBs: 0 ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 16/8, WL threshold: 4096, image sequence number: 1716823466 ubi0: available PEBs: 1940, total reserved PEBs: 40, PEBs reserved for bad PEB handling: 36 ubi0: background thread "ubi_bgt0d" started, PID 1424 UBI device number 0, total 1980 LEBs (251412480 bytes, 239.8 MiB), available 1940 LEBs (246333440 bytes, 234.9 MiB), LEB size 126976 byte s (124.0 KiB) ubimkvol /dev/ubi0 -N rootfs -m Set volume size to 246333440 Volume ID 0, size 1940 LEBs (246333440 bytes, 234.9 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1 mount -t ubifs /dev/ubi0_0 /mnt/ubifs UBIFS (ubi0:0): default file-system created UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1439 UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS (ubi0:0): FS size: 244682752 bytes (233 MiB, 1927 LEBs), journal size 12316672 bytes (11 MiB, 97 LEBs) UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB) UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 835070EB-54B1-48A8-8159-D5DC1A6F3F30, small LPT model cp -d -r /sam-ba_3.2.1 /mnt/ubifs/ sync umount /mnt/ubifs UBIFS (ubi0:0): un-mount UBI device 0 UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops mount -t ubifs /dev/ubi0_0 /mnt/ubifs UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1451 UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS (ubi0:0): FS size: 244682752 bytes (233 MiB, 1927 LEBs), journal size 12316672 bytes (11 MiB, 97 LEBs) UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB) UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 835070EB-54B1-48A8-8159-D5DC1A6F3F30, small LPT model diff -rq sam-ba_3.2.1/ /mnt/ubifs/sam-ba_3.2.1/ if nothing appears, diff ended well umount /mnt/ubifs UBIFS (ubi0:0): un-mount UBI device 0 UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops ubidetach -d 0 ubi0: detaching mtd5 ubi0: mtd5 is detached root@acqua:~#