* device info in /proc/mtd
@ 2003-04-16 17:25 Thayne Harbaugh
2003-04-17 12:34 ` John Burch
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thayne Harbaugh @ 2003-04-16 17:25 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]
It's nice that loading the amd76xrom module outputs probe information
about a device manufacturer and chip:
[root@172 2466]# modprobe amd76xrom
Found: PMC Pm49FL004
number of JEDEC chips: 1
amd76xrom chip at offset: 480000
I hoped this same information would be in /proc/mtd - it's not.
[root@172 2466]# cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00001000 "AMD76X rom"
Is there someplace where the manufacturer and chip are available other
than in the printk() messages? It would be nice to be able to query
this information at any time - a specific model of motherboard might
socket a different chip depending on cost/availability and I'd like to
be able to track which BIOS flash chip is being used.
Something like this in /proc/mtd might be nice:
dev: size erasesize name manufacturer chip chip_name
mtd0: 00080000 00001000 "AMD76X rom" 009d 006e "PMC Pm49FL004"
Am I crazey? Is this plain wrong? Does anyone have objections if I
submit a patch?
--
Thayne Harbaugh
Linux Networx
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: device info in /proc/mtd
2003-04-16 17:25 device info in /proc/mtd Thayne Harbaugh
@ 2003-04-17 12:34 ` John Burch
2003-04-17 13:05 ` Holger Schurig
2003-04-21 11:44 ` Jörn Engel
2 siblings, 0 replies; 4+ messages in thread
From: John Burch @ 2003-04-17 12:34 UTC (permalink / raw)
To: 'Thayne Harbaugh', linux-mtd
>
> Something like this in /proc/mtd might be nice:
>
> dev: size erasesize name manufacturer chip chip_name
> mtd0: 00080000 00001000 "AMD76X rom" 009d 006e "PMC Pm49FL004"
>
It'd also be nice to see the value of CFG_MTD_PHYSMAP_START, maybe as
'base'.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: device info in /proc/mtd
2003-04-16 17:25 device info in /proc/mtd Thayne Harbaugh
2003-04-17 12:34 ` John Burch
@ 2003-04-17 13:05 ` Holger Schurig
2003-04-21 11:44 ` Jörn Engel
2 siblings, 0 replies; 4+ messages in thread
From: Holger Schurig @ 2003-04-17 13:05 UTC (permalink / raw)
To: linux-mtd
> It would be nice to be able to query
> this information at any time - a specific model of motherboard might
> socket a different chip depending on cost/availability and I'd like to
> be able to track which BIOS flash chip is being used.
For what do you need this? Do "dmesg >/var/log/dmesg" at boot-time and you
can grep this file whenever you want it.
Many people won't need this info, they run linux in a tightly defined
environment where you always load the same drivers for the MTD subsystem.
They know if the have a 49FL004 or whatever. No need to retrieve this info
from somewhere else.
Adding fields after the output of /proc/mtd may break some applications that
use this info, e.g. flash utilities.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: device info in /proc/mtd
2003-04-16 17:25 device info in /proc/mtd Thayne Harbaugh
2003-04-17 12:34 ` John Burch
2003-04-17 13:05 ` Holger Schurig
@ 2003-04-21 11:44 ` Jörn Engel
2 siblings, 0 replies; 4+ messages in thread
From: Jörn Engel @ 2003-04-21 11:44 UTC (permalink / raw)
To: Thayne Harbaugh; +Cc: linux-mtd
On Wed, 16 April 2003 11:25:45 -0600, Thayne Harbaugh wrote:
>
> It's nice that loading the amd76xrom module outputs probe information
> about a device manufacturer and chip:
>
> [root@172 2466]# modprobe amd76xrom
> Found: PMC Pm49FL004
> number of JEDEC chips: 1
> amd76xrom chip at offset: 480000
>
> I hoped this same information would be in /proc/mtd - it's not.
>
> [root@172 2466]# cat /proc/mtd
> dev: size erasesize name
> mtd0: 00080000 00001000 "AMD76X rom"
>
> Is there someplace where the manufacturer and chip are available other
> than in the printk() messages? It would be nice to be able to query
> this information at any time - a specific model of motherboard might
> socket a different chip depending on cost/availability and I'd like to
> be able to track which BIOS flash chip is being used.
>
> Something like this in /proc/mtd might be nice:
>
> dev: size erasesize name manufacturer chip chip_name
> mtd0: 00080000 00001000 "AMD76X rom" 009d 006e "PMC Pm49FL004"
>
> Am I crazey? Is this plain wrong? Does anyone have objections if I
> submit a patch?
You are not crazy, but I consider this to be the wrong spot for the
information. /proc/mtd should hold those informations that mtd core
code knows about. Device specifics should go somewhere else.
Or could you find a nice common interface for mtdblock (which hard
drive?), mtdram (physical ram addresses), mtdram2 (dynamic allocation,
print the whole list?), NAND (no idea), NOR (manufacturer, chip),
really odd stuff like NOR with hardware ECC and all the nice goodies
that are yet to appear?
Put it into /proc/<find a nice name>, make it as general as possible,
but not more.
Jörn
--
Eighty percent of success is showing up.
-- Woody Allen
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-21 11:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-16 17:25 device info in /proc/mtd Thayne Harbaugh
2003-04-17 12:34 ` John Burch
2003-04-17 13:05 ` Holger Schurig
2003-04-21 11:44 ` Jörn Engel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox