Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Apr 19, 2014 8:08 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 599 posts ]  Go to page 1, 2, 3, 4, 5 ... 40  Next
Author Message
 Post subject: micro_evtd
PostPosted: Wed Nov 21, 2007 8:15 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Well, the version for the LSPRO/KUROPRO is finally done ish. It handles the fan control and button events and does not require the orrible patch in Freelink anymore. It is also kernel independant so all the other orrible scripts can be removed. I am looking for some Beta testers :) I have been running this for a while and cured a few other gremlins. Please note, it has a lot of gash debug in it and is not for general release yet but it does work as advertised. Anyone interested?

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Wed Nov 21, 2007 8:21 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Interested? I was about to post a thread/query about the commands on the LS Pro to control the fan, similar to the ones for the ppc boxes. So, yes, I am interested (even if there is no direct access to fan or led control analogous to that on ppc).

Can it be installed in jytmod?

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Wed Nov 21, 2007 9:01 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
It does give some control to the user. I have added the ability to route commands to the micro through the app so you can do:

micro_evtd -s <micro string>

and it will route the command for you and return the result too. It has auto control of the fan and the buttons and you can attack the LEDs also from the above command. May add some of the features of avr_evtd into it too.

I will PM you when I have the package ready :)

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Wed Nov 21, 2007 10:03 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
lb_worm wrote:
It does give some control to the user. ... app so you can do:

micro_evtd -s <micro string>
sounds great!

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Wed Nov 21, 2007 10:45 pm 
Offline
Developer

Joined: Tue Jul 24, 2007 4:43 pm
Posts: 113
Location: UK
lb_worm: Please send me a copy too, I can test it on the lspro

Thanks,

_________________
Byron Bradley


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Wed Nov 21, 2007 11:16 pm 
Offline
Newbie

Joined: Sun Jul 29, 2007 8:53 pm
Posts: 73
Location: Victoria, BC, Canada
I'd love to try it too. I have a LS Pro running etch, and one running the eabi sid from gnuab.

_________________
Saving the world, one kilobyte at a time.


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Thu Nov 22, 2007 2:53 am 
Offline
Newbie

Joined: Thu Sep 27, 2007 12:55 am
Posts: 5
I'd like to test it, I have a kuro pro with freelink and updated kernel 2.6.16.16.


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Thu Nov 22, 2007 5:05 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
All those wishing to Beta test, can you forward a posting address? (E-Mail) for me to send to :)

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Fri Nov 23, 2007 4:36 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
To all those that have replied I am just making a few last minute changes as my LS has been powering down unexpectedly. I will leave running again over night and make sure that it is okay before releasing Beta testing code. Hope that is okay.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Fri Nov 23, 2007 8:50 pm 
Offline
Regular Member

Joined: Mon Aug 01, 2005 9:31 pm
Posts: 76
Is the TMP variable working correctly on this version?
I moved my RAM directory to somewhere else and I have to rewrite the program and compile it to make sure the program take's the TMP value.

Here's my current setting with modified micro_evtd
# Tmp/ram disk location
TMP=/lib/init/rw
# Debug log file location
LOG=/var/log
# Advanced use only. Will log events when enabled
DEBUG=0
# Default on, set to off to disable fan control
MONITOR=ON
# Default 40 seconds, daemon monitor/refresh state
REFRESH=40
# Default 30 seconds, fan stationary timer
FANSTOP=30
# Default 35 45 50 60, temperature/fan controls
# 35 - slow, normal running ~33 C-deg
# 45 - fast
# 50 - full
# 60 - Too hot alarm, overheat
TEMP-RANGE=40 50 55 60
# Default no, set to YES to use average sampled temp to
# give a smoother control of fan speed
TREND=YES
# Default 2, specify fan/temp control hysteresis 1-5
HYSTERESIS=3


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Sat Nov 24, 2007 8:07 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I will check this out. I did not realise there was a problem with this. The reason to hit the /tmp on the ram disk was to minimise harddrive access as the Eventscript was used a lot. This has changed but the temp/fan can still be written out to the /tmp/my_status if required. This was to make it compatible with the web interface. I will make this optional now though :).

