On Tue, 2012-10-09 at 09:59 +0100, Martin Michlmayr wrote:
> * Ian Campbell <[email protected]> [2012-10-09 09:26]:
> > Can someone have a look in e.g. /sys/devices/virtual/gpio or some of the
> > other directories in "find /sys/ -name \*gpio\*" and see if they can
> > find it?
>
> Attached is a script I developed in 2010 which will look at the GPIOs.
Thanks, what an obtuse interface, I never would have figured that out.
Seems racy as all hell to me but nevermind ;-)
> > Looking at the qcontrol source it doesn't seem to have any knowledge of
> > the individual fans, it just has a single fanspeed command.
>
> I looked through my email archives and the problem appears to be
> different to what I recalled. It seems the problem is that not all
> QNAP devices have a fan; if you enable the fan on those devices,
> you'll get period error messages in the log file saying that it cannot
> read the status of the fan. Anyway, there are very few devices
> without a fan. I believe only the TS-109 and TS-119. It should be
> possible to detect these via GPIOs.
Looking at ts219-setup.c "QNAP TS-119/TS-219":
MPP44_GPIO, /* Board ID: 0: TS-11x, 1: TS-21x */
But I'm not sure if x is always "9" or if this board file also supports
110, 112 etc. I suspect it does support the others.
The 109 is the Orion based on, arch/arm/mach-orion5x/ts209-setup.c
doesn't seem to declare a GPIO to distinguish 109 from 209.
Ian.
--
Ian Campbell
Current Noise: Deicide - They Are The Children Of The Underworld
Don't wake me up too soon...
Gonna take a ride across the moon...
You and me.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]