DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#26 2008-10-31 11:40:32

Loose Gravel
Member
Registered: 2008-10-14
Posts: 50

Re: Yet another fan controller

fonz wrote:

Feel free to add it yourself.

Would like to, but way beyond my abilities. Could someone else jump in?

Offline

 

#27 2008-11-01 03:38:39

DaveN
Member
Registered: 2008-01-12
Posts: 21

Re: Yet another fan controller

fonz,

Thanks for the link to the temperature fail thread - will comment further there.

I'm not familiar enough with linux to know the commands for the vanilla kernel, so I made the mods only in the case of dns323_init is being called.  Hopefully this makes sense.  If I'm going to merge the code I want to ensure to do it right.  :-)

I've attached the modified code - can you cross-compile it for me?  I don't have a linux box (other than my 323) to compile on.  I'm fairly confident that there are no typos (a free online compiler produced a binary output so it passed the first step anyway) - however this situation reminds me of my initial introduction to computers.

As a teenager in school, my first computer course involved creating programs by filling out punch cards.  We didn't actually punch holes in the cards, just filled in the appropriate circles with a dark pencil.  My school did not have a computer or a card reader though, so once a week on Friday all our programs were sent to the main school board office where someone would pass each of the students programs through the one computer which was shared by all schools in the district.  They would collect the printout (on 2 inch wide thermal paper) and send the programs and results back to our class.  If you had made a programming mistake (or didn't hand your punch cards in in the correct order) it took another week to try again!  I think this was in 1983 or 84.

Cheers,
Dave.

Last edited by DaveN (2008-11-01 04:50:41)


Attachments:
Attachment Icon fanctl-2.tgz, Size: 3,327 bytes, Downloads: 410

Offline

 

#28 2008-11-01 12:48:23

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Yet another fan controller

DaveN wrote:

I've attached the modified code - can you cross-compile it for me?

No. Why don't you compile it on your DNS-323?

http://www.inreto.de/dns323/fun-plug/0. … l#binutils
http://www.inreto.de/dns323/fun-plug/0. … S.html#gcc
http://www.inreto.de/dns323/fun-plug/0. … .html#make

Offline

 

#29 2008-11-04 03:42:02

DaveN
Member
Registered: 2008-01-12
Posts: 21

Re: Yet another fan controller

Fonz, Thanks for making me do it on my own.  It's important to learn something new every day.

For anyone else who want to compile the fanctl source package on their DNS-323, installation of the above three packages plus,
http://www.inreto.de/dns323/fun-plug/0. … el-headers
http://www.inreto.de/dns323/fun-plug/0. … tml#uclibc
is enough.  For those of you with mostly Windows experience, no reboot is required after installation smile, just cd to the source directory and type "make" to compile the fanctl executable.

Cheers,
Dave.

Offline

 

#30 2009-04-15 03:10:11

talkingRock
Member
Registered: 2009-03-26
Posts: 100

Re: Yet another fan controller

@fonz,

I took a look at your source for dns323-spindown.

I noticed that the script artificially enforces a 5 minute minimum spindown time.   Is there a reason for this?     It seems like a good reason to install some build tools, but I'd rather not have my "hello world" make smoke come out of the box!  ;-)

Offline

 

#31 2009-04-15 10:51:02

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Yet another fan controller

talkingRock wrote:

I noticed that the script artificially enforces a 5 minute minimum spindown time.   Is there a reason for this?

Probably, but I don't really remember. Maybe 5..30 mins is what the web interface allows.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB