Sylvia.Goettl | 1 Apr 2003 11:09

JFFS Properties and Questions / JFFS Leistungsmerkmale und Fragen

Hello JFFS2 developers, 

I have got some questions regarding a possible
deployment of JFFS2 (or JFFS).

At the moment I am trying to find out, what are the
properties of JFFS like necessary RAM memory,
Performance and Overhead.

In addition to that it would be interesting to know,
what are the limitations or reglementations for a
deployment of JFFS in a professsional environment.

Thank you in advance, 

Yours faithfully, 

Sylvia Goettl

-------------------------------

Hallo JFFS2 Entwickler, 

I habe ein paar Fragen betreffend der Nutzung von
JFFS2 (oder JFFS).

Im Moment versuche ich, Leistungsmerkmale
von JFFS herauszufinden. Informationen wie 
notwendiger RAM Speicher, Reaktionszeiten und
Flash-Speicher, der fuer die Verwaltung von JFFS
(Continue reading)

Jeremy Bowen | 14 Apr 2003 06:56

Trouble with jffs (long)

Hi

I'm having trouble writing to my jffs flash partitions and I would like some
pointers. 
I'm using a PowerPC 850 RPXlite board running Linux kernel 2.4.7.
I have 4 AMD29LV160BB chips configured as a single 8Mb bank of flash.

I've defined the following flash partitions as below.

bash-2.05# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00010000 00010000 "environment"
mtd1: 00010000 00008000 "spare"
mtd2: 00020000 00020000 "FPGA"
mtd3: 00440000 00040000 "user"
mtd4: 00100000 00040000 "kernel"
mtd5: 00180000 00040000 "initrd"
mtd6: 00040000 00040000 "u-boot"
mtd7: 000c0000 00040000 "jffs"

I have turned on verbose debugging (Level 3) to try and figure out what is
happening.

The following is the relevant bootup output which seems to indicate some
success.
--------------------------------------------------------------------
RPX Lite or CLLF flash device: 2000000 at fe000000
 Amd/Fujitsu Extended Query Table v1.0 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
(Continue reading)

Michael Keating | 26 Apr 2003 07:48

mkfs.jffs2.c


Hi,

I am trying to compile JFFS2 support into my uClinux kernel 2.4...

After fixing a few other issues, I don't seem to be able to get past:

m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -Os -g -fomit-frame-pointer -m5307
-DCONFIG_COLDFIRE  -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED
-I/home/michael/uClinux-dist/lib/uClibc/include
-I/home/michael/uClinux-dist/lib/libm
-I/home/michael/uClinux-dist/lib/libcrypt_old
-I/home/michael/uClinux-dist -fno-builtin -msep-data
-I/home/michael/uClinux-dist/linux-2.4.x/include
-I/home/michael/uClinux-dist/lib/zlib -D__USE_BSD   -c -o mkfs.jffs2.o
mkfs.jffs2.c
mkfs.jffs2.c: In function `write_dirent':
mkfs.jffs2.c:528: incompatible types in assignment

Followed by lots and lots of 'incompatible types in assignment. I have
downloaded the latest MTD snapshot and applied the patch, with no
success.

Anyone seen this before? Or can point me in the right direction of
solving it?

Thanks for your help,

Michael.

(Continue reading)

Jörn Engel | 26 Apr 2003 10:37
Picon

Re: Trouble with jffs (long)

On Mon, 14 April 2003 16:56:25 +1200, Jeremy Bowen wrote:
> 
> I'm having trouble writing to my jffs flash partitions and I would like some
> pointers. 
> I'm using a PowerPC 850 RPXlite board running Linux kernel 2.4.7.
> I have 4 AMD29LV160BB chips configured as a single 8Mb bank of flash.
> 
> I've defined the following flash partitions as below.
> 
> bash-2.05# cat /proc/mtd
> dev:    size   erasesize  name
> mtd0: 00010000 00010000 "environment"
> mtd1: 00010000 00008000 "spare"
> mtd2: 00020000 00020000 "FPGA"
> mtd3: 00440000 00040000 "user"
> mtd4: 00100000 00040000 "kernel"
> mtd5: 00180000 00040000 "initrd"
> mtd6: 00040000 00040000 "u-boot"
> mtd7: 000c0000 00040000 "jffs"
> 
> I have turned on verbose debugging (Level 3) to try and figure out what is
> happening.
> 
> I can successfully mount /dev/mtdblock/3 and write to it but I'm unable to 
> to mount the others. (I can mount the "user" partition but when I mount
> "spare" or "jffs" I am unable to write to them -> disk full.)

I assume you mount the above partitions all as jffs2.
In order to write to jffs2, you (currently) need five free blocks on
the partition. mtd1 (2 blocks) and mtd7 (3 blocks) would never allow
(Continue reading)

Jörn Engel | 26 Apr 2003 10:53
Picon

Re: mkfs.jffs2.c

On Sat, 26 April 2003 15:48:09 +1000, Michael Keating wrote:
> 
> I am trying to compile JFFS2 support into my uClinux kernel 2.4...
> 
> After fixing a few other issues, 

Do you have a patch for those? If the fixes are harmless for others
but help uClinux, they should go into CVS.

> I don't seem to be able to get past:
> 
> m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -Os -g -fomit-frame-pointer -m5307
> -DCONFIG_COLDFIRE  -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED
> -I/home/michael/uClinux-dist/lib/uClibc/include
> -I/home/michael/uClinux-dist/lib/libm
> -I/home/michael/uClinux-dist/lib/libcrypt_old
> -I/home/michael/uClinux-dist -fno-builtin -msep-data
> -I/home/michael/uClinux-dist/linux-2.4.x/include
> -I/home/michael/uClinux-dist/lib/zlib -D__USE_BSD   -c -o mkfs.jffs2.o
> mkfs.jffs2.c
> mkfs.jffs2.c: In function `write_dirent':
> mkfs.jffs2.c:528: incompatible types in assignment
> 
> 
> Followed by lots and lots of 'incompatible types in assignment. I have
> downloaded the latest MTD snapshot and applied the patch, with no
> success.

Is line 528 the one marked below? In that case your compiler seems to
dislike something in the definition of error_msg(), but I am not sure
(Continue reading)


Gmane