Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Apr 21, 2014 12:31 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: avr_evtd
PostPosted: Wed Sep 05, 2007 5:30 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5330
Location: Cologne, Germany
Please post your avr_evtd questions here, in reply to this message.


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Fri Sep 21, 2007 5:09 pm 
Offline
Newbie

Joined: Tue Apr 11, 2006 10:41 pm
Posts: 17
Greetings,

Since there's an offer to help with avr_evtd, I thought I would take you up on it. :D

I've been struggling getting it to work right on my Kurobox HG. I was originally getting help from a few folks over at the Kurobox forums but they suggested I'd go here.

In nutshell, after moving to U-Boot and installing avr_evtd, neither of my buttons work. Not only that, there is never any logs created from the /etc/default/avr_evtd which points to LOG=/var/log. As a test, I also cleared out the /etc/avr_evtd/EventScript file and just had one command in there to print "Hello" in a tmp file. That never happens either.

I'm using

Code:
# avr_evtd -v
Linkstation/Kuro AVR daemon Version 1.7.2


For full details on what was tried and done, click here

Any help or suggestions would be greatly appreciated.

Thanks!


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Sun Nov 25, 2007 5:32 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 10:54 pm
Posts: 240
Location: UK
I have a small issue (that I have hacked around)

In the foonas-em configuration when the files from the initramfs are extracted they are given a modified date of the unix epoch. For some reason if the configuration file creation date is equal to this then the config is ignored:

Code:
         /* Has this file changed? */
         if (filestatus.st_mtime != tt_LastMelcoAcess)
         {
            file = (int*)open("/etc/default/avr_evtd", O_RDONLY);


My current hack around this is to append a newline with nothing in it when the box boots hence changing the modified date, easy to strip this out too (which is what im doing next for foonas-em builds), but why does this happen? I'm sure someone had a reason! :)

_________________
Help the foonas fundraiser!

Click here for more information and donations


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Sun Nov 25, 2007 4:25 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 10:54 pm
Posts: 240
Location: UK
Suggest this fix gos into the next version, should not break existing stuff I don't think...

Code:
diff -urN avr_evtd.old/avr_evtd.c avr_evtd/avr_evtd.c
--- avr_evtd.old/avr_evtd.c     2006-10-29 18:27:28.000000000 +0000
+++ avr_evtd/avr_evtd.c 2007-11-25 15:48:25.000000000 +0000
@@ -108,7 +108,7 @@
 TIMER* poffTimer=NULL;
 TIMER* ponTimer=NULL;
 int i_FileDescriptor = 0;
-time_t tt_LastMelcoAcess = 0;
+time_t tt_LastMelcoAcess = -1;
 int i_TimerFlag = 0;
 long l_ShutdownTimer=9999; /* Careful here */
 char c_FirstTimeFlag=1;

_________________
Help the foonas fundraiser!

Click here for more information and donations


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Sun Dec 16, 2007 3:06 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Thanx timtim. Do these modified intialisation values get around the initramfs extracted datestamp times?

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Sun Jan 06, 2008 5:16 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 10:54 pm
Posts: 240
Location: UK
Yep works great (oops lost this thread!), this fix is currently used in foonas-em

_________________
Help the foonas fundraiser!

Click here for more information and donations


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Tue Feb 05, 2008 2:38 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I will push the avr_evtd daemon along a bit when I am done with the micro_evtd daemon. I think this has been left for too long now, sorry all.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Fri Sep 19, 2008 12:19 am 
Offline
Newbie

Joined: Sun Aug 31, 2008 11:07 pm
Posts: 48
lb_worm wrote:
I will push the avr_evtd daemon along a bit when I am done with the micro_evtd daemon. I think this has been left for too long now, sorry all.

I've been in contact with lb_worm and we settled the issue of taking care of both avr_evtd and micro_evtd (maybe a code merge or sharing parts that are common?).

If you want to see the changes that I have already made to avr_evtd, please see: http://ppc-evtd.svn.sourceforge.net/vie ... ortby=date

If you have patches that could improve the project, please do send them. I want to keep things as open as possible, so that it gets as much peer-review as possible.

My next plans will be to add proper error treatment to the daemon (I will be refactoring things a bit).

BTW, Bob, if you have changes, please send them soon, so that I can merge them, since you can see that the svn revisions are growing quite fast. :)


Regards, Rogério Brito.


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Fri Sep 19, 2008 12:32 am 
Offline
Newbie

Joined: Sun Aug 31, 2008 11:07 pm
Posts: 48
rbrito wrote:
I've been in contact with lb_worm and we settled the issue of taking care of both avr_evtd and micro_evtd (maybe a code merge or sharing parts that are common?).

If you want to see the changes that I have already made to avr_evtd, please see: http://ppc-evtd.svn.sourceforge.net/vie ... ortby=date

