The C1 hardware fan control is not PWM (Pulse Width Modulation) controlled
like the rev A1 and B1.
The fan is controlled by two I/O lines (GPIO lines), given four possibilities,
00-off, 01-low, 10-high, 11-very high (unused)
So, perhaps the /sys/devices/platform/dns323c-fan.0 has the necessary files to
control the fan speed.
Only seeing the list of Debian patches applied to the vanilla kernel one could
tell.
> I can see that in your firmware, that the drivers are present,
> presumably by patching the kernel,
> maybe by using something like the "linux-2.6.35.7-
> dns323_rev_C1_fan_support.patch" from your source
Yes.
> I'm guessing that I need to either patch the kernel I'm currently
> using, (however I can't find any patches for it),
Debian "offers" the patches applied to their kernels.
> (also I'm not even sure how to patch a kernel....)
> or compile a newer kernel with the relevant patches and install that.
Well, you can learn. There are some howtos on that subject.
But if your motivation is just to have control over the fan, it is going to be
the hell of a job (given the outcome).
> I have tried installing a newer kernel, but on reboot, debian reloaded
> won't run.
> (is it even possible to install a newer kernel on a "reloaded"? - if
> so, How?).
Just copy the kernel and initramfs/initrd to the Debian /boot directory and
adjust the /vmlinuz and /initrd.img links to them.
> How do I use the patch?, and can it be used on any kernel?
> It seems to be the same one from lm-sensors
> http://lists.lm-sensors.org/pipermail/lm-sensors/2010-June/028733.html
> Do you have any hints/pointers as to the process that I need to do in
> order to get fancontrol?
> (Just the process... I'll google how to actually do it)
It is involved. Configuring, compiling and running a kernel for a 386 desktop
computer is complicated enought, but for an embedded device, with almost no
user-base support, is much more complex.
> >However, following the approach "you are on your own", I can set the
>
> rev C1 fan speed to low :)
>
> -I found the debian script /rootmnt/rootsq/usr/sbin and shadowed it
> in /usr/sbin, changing
>
> echo 255 > /sys/class/hwmon/hwmon1/device/pwm1
> to
> echo 63 > /sys/class/hwmon/hwmon1/device/pwm1
>
> Which matches the low fan speed in Alt-f,
If it is good enough for you, then stick with it.
Don't get me wrong, there is nothing special being able to do it, but given
your background you are going to spend weeks until you are able to get a
running kernel. You have not only to master kernel building but also the
Debian way of generating it.
For me, the workload seems disproportionate to the outcome.