Skip to contentSkip to conversation

DiskOnChip & JFFS1/2

DISCUSSION Carl Przybylek 2 participants 3 messages Sep 17, 2002 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Im trying to setup a JFFS1/2 filesytem on the 48MB DiskOnChip. Seems Ive run into a few problems that I cant find answers to.

1). If I download the the latest cvs source of the mtd and patch it in with the 2.4.19 kernel the jffs2 support will not compile. background.c tells me that recalc_sigpending passed 1 argument but takes 0. JFFS2 support compiles fine from the unpatched source.

2). Using the support from the 2.4.19 kernel I got the kernel to reconize the diskonchip but I get the following error when trying to create a JFFS2 filesystem:
ECC needs a full sector write ( addr 400 size 4c ).
What the heck does that mean? I cant find much expect a message post saying disk on chip does not support jffs filesystems.

Any help would be greatly appreciated.
Carl Przybylek

#1 lore raw
Quoted 4 lines · [email protected] said:

1). If I download the the latest cvs source of the mtd and patch it
in with the 2.4.19 kernel the jffs2 support will not compile. background.c tells me that recalc_sigpending passed 1 argument but takes 0. JFFS2 support compiles fine from the unpatched source.

Get include/linux/mtd/compatmac.h too.

Quoted 5 lines

2). Using the support from the 2.4.19 kernel I got the kernel to reconize the diskonchip but I get the following error when trying to create a JFFS2 filesystem: ECC needs a full sector write ( addr 400 size 4c ). What the heck does that mean? I cant find much expect a message post saying disk on chip does not support jffs filesystems.

You need the latest CVS code and it should mostly work.

--
dwmw2

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

seems the jffs2 directory was left out of the patchin.sh file if you run into this just add
ln -sf $TOPDIR/fs/jffs2/*.[ch] fs/jffs2
ln -sf $TOPDIR/fs/jffs2/*akefile fs/jffs2
ln -sf $TOPDIR/include/linux/jffs2*.h include/linux

to the file to fix it.
Thanks for the help
Carl Przybylek

Quoted 11 lines · David Woodhouse
Quoted 5 lines · [email protected] said:

Why does the compatmac.h redefine recalc_sigpending if background.c
just calls it as is

//background.c
recalc_sigpending(current);

It doesn't. You're looking at an old version of background.c.

--
dwmw2