logo       

jffs2 on MTD mounting problem: msg#00043

Subject: jffs2 on MTD mounting problem

Hi

        I have a device with intell flash 32MB.
However as a research work I wanted to limit that to 2mb.
out of which 0x00140000 is used for kernel and ramdisk storage.

So I used 
static struct mtd_partition shasta_partitions[] = {
        {
                name:           "Bootloader/Kernel",
                size:           1024*1280,
                offset:         0,
                mask_flags:     MTD_WRITEABLE  /* force read-only */
        },{
                name:           "Filesystem",
                size:           (2*1024*1024 - 1024*1280),
                offset:         MTDPART_OFS_APPEND
        },{
                name:           "Not Used Filesystem",
                size:           MTDPART_SIZ_FULL,
                offset:         MTDPART_OFS_APPEND,
    mask_flags: MTD_WRITEABLE  /* force read-only */
        }
};

and I got following as my patitions in kernel boot up messages.

Creating 3 MTD partitions on "Shasta flash":
0x00000000-0x00140000 : "Bootloader/Kernel"
0x00140000-0x00200000 : "Filesystem"
0x00200000-0x02000000 : "Not Used Filesystem"

now I issued
mount /dev/mtdblock/1 /a -t jffs2 which was successful.

How ever I run df I got
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                 1787       736       949  44% /
/dev/mtdblock/1            768       768         0 100% /a

i.e there is no room left in this partition though I did not use it at
any time.
# cd /a
# ls -la
drwxr-xr-x    1 0        0               0 Jan  1 00:01 .
drwxr-xr-x   11 0        0            1024 Jan  1 00:01 ..

Where I have gone wrong?

Thanks

Sankalpa



*


This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail.

-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ/Etiquette:       http://www.arm.linux.org.uk/armlinux/mailinglists.php



<Prev in Thread] Current Thread [Next in Thread>