Testing is going well and I think I have now cured the drive power downs. It has been running for some 24+ hours without any problems. I have also added a note regarding the fan control as I have found that the drive actually runs hotter than the temp displayed by the sensor. I expect that this if MB temp which will be (and is seen as being) some 10 degrees cooler than the drive. I have modified the default temp/fan speeds according to what I have seen on my system. This is only an example though :)

I will package and post to the Beta testers soon. Sorry for any delay. I am in transit at the moment.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Tue Nov 27, 2007 6:54 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Fixed the /tmp issue. Will run again tonight and package this up for Beta testing and post tomorrow.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Wed Nov 28, 2007 10:27 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I have posted all those that have wanted to Beta test the micro_evtd today. If you have any probs then please only post this forum and not my e-mail, thankyou.

If you extract the source and makefiles to:

/usr/src/micro_evtd

and make the executable by typing:

make micro_evtd

This does not copy yet to the run location so copy by typing:

cp micro_evtd /usr/local/sbin/.

There are replacements for:

/etc/default/micro_evtd
/etc/micro_evtd/Eventscript

I have removed the boot manager and kernelmon script handlers from my system so if someone could detail all those files that need to be removed on a stock/Debian system then that would be good.

I use the ipcs protocol to allow multiple controlled access to the micon. If this could be tested on stock/Debian and any other system then that would help.

Sorry for the delay but I have been testing on LS and KURO on both the 2.6.23 and 'vanilla' 2.6.24 kernels too.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Sat Dec 01, 2007 7:15 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Small problem with my sysV setup of semaphore and I have made the following changes to overcome these. This was only evident on powerup:

Changed the resources rouine to:

Code:
static void getResourceLock(void)
{
   union semun {
      int val;
      struct semid_ds *buf;
      ushort *array;
   } arg;

   syslog(LOG_INFO, "getting mutex");

   // Get semaphore
   mutexId = semget(mutex, 1, IPC_CREAT|0666);
   // Check if got, failed then must still be valid so get it
   if (mutexId == 0) {
      syslog(LOG_INFO, "Failed mutex create");
      // Release the mutex
      if (semctl(mutexId, 0, IPC_RMID, arg) != -1) {
         mutexId = semget(mutex, 1, IPC_CREAT|0666);
      }
   }
      
   if (mutexId > 0) {
      syslog(LOG_INFO, "exisitng mutex Id %d", mutexId);
      
      // Initialise semaphore to 0
      arg.val = 1;
      semctl(mutexId, 0, SETVAL, arg);
      
      syslog(LOG_INFO, "mutex up");
   }


and changed the -s keyword code to:

Code:
      case 's':
         argc--;
         argv++;
         // Grab the mutex, -1 will indicate no server
         mutexId = semget(mutex, 1, 0);
         printf("got mutex %d\n", mutexId);
         if (mutexId > 0) {
            // Allocate device
            open_serial();
            // Get command length
            iLen = strlen(*argv)/2;
            // Get the HEX command
            ulMessage = strtoul(*argv, NULL, 16);
            // Byte swap please
            swab(&ulMessage, &ulMessage, iLen);
            // Push it out and return result
            printf("%d\n", writeUART(iLen, (unsigned char*)&ulMessage));
         }
         // Indicate an error
         else
            printf("-999\n");
         exit(0);
         break;

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: micro_evtd
PostPosted: Tue Dec 04, 2007 12:37 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
thank you lb_worm!

we have tried micro-evtd in foonas-em (timtimred kindly posted the new image) and it, along w/ micon are handling fan and led control nicely... no more annoying buzzer fits...

will post back upon seeing any problems or w/ questions...

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 599 posts ]  Go to page 1, 2, 3, 4, 5 ... 40  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group