* What's the preferred way to export board information to userspace ?
@ 2007-10-02 8:10 Laurent Pinchart
2007-10-02 8:39 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 4+ messages in thread
From: Laurent Pinchart @ 2007-10-02 8:10 UTC (permalink / raw)
To: linuxppc-dev
Hi everybody,
it seems linuxppc-embedded is going away. I should have posted this here in=
=20
the first place, so sorry for the cross-post.
I need to export some read-only board-specific information (serial number,=
=20
boot mode jumper configuration, ...) that are collected from various locati=
ons=20
(CPLD, flash, U-Boot, ...) to userspace applications.
Could anyone advice me on the preferred way to do that ? I can easily add a=
=20
quick&dirty sysfs/procfs based implementation, but I was wondering if there=
=20
was some kind of clean and generic way.
Best regards,
=2D-=20
Laurent Pinchart
CSE Semaphore Belgium
Chauss=E9e de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
=46 +32 (2) 387 42 75
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What's the preferred way to export board information to userspace ?
2007-10-02 8:10 What's the preferred way to export board information to userspace ? Laurent Pinchart
@ 2007-10-02 8:39 ` Benjamin Herrenschmidt
2007-10-02 9:02 ` Laurent Pinchart
0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2007-10-02 8:39 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linuxppc-dev
On Tue, 2007-10-02 at 10:10 +0200, Laurent Pinchart wrote:
> Hi everybody,
>
> it seems linuxppc-embedded is going away. I should have posted this here in
> the first place, so sorry for the cross-post.
>
> I need to export some read-only board-specific information (serial number,
> boot mode jumper configuration, ...) that are collected from various locations
> (CPLD, flash, U-Boot, ...) to userspace applications.
>
> Could anyone advice me on the preferred way to do that ? I can easily add a
> quick&dirty sysfs/procfs based implementation, but I was wondering if there
> was some kind of clean and generic way.
Userspace can read /proc/device-tree no ? :-)
Appart from that, it's common to stick that sort of thing
in /proc/cpuinfo... /sys/firmware may be an option if you have shitloads
of stuff ..
Ben.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What's the preferred way to export board information to userspace ?
2007-10-02 8:39 ` Benjamin Herrenschmidt
@ 2007-10-02 9:02 ` Laurent Pinchart
0 siblings, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2007-10-02 9:02 UTC (permalink / raw)
To: benh; +Cc: linuxppc-dev
Hi Ben,
On Tuesday 02 October 2007 10:39, Benjamin Herrenschmidt wrote:
> On Tue, 2007-10-02 at 10:10 +0200, Laurent Pinchart wrote:
> > Hi everybody,
> >
> > it seems linuxppc-embedded is going away. I should have posted this here
> > in the first place, so sorry for the cross-post.
> >
> > I need to export some read-only board-specific information (serial
> > number, boot mode jumper configuration, ...) that are collected from
> > various locations (CPLD, flash, U-Boot, ...) to userspace applications.
> >
> > Could anyone advice me on the preferred way to do that ? I can easily a=
dd
> > a quick&dirty sysfs/procfs based implementation, but I was wondering if
> > there was some kind of clean and generic way.
>
> Userspace can read /proc/device-tree no ? :-)
Except I'm still using ARCH=3Dppc. I know I shouldn't :-) The MPC8272 isn't=
well=20
supported in ARCH=3Dpowerpc. Scott Wood submitted some patches I need befor=
e=20
switching.
> Appart from that, it's common to stick that sort of thing
> in /proc/cpuinfo... /sys/firmware may be an option if you have shitloads
> of stuff ..
It's not really CPU information, but I guess I can stick that in there.
Best regards,
=2D-=20
Laurent Pinchart
CSE Semaphore Belgium
Chauss=C3=A9e de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
=46 +32 (2) 387 42 75
^ permalink raw reply [flat|nested] 4+ messages in thread
* What's the preferred way to export board information to userspace ?
@ 2007-10-01 9:41 Laurent Pinchart
0 siblings, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2007-10-01 9:41 UTC (permalink / raw)
To: linuxppc-embedded
Hi everybody,
I need to export some read-only board-specific information (serial number,=
=20
boot mode jumper configuration, ...) to userspace applications.
Could anyone advice me on the preferred way to do that ? I can easily add a=
=20
quick&dirty sysfs/procfs based implementation, but I was wondering if there=
=20
was some kind of clean and generic way.
Best regards,
=2D-=20
Laurent Pinchart
CSE Semaphore Belgium
Chauss=E9e de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
=46 +32 (2) 387 42 75
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-02 9:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 8:10 What's the preferred way to export board information to userspace ? Laurent Pinchart
2007-10-02 8:39 ` Benjamin Herrenschmidt
2007-10-02 9:02 ` Laurent Pinchart
-- strict thread matches above, loose matches on Subject: below --
2007-10-01 9:41 Laurent Pinchart
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).