I guess that you can get a better view of the changes by looking at: http://ppc-evtd.svn.sourceforge.net/vie ... e&view=log

Regards, Rogério Brito.


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Fri Sep 19, 2008 1:46 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
rbrito, awesome...

I'm thinking that avr_evtd also runs/is needed on mipsel based boxes (the LS2).

I (now) have one to test it on, if you need something checked for function...

_________________
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: avr_evtd
PostPosted: Fri Sep 19, 2008 3:27 am 
Offline
Newbie

Joined: Sun Aug 31, 2008 11:07 pm
Posts: 48
davy_gravy wrote:
rbrito, awesome...

I'm thinking that avr_evtd also runs/is needed on mipsel based boxes (the LS2).

I (now) have one to test it on, if you need something checked for function...


Hi, Davy.

Well, you might remember me posting newbie-style questions a few days ago. Now, I'm glad to be contributing back to the community.

Regarding avr_evtd, it has, indeed, code for MIPS. Can you tell me if it actually mips or mipsel, so that I can fix the build process? An uname -a would be appreciated.

I will surely need some testers. Have you installed avr_evtd from sources or have you installed it as a package? And are you using the pata drivers or the sata ones? I'm now using a vanilla kernel from http://www.kernel.org (cross-compiled on my x86-64) and everything is working so well, with an uImage boot-style... :) I'm quite happy with it. :)

Oh, and you might see that I've created a repository for both micro_evtd and avr_evtd, so that we (me and lb_worm) can share the parts of code that are common between the two daemons and that reduces the incidence of bugs...

And testing is always appreciated. Thanks.


Regards, Rogério Brito.


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Fri Sep 19, 2008 3:38 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
rbrito wrote:

1. Regarding avr_evtd, it has, indeed, code for MIPS. Can you tell me if it actually mips or mipsel, so that I can fix the build process? An uname -a would be appreciated.

I will surely need some testers.

2. Have you installed avr_evtd from sources or have you installed it as a package? And are you using the pata drivers or the sata ones? I'm now using a vanilla kernel from http://www.kernel.org (cross-compiled on my x86-64) and everything is working so well, with an uImage boot-style... :) I'm quite happy with it. :)

3. Oh, and you might see that I've created a repository for both micro_evtd and avr_evtd, so that we (me and lb_worm) can share the parts of code that are common between the two daemons and that reduces the incidence of bugs...


1. It is mipsel. As far as kernel, it is a little behind the times... but at least 2.6.
Code:
root@lsmipsel:~# uname -a
Linux lsmipsel 2.6.22.19 #1 Sun Sep 14 16:09:42 CDT 2008 mips unknown

Some users are still running 2.4, but I'm not sure precisely which version...

I am tinkering w/ getting a current 2.6.27 for it, but this is not going quickly... :|

2. I've installed it a number of ways ... compiled & installed, from ipkg, and hand-copied binaries.

3. Sounds like a good idea.

:)

_________________
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: avr_evtd
PostPosted: Fri Sep 19, 2008 7:13 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
The code runs for the MIPSEL and is just a def in the make process.

I am currently addressing some issues with the 1.8.x drop and this will be posted soon.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Sat Sep 20, 2008 12:55 am 
Offline
Newbie

Joined: Sun Aug 31, 2008 11:07 pm
Posts: 48
lb_worm wrote:
The code runs for the MIPSEL and is just a def in the make process.

Yes, I need to know this, so that I can include it in Debian latter. I have already made a precompiled package (for PowerPC) on http://www.ime.usp.br/~rbrito/debian/ (and the sources are there too) of the 1.7.3 version (which is 1.7.2 with a few bugfixes and patches by me). Be warned that:

  • It follows the Debian Policy strictly.
  • It doesn't support the melco things in that build.

BTW, lb_worm, so that I can make public releases and announce things on the project (as well as other things), please put me as an admin of the project, instead of a developer.

The next Debian packages will include the melco things. I'm thinking of doing that in a run-time way (I particularly don't use them, so the package is fine with me, but others may like to use the melco things).

(And include support for mipsel, but I have no box here to compile it).

Quote:
I am currently addressing some issues with the 1.8.x drop and this will be posted soon.

Please, don't waste much time addressing such things. Put the code under revision control (or let me know and I will put it). This way, everything that you develop will have a history tracked by Subversion.

lb_worm: the original build process needs to be completely redesigned. I can take care of that, but I don't want to reinvent the wheel, since I don't know in what you are working now.


Regards, Rogério Brito.


Top
 Profile  
 
 Post subject: Re: avr_evtd
PostPosted: Mon Sep 22, 2008 7:24 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I realise the the build file does not fit Debian. This was produced to try and support many different distro's. Its okay to modify for Debian but I think we still need this basic file for those with stock devices which do not have the Debian support tools. I think that the Debian load should be a seperate branch under SVN.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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