Hello
i want to make a ubifs.
I have the MT29F1G08ABAEAW NAND, with 2048 bytes page size and Block size= 64 pages =128K ; so i did :
sudo mkfs.ubifs /home/pengwyn/ti-sdk-am335x-evm-05.06.00.00/targetNFS –F -m 2048 -e 126976 -c 8406 -o ubifs.img
For -e i used LEB_SIZE = $BLOCK_SIZE - (2 x $PAGE_SIZE)
= 131072-2*2048= 126976
Total size of NAND= 1Gb = 1073741824=0x40000000
The file sytem is put at 0x00600000, so the result size for file system in NAND is :40000000-0x00600000=3FA00000=1067450368
1067450368/126976=8406= parameter for -c
the result is a file of 1.7Mb for a file system of 74,6Mb.
1° Is it normal ?
2° is my mkfs.ubifs command OK ?
Because when i flash this ubifs, it doesn't work :
u-boot# mw.b 0x84000000 0xFF 0x500000
u-boot# mmc rescan
u-boot# fatload mmc 0 0x84000000 ubifs.img
u-boot# nand erase 0x00600000 0x500000
u-boot# nand write 0x84000000 0x00600000 0x1B2000
0x1B2000 is the size of my ubifs.img
Thank for any help