public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Compiling MTD in the kernel
@ 2000-07-17 14:48 Sébastien Côté
  2000-07-17 14:54 ` David Woodhouse
  2000-07-17 15:07 ` Nick Ivanter
  0 siblings, 2 replies; 7+ messages in thread
From: Sébastien Côté @ 2000-07-17 14:48 UTC (permalink / raw)
  To: mtd

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?

-- 
Sébastien Côté


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compiling MTD in the kernel
  2000-07-17 14:48 Compiling MTD in the kernel Sébastien Côté
@ 2000-07-17 14:54 ` David Woodhouse
  2000-07-17 15:07 ` Nick Ivanter
  1 sibling, 0 replies; 7+ messages in thread
From: David Woodhouse @ 2000-07-17 14:54 UTC (permalink / raw)
  To: Sébastien Côté; +Cc: mtd


scote1@Matrox.COM 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 majordomo@infradead.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Compiling MTD in the kernel
@ 2000-07-17 15:05 mark.langsdorf
  2000-07-17 15:36 ` Sébastien Côté
  2000-07-17 17:00 ` David Woodhouse
  0 siblings, 2 replies; 7+ messages in thread
From: mark.langsdorf @ 2000-07-17 15:05 UTC (permalink / raw)
  To: mtd

> 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

	Are you using the 2.2.16 patch of the 2000/07/04 build?  I am
having a similar problem, and it looks like the patch does not set up
the make files properly to handle the jffs stuff.  At least, the jffs
is not an option with 'make menuconfig' even though the other MTD 
stuff is.
 
> It's the same errors I would get If I had compiled everything 
> as modules but didn't load them.

-Mark Langsdorf


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compiling MTD in the kernel
  2000-07-17 14:48 Compiling MTD in the kernel Sébastien Côté
  2000-07-17 14:54 ` David Woodhouse
@ 2000-07-17 15:07 ` Nick Ivanter
  2000-07-17 15:36   ` David Woodhouse
  1 sibling, 1 reply; 7+ messages in thread
From: Nick Ivanter @ 2000-07-17 15:07 UTC (permalink / raw)
  To: SИbastien CТtИ; +Cc: mtd

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


Nick.

SИbastien CТtИ wrote:

> 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?
>
> --
> SИbastien CТtИ
>
> To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compiling MTD in the kernel
  2000-07-17 15:05 mark.langsdorf
@ 2000-07-17 15:36 ` Sébastien Côté
  2000-07-17 17:00 ` David Woodhouse
  1 sibling, 0 replies; 7+ messages in thread
From: Sébastien Côté @ 2000-07-17 15:36 UTC (permalink / raw)
  To: mark.langsdorf; +Cc: mtd

mark.langsdorf@amd.com wrote:
> 
> > 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
> 
>         Are you using the 2.2.16 patch of the 2000/07/04 build?  I am
> having a similar problem, and it looks like the patch does not set up
> the make files properly to handle the jffs stuff.  At least, the jffs
> is not an option with 'make menuconfig' even though the other MTD
> stuff is.

That patch worked fine for me, at least with xconfig.  It's located at
the bottom of the filesystem submenu and it's marked experimental so you
have to enable the option "Prompt for development and/or incomplete
code/drivers".  Maybe that's why you don't see it with menuconfig.
-- 
Sébastien Côté


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compiling MTD in the kernel
  2000-07-17 15:07 ` Nick Ivanter
@ 2000-07-17 15:36   ` David Woodhouse
  0 siblings, 0 replies; 7+ messages in thread
From: David Woodhouse @ 2000-07-17 15:36 UTC (permalink / raw)
  To: Nick Ivanter; +Cc: SИbastien CТtИ, mtd


nick@auriga.ru 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 majordomo@infradead.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compiling MTD in the kernel
  2000-07-17 15:05 mark.langsdorf
  2000-07-17 15:36 ` Sébastien Côté
@ 2000-07-17 17:00 ` David Woodhouse
  1 sibling, 0 replies; 7+ messages in thread
From: David Woodhouse @ 2000-07-17 17:00 UTC (permalink / raw)
  To: mark.langsdorf; +Cc: mtd


mark.langsdorf@amd.com said:
> 	Are you using the 2.2.16 patch of the 2000/07/04 build?  I am having
> a similar problem, and it looks like the patch does not set up the
> make files properly to handle the jffs stuff.  At least, the jffs is
> not an option with 'make menuconfig' even though the other MTD  stuff
> is.

Strange. It should be.

--- fs/Config.in        2000/06/07 10:00:29     1.5
+++ fs/Config.in        2000/06/26 07:30:01
@@ -59,6 +59,7 @@
   if [ "$CONFIG_EFS_FS" != "n" ]; then
     define_bool CONFIG_SGI_PARTITION y
   fi
+  tristate 'Journalling Flash filesystem (JFFS) support (experimental)' CONFIG_JFFS_FS
 fi
 
 if [ "$CONFIG_NET" = "y" ]; then


--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-07-17 17:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-17 14:48 Compiling MTD in the kernel Sébastien Côté
2000-07-17 14:54 ` David Woodhouse
2000-07-17 15:07 ` Nick Ivanter
2000-07-17 15:36   ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2000-07-17 15:05 mark.langsdorf
2000-07-17 15:36 ` Sébastien Côté
2000-07-17 17:00 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox