Skip to contentSkip to conversation

Compiling MTD in the kernel

DISCUSSION Sébastien Côté 3 participants 4 messages Jul 17, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I just tried to compile MTD in the kernel (not as a module) btu, even if everything compiles fine, it doesn't work. If I try to cat a jffs image in /dev/mtd0 (I use mtdram), I get:

bash: /dev/mtd0: No such device.

If I try to mount a partition using jffs (even though this partition isn't jffs), I get:
mount: fs type jffs not supported by kernel

It's the same errors I would get If I had compiled everything as modules but didn't load them.

Any clue?

Signature · 4 lines
Sébastien Côté


To unsubscribe, send "unsubscribe mtd" to [email protected]
#1 lore raw
Quoted 2 lines · [email protected] said:

It's the same errors I would get If I had compiled everything as
modules but didn't load them.

2.2 kernel, I assume. Did you apply the mtd-patch-2.2.16 from the patches/ directory? It puts all the calls to the init routines in the right place.

I assume you did enable CONFIG_MTDCHAR and CONFIG_JFFS_FS :)

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#2 lore raw
In reply to Sébastien Côté

You probably did not patch init/main.c and fs/filesystems.c to call init_mtd() and init_jffs_fs() correspondingly.

Nick.

Quoted 15 lines · SИbastien CТtИ

Hi,

I just tried to compile MTD in the kernel (not as a module) btu, even if everything compiles fine, it doesn't work. If I try to cat a jffs image in /dev/mtd0 (I use mtdram), I get:

bash: /dev/mtd0: No such device.

If I try to mount a partition using jffs (even though this partition isn't jffs), I get:
mount: fs type jffs not supported by kernel

It's the same errors I would get If I had compiled everything as modules but didn't load them.

Quoted 6 lines

Any clue?

--
SИbastien CТtИ

To unsubscribe, send "unsubscribe mtd" to [email protected]

To unsubscribe, send "unsubscribe mtd" to [email protected]

#3 lore raw
Quoted 2 lines · [email protected] said:

You probably did not patch init/main.c and fs/filesystems.c to call init_mtd() and init_jffs_fs() correspondingly.

Should be there.

passion /home/dwmw2/working/mtd/patches $ diffstat mtd-patch-2.2.16

 Makefile               |    5 +++++
 arch/alpha/config.in   |    2 ++
 arch/arm/config.in     |    2 ++
 arch/i386/config.in    |    2 ++
 arch/m68k/config.in    |    2 ++
 arch/mips/config.in    |    2 ++
 arch/ppc/config.in     |    2 +-
 arch/s390/config.in    |    3 +++
 arch/sparc/config.in   |    2 ++
 arch/sparc64/config.in |    1 +
 drivers/Makefile       |   11 ++++++++++-
 fs/Config.in           |    1 +
 fs/Makefile            |   10 +++++++++-
 fs/filesystems.c       |    8 ++++++++
 include/linux/module.h |    1 +
 init/main.c            |    7 ++++++-
 kernel/ksyms.c         |    1 +
 kernel/module.c        |   21 ++++++++++++++++++++-

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]