public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* MTD Config.in items not escaped by bus availability
@ 2002-10-28 13:48 Brian J. Murrell
  0 siblings, 0 replies; 25+ messages in thread
From: Brian J. Murrell @ 2002-10-28 13:48 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

I have noticed that the whole MTD kernel configuration subsystem
(drivers/mtd/Config.in) in the 2.4.19 kernel is not escaped by any bus
configuration items.  That is, even on a kernel that I configure with
no busses (i.e. UML), I am still asked about MTD devices.  Should ths
really be so?  How can I have any MTD devices with no bus to connect
them to?

If this is the case, can I ask, somebody who knows better than I do,
can you please modify the Config.in for MTD and wrap the whole thing
with a test for the presence of configuration items for the various
different busses that MTD supports?  Something like:


mainmenu_option next_comment
comment 'Memory Technology Devices (MTD)'

if [ "$CONFIG_PCMCIA" = "y" -o "$CONFIG_PCMCIA" = "m" -o
     "$CONFIG_USB" = "y" -o "$CONFIG_USB" = "m" ]; then
    tristate 'Memory Technology Device (MTD) support' CONFIG_MTD
    ...
fi

endmenu

Thanx,
b.

-- 
Brian J. Murrell

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: MTD Config.in items not escaped by bus availability
@ 2002-10-30 16:22 Hicks, Jamey
  2002-10-30 17:30 ` Brian J. Murrell
       [not found] ` <20021030185507.GA31547@wohnheim.fh-wedel.de>
  0 siblings, 2 replies; 25+ messages in thread
From: Hicks, Jamey @ 2002-10-30 16:22 UTC (permalink / raw)
  To: Brian J. Murrell, linux-mtd

> -----Original Message-----
> From: Brian J. Murrell
> [mailto:cc718ee62b87e84e665d57aa27e6bf39@interlinx.bc.ca]
> Sent: Monday, October 28, 2002 8:49 AM
> To: linux-mtd@lists.infradead.org
> Subject: MTD Config.in items not escaped by bus availability
> 
> 
> I have noticed that the whole MTD kernel configuration subsystem
> (drivers/mtd/Config.in) in the 2.4.19 kernel is not escaped by any bus
> configuration items.  That is, even on a kernel that I configure with
> no busses (i.e. UML), I am still asked about MTD devices.  Should ths
> really be so?  How can I have any MTD devices with no bus to connect
> them to?

Some MTD devices connect directly to the CPU.  It seems to me that if you have a CPU with a memory bus, then it is possible to have MTD devices, so drivers/mtd/Config.in needs to give you the option of selecting those devices.

The MTD configuration is all wrapped with the toplevel CONFIG_MTD option, so there is really only one question you would have to say 'No' to in order to avoid the others.

-Jamey

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: MTD Config.in items not escaped by bus availability
@ 2002-10-30 22:09 Hicks, Jamey
  0 siblings, 0 replies; 25+ messages in thread
From: Hicks, Jamey @ 2002-10-30 22:09 UTC (permalink / raw)
  To: Brian J. Murrell, linux-mtd; +Cc: joern

> -----Original Message-----
> From: Brian J. Murrell
> [mailto:8db422baa67bd7a698f50768bba0d47e@interlinx.bc.ca]
> Sent: Wednesday, October 30, 2002 3:50 PM
> To: linux-mtd@lists.infradead.org
> Cc: joern@wohnheim.fh-wedel.de; Hicks, Jamey
> Subject: Re: MTD Config.in items not escaped by bus availability
> 

> So the MTD subsystem will build and run on a UML (i.e. it has no
> hardware properties such as IRQ's, DMA, etc. itself)?  Surely there
> must be some aspect of the MTD system which becomes dependent on
> addressing specific hardware devices though?

I think that MTD can be built and run on UML.  Try these configuration options:
  CONFIG_MTD=y
  CONFIG_MTD_CHAR=m
  CONFIG_MTD_BLOCK=m
 
You can use system memory provided by vmalloc() for a test MTD device by enabling CONFIG_MTD_MTDRAM:
  CONFIG_MTDRAM=m

You can use a block device to provide a test MTD device with the blkmtd driver:
  CONFIG_MTD_BLKMTD=m

Neither of these virtual MTD devices depends on IRQ's, DMA, or other hardware resources.

-Jamey

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

end of thread, other threads:[~2002-11-07 15:30 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 13:48 MTD Config.in items not escaped by bus availability Brian J. Murrell
  -- strict thread matches above, loose matches on Subject: below --
2002-10-30 16:22 Hicks, Jamey
2002-10-30 17:30 ` Brian J. Murrell
     [not found] ` <20021030185507.GA31547@wohnheim.fh-wedel.de>
2002-10-30 19:38   ` Brian J. Murrell
     [not found]     ` <20021030201608.GA28523@wohnheim.fh-wedel.de>
2002-10-30 20:49       ` Brian J. Murrell
     [not found]         ` <20021030214341.GC25383@wohnheim.fh-wedel.de>
2002-10-30 22:46           ` Brian J. Murrell
2002-10-31 16:53             ` Jörn Engel
2002-10-31 18:37               ` Jörn Engel
2002-10-31 19:05                 ` Brian J. Murrell
2002-10-31 21:00                   ` Jörn Engel
2002-11-03 11:59                 ` Brian J. Murrell
2002-11-04 14:17                   ` Jörn Engel
2002-11-04 14:29                     ` Brian J. Murrell
2002-11-04 17:13                       ` Jörn Engel
2002-11-06 20:45                         ` Brian J. Murrell
2002-11-07  8:00                           ` David Woodhouse
2002-11-07 13:50                             ` Brian J. Murrell
2002-11-07 14:00                               ` David Woodhouse
2002-11-07 15:33                                 ` Jörn Engel
2002-11-07 15:34                                   ` David Woodhouse
2002-11-07 15:54                                     ` Jörn Engel
2002-11-07 15:58                                       ` David Woodhouse
2002-11-07 16:00                                         ` Jörn Engel
2002-11-07 15:21                               ` Jörn Engel
2002-10-30 22:09 Hicks, Jamey

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