Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 46 to 60 of 110

Thread: Amule client for wl500gp

  1. #46
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    So there is no difference and we need a patch for rlimit. 0.9.28.3 is not show for compatibility reasons.

  2. #47
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    The following code is from uClibc-0.9.28/libc/sysdeps/linux/common/setrlimit.c
    PHP Code:
    /* vi: set sw=4 ts=4: */
    /*
     * setrlimit() for uClibc
     *
     * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
     *
     * GNU Library General Public License (LGPL) version 2 or later.
     */

    #include "syscalls.h"

    #ifndef __NR_ugetrlimit
    /* Only wrap setrlimit if the new ugetrlimit is not present */

    #define __NR___setrlimit __NR_setrlimit
    #include <unistd.h>
    #include <sys/resource.h>
    #define RMIN(x, y) ((x) < (y) ? (x) : (y))
    _syscall2(int__setrlimitintresource, const struct rlimit *, rlim);
    int setrlimit(__rlimit_resource_t resource, const struct rlimit *rlimits)
    {
            
    struct rlimit rlimits_small;

            
    /* We might have to correct the limits values.  Since the old values
             * were signed the new values might be too large.  */
            
    rlimits_small.rlim_cur RMIN((unsigned long intrlimits->rlim_cur,
                                                                      
    RLIM_INFINITY >> 1);
            
    rlimits_small.rlim_max RMIN((unsigned long intrlimits->rlim_max,
                                                                      
    RLIM_INFINITY >> 1);
            return (
    __setrlimit(resource, &rlimits_small));
    }

    #undef RMIN

    #else                                                   /* We don't need to wrap setrlimit */

    #include <unistd.h>
    struct rlimit;
    _syscall2(intsetrlimitunsigned intresource,
                    const 
    struct rlimit *, rlim);
    #endif 
    that explaing why you get 1GB FSIZE limit. RLIM_INFINITY is defined as 0x7fffffff
    . Shifting it one bit to the right produces what we get when issuing kernel syscall2. So everything looks OK. See newer version http://www.uclibc.org/cgi-bin/viewcv...21&view=markup

    I suggest to fix amule code to mask SIGXFSZ signal or undefine calls to resource limits.

  3. #48
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    I suggest to fix amule code to mask SIGXFSZ signal
    this seems to be the complete solution for amule

    or undefine calls to resource limits.
    this is close to my initial suggestion, but we observe some strange behavior (in my earlier posts) either due to compile or runtime environment.

    However, first of all, I believe that this is a bug in uclibc. It affects any mipsel application which uses setrlimit (e.g. mysql). It affects also any similar application in some other architectures. So, it should be reported to uclibc people.

    In principle, this >>1 seems to me to be useless at least in our case. If we still accept that such situation might somehow happen, may be this will be enough (instead of >>1):

    PHP Code:
    if ((unsigned long int)(rlimits->rlim_max RLIM_INFINITY)) 
      
    rlimits->rlim_max RLIM_INFINITY;
    if ((
    unsigned long int)(rlimits->rlim_cur RLIM_INFINITY)) 
      
    rlimits->rlim_cur RLIM_INFINITY
    On the other hand:

    I should admit --- I have no idea how to change the toolchain

    Russian saying says: don't touch an old shit and it will not smell

    What to choose?
    Last edited by al37919; 13-04-2007 at 06:49.

  4. #49
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164

    Question Compile a MODded version of amule ?

    Due to the nature of my ISP, I have always LOW ID and Kad disconnected using ipkg version of amule. I need to compile a MODded version of amule (the same I use with success on my PC).
    I've found here http://www.adunanza.net/download.php?view.80 sources for this version.
    Can someone please help me with a step by step guide on how-to compile that source code to work on my Asus WL-500gP with latest Oleg's firmware and ipkg-opt installed ?

    Thanks, Max

  5. #50
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    http://trac.nslu2-linux.org/optware/changeset/6017 adds AdunanzA patches to amule.
    Still waiting for 1GB limit solution. Any progress on that?

  6. #51
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Quote Originally Posted by oleo View Post
    http://trac.nslu2-linux.org/optware/changeset/6017 adds AdunanzA patches to amule.
    Still waiting for 1GB limit solution. Any progress on that?
    Many thanks, can someone please point me to an HOW-TO tutorial that explain how to compile this source code using WL500 (I don't have Linux installed on my PC) ?

    Thank you. Max

  7. #52
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736

  8. #53
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    Still waiting for 1GB limit solution. Any progress on that?
    hi oleo!
    unfortunately my skills are not enough for that. I even don't understand what's the difference between your and my builds (and where these new 700Mb could come from). I placed working amuled binary without 1Gb limit in the Russian thread (built using the patch supplied by me above).
    http://wl500g.info/showpost.php?p=52214&postcount=25
    It works fine for me for a month already, and dimonb confirmed on my request that it is working correctly.

    Probably your suggestion is the best, because it will harm as minimum of other things as possible. However, again both modifying of the toolchain, and "to mask SIGXFSZ" are out of my experience. So, actually, the hope is on you.

  9. #54
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Yesterday ipkg-opt upgraded my amuled from 2.1.3-7 to 2.1.3-8.
    What's changed ?

    Thanks, Max

  10. #55
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    -8 adds AdunanzA patches to amule

  11. #56
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Thanks Oleg for aMule Adunanza compile, now I have hundreds of Kad nodes available, but I suppose you have to move back to -7, because AdunanzA is a modded version dedicated to italian Fastweb ISP.
    It works great for me but I suppose for anyone else.
    The only problem with this version is with Kad connections, it appear always as firewalled, even if I setup my router to forward both TCP and UDP aMule's ports to the router LAN IP address (192.168.1.250 in my case).

    I'm trying to compile AdunanzA by myself, but I'm in trouble compiling toolchain (take a look please to my post http://www.wl500g.info/showthread.php?t=9264).

    Max

  12. #57
    I have not understood one what, the file > 1Gb can be unloaded?

  13. #58
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    Current version of amuled (-6, -7, -8?) crashes when attempting to load file chunks located above 1Gb limit (-6) (possibly 700 Mb in -7). The temporary solution is available: install amule through ipkg and replace the amuled binary with my one (see my previous post).

  14. #59
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Quote Originally Posted by al37919 View Post
    Current version of amuled (-6, -7, -8?) crashes when attempting to load file chunks located above 1Gb limit (-6) (possibly 700 Mb in -7). The temporary solution is available: install amule through ipkg and replace the amuled binary with my one (see my previous post).
    really? I've applied patch that You provided. See http://trac.nslu2-linux.org/optware/...c-mipsel.patch

  15. #60
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    I know, however my build works and your one no, sorry
    I have not done any other changes in my build.
    I have no idea what the difference is between our build systems.

Page 4 of 8 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. How-to: Use your router as a BitTorrent Client
    By GerardNL in forum WL-700g Tutorials
    Replies: 28
    Last Post: 24-10-2007, 20:38
  2. Firewall dies
    By confused in forum WL-500g Q&A
    Replies: 0
    Last Post: 04-11-2006, 19:09
  3. Cannot enable WEP encryption in client mode
    By eldavies in forum WL-HDD Q&A
    Replies: 0
    Last Post: 07-09-2006, 22:27
  4. Firmware v1.9.2.7 CR4 [Oleg]
    By Oleg in forum WL-500g Firmware Releases
    Replies: 195
    Last Post: 08-08-2006, 14:18
  5. Asus WL-500b & Client Mode
    By cooper.zl in forum WL-500g Q&A
    Replies: 1
    Last Post: 17-10-2004, 19:27

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •