public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Fabian Rami <fabian.rami@wowcompany.com>
To: linux-mtd@lists.infradead.org
Subject: [NAND-JFFS2] Writting file error no space left (35% used)
Date: Thu, 04 Jan 2007 12:26:21 +0100	[thread overview]
Message-ID: <459CE45D.8060307@wowcompany.com> (raw)

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

 

                 reply	other threads:[~2007-01-04 11:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=459CE45D.8060307@wowcompany.com \
    --to=fabian.rami@wowcompany.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox