From: "Brian J. Murrell" <23025b7367b1a31e3ff7682b8a6ae18e@interlinx.bc.ca>
To: linux-mtd@lists.infradead.org
Cc: Jamey.Hicks@hp.com, joern@wohnheim.fh-wedel.de
Subject: Re: MTD Config.in items not escaped by bus availability
Date: Wed, 30 Oct 2002 17:46:33 -0500 [thread overview]
Message-ID: <20021030224633.GI27880@pc.ilinx> (raw)
In-Reply-To: <20021030214341.GC25383@wohnheim.fh-wedel.de>
[-- Attachment #1: Type: text/plain, Size: 3031 bytes --]
On Wed, Oct 30, 2002 at 10:43:41PM +0100, Jörn Engel wrote:
>
> In simple terms, mtd is an interface to read, write and erase memory
> devices:
> - Read any part of the device.
> - Write any part of the device, writing only flips 1s to 0s.
> - Erase predefined blocks atomically, erasing flips all 0s in the
> block to 1s.
OK.
> This is a perfect interface for flash memory, might also be nice for
> cdrw, dvdram, etc. and sucks for most everything else.
I see.
> Yes, quite similar. The only use I see for this is development and
> testing,
Which coincides with the use of UML nicely.
> but that is not the worst use. A notebook with uml is
> sufficient to do a lot of stuff without real hardware.
Right.
> Kinda. You need some sort of memory to create an mtd device from. But
> this memory does not have to be real hardware, just as you can create
> filesystems on raid devices, network block devices, loopback files,...
OK, so the general MTD subsystem is applicable without hardware, parts
are not though.
> Maybe. The stuff in drivers/mtd/chips and /nand looks like a good
> candidate.
Right.
> > > You can say, it already is. But
> > >
> > > [ "$CONFIG_MEMORY_BUS" = "y" -o
> > > "$CONFIG_HAS_MEMORY" = "y" -o
> > > "$CONFIG_HAS_BLOCK_DEVICES" = "y" ]
>
> -o is the key. ;-)
> Any system sans uml has a memory bus and uml has block devices.
Right. My example was a generalization around the whole MTD
sub-system. If it were going to be finer grained to specific devices,
the tests would specific to the bus(es) they can use.
> So the
> test evaluates to true in either case. Ignoring it completely keeps
> Config.in shorter and simpler, which is a Good Thing(tm).
But any device that requires access to physical hardware will break
during a UML build if it is enabled during the configure. It should
not even be selectable if it's required hardware is not selected,
IMHO.
> "need to be protected by"? Propably not. "don't make much sense
> without"? Propable yes.
And will break the building of a UML if selected. The idea is not to
get a couple of hours into a kernel build and go "oooops, I forgot to
disable ______ hardware driver" when the build breaks because of some
hardware access not being available in the UML configuration.
> This looks like a tradeoff between complexity in the Config.ins and in
> .config or the make *config interface. If you want to keep the user
> interface shorter and are willing to do the work, go ahead!
It's fairly simple work in the Config.ins. I would do it but I don't
really know what kinds of devices (i.e. buses) are required by the
various MTD devices. I did do this work for PC apple/ethertalk cards
and submitted it to Marcelo.
> Actually, the longer I think about it, the more sense it makes. Might
> really be a good idea.
I hoped I could bring you (rather, somebody, anybody with more
knowlege about this than I) around. :-)
b.
--
Brian J. Murrell
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-10-30 22:16 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-30 16:22 MTD Config.in items not escaped by bus availability 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 [this message]
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-11-07 12:13 ` Unable to handle kernel NULL pointer dereference at virtual address 0000000c nur
-- strict thread matches above, loose matches on Subject: below --
2002-10-30 22:09 MTD Config.in items not escaped by bus availability Hicks, Jamey
2002-10-28 13:48 Brian J. Murrell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021030224633.GI27880@pc.ilinx \
--to=23025b7367b1a31e3ff7682b8a6ae18e@interlinx.bc.ca \
--cc=Jamey.Hicks@hp.com \
--cc=joern@wohnheim.fh-wedel.de \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.