* how to access jffs2 partition properties?
@ 2005-03-12 17:20 Robert P. J. Day
2005-03-14 14:15 ` Jörn Engel
0 siblings, 1 reply; 7+ messages in thread
From: Robert P. J. Day @ 2005-03-12 17:20 UTC (permalink / raw)
To: MTD mailing list
on a PPC system using a 2.4.22 kernel, is there a way to access the
properties for the jffs2 filesystems that have been defined on the two
flash chips this system has?
it's easy enough to see the devices /dev/mtdblock/[0-4] that
represent the partitions, and the file /proc/partitions contains:
31 0 64 mtdblocka
31 1 384 mtdblockb
31 2 128 mtdblockc
31 3 3072 mtdblockd
31 4 29184 mtdblocke
but can i examine, for each of these, its chip, starting address,
ending address, etc? thanks.
rday
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to access jffs2 partition properties?
2005-03-12 17:20 how to access jffs2 partition properties? Robert P. J. Day
@ 2005-03-14 14:15 ` Jörn Engel
2005-03-14 14:27 ` Jörn Engel
2005-03-14 14:41 ` Artem B. Bityuckiy
0 siblings, 2 replies; 7+ messages in thread
From: Jörn Engel @ 2005-03-14 14:15 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: MTD mailing list
On Sat, 12 March 2005 12:20:27 -0500, Robert P. J. Day wrote:
>
> on a PPC system using a 2.4.22 kernel, is there a way to access the
> properties for the jffs2 filesystems that have been defined on the two
> flash chips this system has?
>
> it's easy enough to see the devices /dev/mtdblock/[0-4] that
> represent the partitions, and the file /proc/partitions contains:
>
> 31 0 64 mtdblocka
> 31 1 384 mtdblockb
> 31 2 128 mtdblockc
> 31 3 3072 mtdblockd
> 31 4 29184 mtdblocke
>
> but can i examine, for each of these, its chip, starting address,
> ending address, etc? thanks.
Not all mtd are flash based. Mtd code should have zero knowledge
about chip, start address, etc. If you need that information, you
have to tweak the mapping driver to give it out.
Jörn
--
Premature optimization is the root of all evil.
-- Donald Knuth
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to access jffs2 partition properties?
2005-03-14 14:15 ` Jörn Engel
@ 2005-03-14 14:27 ` Jörn Engel
2005-03-14 14:41 ` Artem B. Bityuckiy
1 sibling, 0 replies; 7+ messages in thread
From: Jörn Engel @ 2005-03-14 14:27 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: MTD mailing list
On Mon, 14 March 2005 15:15:09 +0100, Jörn Engel wrote:
>
> Not all mtd are flash based. Mtd code should have zero knowledge
^
mtd core, i meant.
> about chip, start address, etc. If you need that information, you
> have to tweak the mapping driver to give it out.
Jörn
--
Invincibility is in oneself, vulnerability is in the opponent.
-- Sun Tzu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to access jffs2 partition properties?
2005-03-14 14:15 ` Jörn Engel
2005-03-14 14:27 ` Jörn Engel
@ 2005-03-14 14:41 ` Artem B. Bityuckiy
2005-03-14 14:59 ` Jörn Engel
1 sibling, 1 reply; 7+ messages in thread
From: Artem B. Bityuckiy @ 2005-03-14 14:41 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: MTD mailing list
> Not all mtd are flash based. Mtd code should have zero knowledge
> about chip, start address, etc. If you need that information, you
> have to tweak the mapping driver to give it out.
>
> Jörn
May be /proc/mtd is what you are looking for ?
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to access jffs2 partition properties?
2005-03-14 14:41 ` Artem B. Bityuckiy
@ 2005-03-14 14:59 ` Jörn Engel
2005-03-14 15:33 ` Josh Boyer
0 siblings, 1 reply; 7+ messages in thread
From: Jörn Engel @ 2005-03-14 14:59 UTC (permalink / raw)
To: Artem B. Bityuckiy; +Cc: MTD mailing list, Robert P. J. Day
On Mon, 14 March 2005 17:41:28 +0300, Artem B. Bityuckiy wrote:
>
> >Not all mtd are flash based. Mtd code should have zero knowledge
> >about chip, start address, etc. If you need that information, you
> >have to tweak the mapping driver to give it out.
>
> May be /proc/mtd is what you are looking for ?
Nope. mphysmap (the old version from several years ago) created its
own proc file. That one, in combination with /proc/mtd would contain
the necessary information.
New mphysmap is missing the proc file. And the person that requested
the driver has been silent for a while, so I have no idea if it even
works. Lack of hardware.
Jörn
--
When in doubt, use brute force.
-- Ken Thompson
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to access jffs2 partition properties?
2005-03-14 14:59 ` Jörn Engel
@ 2005-03-14 15:33 ` Josh Boyer
2005-03-14 16:17 ` Jörn Engel
0 siblings, 1 reply; 7+ messages in thread
From: Josh Boyer @ 2005-03-14 15:33 UTC (permalink / raw)
To: Jörn Engel; +Cc: Artem B. Bityuckiy, MTD mailing list, Robert P. J. Day
On Mon, 2005-03-14 at 15:59 +0100, Jörn Engel wrote:
>
> New mphysmap is missing the proc file. And the person that requested
> the driver has been silent for a while, so I have no idea if it even
> works. Lack of hardware.
Who was that? Me? I haven't had a chance to look at it yet, but it
looked nicer than the one I'm currently using anyway. I'll try to get
to it eventually.
josh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to access jffs2 partition properties?
2005-03-14 15:33 ` Josh Boyer
@ 2005-03-14 16:17 ` Jörn Engel
0 siblings, 0 replies; 7+ messages in thread
From: Jörn Engel @ 2005-03-14 16:17 UTC (permalink / raw)
To: Josh Boyer; +Cc: Artem B. Bityuckiy, MTD mailing list, Robert P. J. Day
On Mon, 14 March 2005 09:33:52 -0600, Josh Boyer wrote:
> On Mon, 2005-03-14 at 15:59 +0100, Jörn Engel wrote:
> >
> > New mphysmap is missing the proc file. And the person that requested
> > the driver has been silent for a while, so I have no idea if it even
> > works. Lack of hardware.
>
> Who was that? Me? I haven't had a chance to look at it yet, but it
> looked nicer than the one I'm currently using anyway. I'll try to get
> to it eventually.
No, it was some private mail from about a month ago.
Jörn
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
-- Brian W. Kernighan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-03-14 16:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-12 17:20 how to access jffs2 partition properties? Robert P. J. Day
2005-03-14 14:15 ` Jörn Engel
2005-03-14 14:27 ` Jörn Engel
2005-03-14 14:41 ` Artem B. Bityuckiy
2005-03-14 14:59 ` Jörn Engel
2005-03-14 15:33 ` Josh Boyer
2005-03-14 16:17 ` 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