* get mtd name and manufacturer from high level app
@ 2009-12-02 14:30 Salvatore Frizzoli - IMS Italy
2009-12-04 8:50 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Salvatore Frizzoli - IMS Italy @ 2009-12-02 14:30 UTC (permalink / raw)
To: linux-mtd
Hi all,
I am working on an application under a uClinux kernel.
This application would read name, manufacturer and id of the mtd flash
device.
I have seen that it is not possible to do this by ioctl, so I don't know
how to do.
I have also seen the get_mtd_device function, but i cannot know how to
fill the
mtd_info struct that get_mtd_device takes as input parameter.
Is there a way to get theese infos similar to ioctl?
Thank you all.
Bye.
Salvatore
--
Salvatore Frizzoli
Software Developer
Research & Development Department
IMS srl
Via Sagittario, 5
Fraz. Pontecchio Marconi
40037 Sasso Marconi (BO)
Italy
Tel. ++39 051 846851
Fax ++39 051 846856
http://www.imsitaly.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: get mtd name and manufacturer from high level app
2009-12-02 14:30 get mtd name and manufacturer from high level app Salvatore Frizzoli - IMS Italy
@ 2009-12-04 8:50 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2009-12-04 8:50 UTC (permalink / raw)
To: Salvatore Frizzoli - IMS Italy; +Cc: linux-mtd
On Wed, 2009-12-02 at 15:30 +0100, Salvatore Frizzoli - IMS Italy wrote:
> Hi all,
>
> I am working on an application under a uClinux kernel.
> This application would read name, manufacturer and id of the mtd flash
> device.
> I have seen that it is not possible to do this by ioctl, so I don't know
> how to do.
Take a look at the mtdinfo utility in mtd-utils/ubi-utils. It reads most
of the data from sysfs.
Manufecturer ID is not available though, and you need to teach the
kernel to export it.
Look inside of mtdinfo to find out how it does things. You can also
extend it and send patches.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-04 8:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02 14:30 get mtd name and manufacturer from high level app Salvatore Frizzoli - IMS Italy
2009-12-04 8:50 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).