Right now I am using UBIFS on DM365. The linux kernel is from 2.6.32.17 from DVSDK4. I am using a Micro 256MB nand flash.
The size of my root filesystem is about 10MB only so I created a 16MB partition on mtd3.
My procedure is as follow:
1. Prepare two kernel images. One with NFS and UBIFS. Another is UBIFS only
2. Bootup using first kernel from NFS
3. format mtd3 using ubiformat
4. ubiattach mtd3
5. ubimkvol on mtd3, empty volume right now
6. mount ubifs/mtd3 to /mnt/nand
7. copy the root filesys to /mnt/nand, using [$mnt/nand]: tar xvf /filesys.tar
8. umount /mnt/nand
9. for a test, mount ubifs/mtd3 to /mnt/nand again, the files on mtd3 are all fine. no error, umount /mnt/nand
10. for a test, I do a ubidetach, and ubiattach, some error occurred:
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 1:0, read 64 bytes
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 2:0, read 64 bytes
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 3:0, read 64 bytes
...
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 100:0, read 64 bytes
UBI: run torture test for PEB 0
UBI: PEB 0 passed torture test, do not mark it a bad
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 2:512, read 512 bytes
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 0:512, read 512 bytes
despite the error messages above, the ubiattach seems ok. i can mount and access the files under /mnt/nand. just tons of error messages like above
any suggestion please? thanks.