Writting file error no space left (35% used)
Hi all ,
I try to make JFFS2 File system working on a embedded device. This device had 2M0 of Ram and 16 Mo of NAND flash. Here you have the boot sequence information:
[21474538.190000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics [21474538.200000] s3c2410-nand: mapped registers at c1200000 [21474538.205000] 80 ns is too big for current clock rate 100000000 [21474538.210000] 80 ns is too big for current clock rate 100000000 [21474538.215000] 80 ns is too big for current clock rate 100000000 [21474538.220000] s3c2410-nand: timing: Tacls 419ns, Twrph0 419ns, Twrph1 419ns [21474538.225000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x73 (Samsung NAND 16MiB 3,3V 8-bit) [21474538.230000] Scanning device for bad blocks [21474538.275000] Creating 3 MTD partitions on "NAND 16MiB 3,3V 8-bit": [21474538.280000] 0x00000000-0x00040000 : "UBoot" [21474538.285000] mtd: Giving out device 0 to UBoot [21474538.295000] 0x00040000-0x00160000 : "Kernel" [21474538.300000] mtd: Giving out device 1 to Kernel [21474538.315000] 0x00160000-0x01000000 : "FileSystem" [21474538.320000] mtd: Giving out device 2 to FileSystem
When i use a little soft who made 1000 file of size 1024 i get a OOMKiller.
when i made a df after the oomkiller i see the following :
root@akt:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtdblock2 14976 5228 9748 35% / /dev/ram1 115 15 100 13% /var
As we can see , we are not going out of space on the flash device.
Is there a problem with the way i make the jffs2 Image ? Here is the way i do it :
./mkfs.jffs2 --root=/AktImageDirectory --output=Akt.jffs2 -e
0x4000 --pad=0x00EA0000 -n
Is there something else to do ?
Have i something to care of the flash_erase if i use dd for install the image ? The install command is :
dd if=/Akt.jffs2 of=/dev/mtdblock2
I am lost!!!
Greetings,
Fabian Rami