pixelserv compiled to run on router WRT54G

Discussion in 'Tomato Firmware' started by Jedis, Sep 5, 2009.

  1. leandroong

    leandroong LI Guru Member

    Here in Philippines, linksysinfo.org, I have no lag and it open immediately. Could it be because I am using SSD?

    edit: I use it together with USB3 enclosure
     
    Last edited: Dec 26, 2014
  2. HunterZ

    HunterZ Network Guru Member

    No, because I just got an SSD for Xmas :)

    The site seems to be slow for me at some times but not others, so it's possible that people in other time zones may not notice.
     
  3. leandroong

    leandroong LI Guru Member

    Really no lag here. Only difference we have in FW are updated dnsmasq and new usb driver. https://code.google.com/p/rt-n56u/source/list

    edit: I forgot, it could also due to non-standard setting I have as follow: dnsmasq->unbound->dnscrypt-proxy. Dnsmasq cache-sze set to 0
     
  4. Mihai Olimpiu-Cristian

    Mihai Olimpiu-Cristian Networkin' Nut Member

    About the slowdown issue raised some posts back, YES it is pixelserv... I've experienced it also, the minute I shutdown pixelserv (jerrm script) it all goes back to being fast. It's a bug somewhere with some secured connections. It happened a lot on HZ11 (first version, haven't tried fix 1, 2), HZ12WIP seems to have fixed it (for now).
    It usually happens with google servers and on facebook for me...

    It's not usual behavior, if I had restarted the script, everything would go back to normal for some time...that's why I think it's some kind of bug.
    I'm using mips the standard version now, not dynamically linked one.
    (I'll switch to dynamic and see how it performs for some time...)
     
    Last edited: Jan 19, 2015
  5. HunterZ

    HunterZ Network Guru Member

    It's possible that the dynamic version may have issues that are not in the standard one, as dynamic uses whatever libraries are in your firmware (which are usually older than the ones linked into standard by Tomatoware).
     
  6. Mihai Olimpiu-Cristian

    Mihai Olimpiu-Cristian Networkin' Nut Member

    So as a baseline if someone it's using dynamic, should switch to static first if any problems arise...
     
  7. mstombs

    mstombs Network Guru Member

    Should be best to use the dynamic versions built with the same toolchain as the base router firmware, which should use the same libraries as the core apps. Many functions just communicate with the kernel, the firmware toolchain should use the correct kernel headers. Mismatch usually quickly fails, but there is a possibility of obscure errors due to assumptions about the functionality of the relatively old bespoke kernel.

    BUT I doubt this is the issue. For some https websites it may be better to REJECT the SSL requests at iptables level (not DROP, as that would incur retries and timeouts). It may be that the browser sees any response as a sign of life and retries multiple times with different levels/types of security.

    As ever if you can submit a bug report with reproducible issue it can be investigated!

    I still haven't looked into the timeouts I get, which might be seen as problems by some users...

    Code:
    /mnt/usb4gb/pixelserv version: V35.HZ11FIX2 compiled: Nov 29 2014 13:32:49 options: 192.168.66.254 -p 80 -p 81 -p 8080 -p 8081 -p 443
    4446017 uts, 150948 req, 526 avg, 103143 rmx, 2537 tav, 19060 tmx, 0 err, 20878 tmo, 2316 cls, 2 nou, 2 pth, 6256 nfe, 11469 ufe, 841 gif, 14 bad, 31702 txt, 1005 jpg, 29 png, 125 swf, 14 ico, 69113 ssl, 45 sta, 1 stt, 1 204, 6602 rdr, 531 pst, 1 hed
     
  8. remlei

    remlei Networkin' Nut Member

    you can try adblocking via iptables, but the memory usage will be so high, try using the adblock option in p2partisan, 64mb RAM routers will suffer from 18k entries in iptables.
     
  9. HunterZ

    HunterZ Network Guru Member

    @remlei he's just talking about having iptables reject all SSL connections on the pixelserv IP instead of having pixelserv accept and semi-gracefully close the connection. I used that approach for a while and it seems to be at least as effective as pixelserv. It may be worth getting support into the adblock script for that, since it already maintains iptables rules for redirecting blocked domains to pixelserv.
     
  10. remlei

    remlei Networkin' Nut Member

    I see, hat makes sense then.

    so how about the v35 build today, does the random x time crash still occur? Im still in v34 right now, ssl is no problem for me, at least with the websites I visit on, no usual slowdown I experience so far.
     
  11. HunterZ

    HunterZ Network Guru Member

    For whatever it's worth, I've been running V35.HZ12WIP1 for over a month:
    Code:
    /cifs1/pixelserv/dist/pixelserv.debug version: V35.HZ12WIP1 compiled: Dec 6 2014 10:18:26 options: 192.168.1.254
    2921260 uts, 410450 req, 1663 avg, 85572 rmx, 777 tav, 19594 tmx, 0 err, 353 tmo, 3574 cls, 0 nou, 0 pth, 23668 nfe, 3268 ufe, 4013 gif, 12 bad, 30935 txt, 481 jpg, 2708 png, 20 swf, 132 ico, 309787 ssl, 128 sta, 0 stt, 3322 204, 19522 rdr, 8527 pst, 0 hed
    I should mention that a major freeze bug present in v34 (and probably older) was fixed in recent v35 builds, so it's worth trying in my opinion.
     
  12. remlei

    remlei Networkin' Nut Member

    I wonder I cant make it work.

    Although I did manage use the built-in nginx web server on tomato shibby,to serve as a 1x1 pixel, it work both http and https (https side needs certificate whitelisted on the browser so once you added it, it will properly view a 1x1 pixel instead of ssl warning).
     
  13. D.Raven

    D.Raven Serious Server Member

    Where can i download HZ12WIP1 for ARM? I couldn't find it anywhere and don't know how to compile it.
    Thx
     
  14. AndreDVJ

    AndreDVJ LI Guru Member

    If I recall correctly, HZ12WIP1 was made specifically to address some issues for K24 users. Functionality wise is unchanged, so I'm still using HZ11FIX2.
     
  15. HunterZ

    HunterZ Network Guru Member

    Yes, the only difference between HZ11FIX2 and HZ12WIP1 is that I made it automatically degrade to a less accurate clock source to help with K24 (older router) compatibility.
     
  16. HunterZ

    HunterZ Network Guru Member

    So I had to reboot my router recently, and decided to capture the pixelserv stats first. Turns out something tried to blindly send a 170MB request to a blocked domain at some point:
    Code:
    time info:
    20:16:14 up 46 days, 18:51, load average: 1.77, 1.29, 0.97
    
    pixelserv info:
    /cifs1/pixelserv/dist/pixelserv.debug version: V35.HZ12WIP1 compiled: Dec 6 2014 10:18:26 options: 192.168.1.254
    4041625 uts, 489649 req, 3963 avg, 170001160 rmx, 777 tav, 19594 tmx, 0 err, 420 tmo, 4629 cls, 0 nou, 0 pth, 32227 nfe, 4081 ufe, 5897 gif, 12 bad, 40539 txt, 875 jpg, 4320 png, 27 swf, 156 ico, 359916 ssl, 158 sta, 0 stt, 4996 204, 21691 rdr, 9700 pst, 4 hed
    If this happens again, I may have to come up with a way to capture the data for analysis.
     
  17. mstombs

    mstombs Network Guru Member

    Wow, and I was worried about my 50kB blocks (probably still Android to Flurry Analytics)

    http://www.linksysinfo.org/index.ph...run-on-router-wrt54g.30509/page-6#post-251121

    I haven't done any more investigation into my timeouts

    Code:
    /mnt/usb4gb/pixelserv version: V35.HZ11FIX2 compiled: Nov 29 2014 13:32:49 options: 192.168.66.254 -p 80 -p 81 -p 8080 -p 8081 -p 443 -o 2
    1389724 uts, 46927 req, 359 avg, 81548 rmx, 403 tav, 3821 tmx, 0 err, 8673 tmo, 600 cls, 0 nou, 0 pth, 1487 nfe, 2906 ufe, 388 gif, 6 bad, 9044 txt, 1 jpg, 1 png, 1 swf, 2 ico, 22057 ssl, 7 sta, 4 stt, 0 204, 1422 rdr, 328 pst, 0 hed
    I've also noticed one of these every day recently ...

    Code:
    Feb 1 11:55:35 rtn66u daemon.warn pixelserv[517]: Sending HTTP 501 response for unknown HTTP method or non-SSL, non-HTTP request: <policy-file-request/>
    which apparently is something to do with Flash
     
    Last edited: Feb 7, 2015
  18. pharma

    pharma Network Guru Member

    Are you using Shibby's firmware? Might have something to do with the geographical mapping feature of the a router's location.
     
  19. ambiance

    ambiance Networkin' Nut Member

    I wish I took a screenshot because I can't remember if UTS was truncated or if it distorted the stats when it hit a certain amount. Any possibility of making it in minutes instead?
     
  20. HunterZ

    HunterZ Network Guru Member

    The uptime should be able to count for decades before it hits a problem, and it wouldn't really make a difference if it was in minutes because I'm just taking the difference of 2 values reported by system library calls. Let me know if you can repeat it though.

    Also, the only stats dependent on time are uptime, tav, and tmx.
     
  21. ambiance

    ambiance Networkin' Nut Member

    If I can repeat it I will. It's not a big deal to tell you the truth.
     
  22. mstombs

    mstombs Network Guru Member

    I haven't checked the code - but expect a glitch if you are still using a 32 bit Linux router in the year 2038 !
    Very sensible to keep the stats line in seconds in the txt response, easy to read/parse into more human readable form by a script reading it.

    If you get corruption that's indicative of a memory overflow bug somewhere.
     
  23. HunterZ

    HunterZ Network Guru Member

    Hopefully we'll be on to something better in two dozen years.

    In the meantime I plan to keep my C development skills up so that I can make some extra money as a contractor during the Y2.038K crisis.
     
    ambiance and AndreDVJ like this.
  24. ambiance

    ambiance Networkin' Nut Member

    God help us!
     
  25. mstombs

    mstombs Network Guru Member

    Here's a minimal router script to parse the uts field from the txt reponse

    Code:
    stats=$(wget -q -O - http://doubleclick.net/servstats.txt)
    s=${stats##*$'\n'};s=${s%% *}
    let d=s/86400;let s=s%86400
    let h=s/3600;let s=s%3600
    let m=s/60;let s=s%60
    echo "Uptime is $d days, $h hours, $m minutes, $s seconds"
    Uses internal command syntax accepted by recent Shibby firmware BusyBox shell - can be executed by pasting into web gui system command window to get

    Code:
    Uptime is 22 days, 12 hours, 44 minutes, 17 seconds
    Above "let" command and $'\n' seem to be bash specific, this version also works in Ubuntu bash and dash shells with default IFS ...

    Code:
    stats=$(wget -q -O - http://doubleclick.net/servstats.txt)
    for v in ${stats%%uts,*}; do s=$v; done
    d=$((s/86400));s=$((s%86400))
    h=$((s/3600));s=$((s%3600))
    m=$((s/60));s=$((s%60))
    echo "Uptime is $d days, $h hours, $m minutes, $s seconds"
     
    Last edited: Feb 14, 2015
    pharma, Goggy and AndreDVJ like this.
  26. visceralpsyche

    visceralpsyche Networkin' Nut Member

    HunterZ, is it possible to get a version of your latest pixelserv in the following format style, so I can compile it on my Tomato Shibby router directly through the System Tool command window (v34 is shown here)?

    I ask because I am unable to get your ZIP file versions to work on my Shibby Tomato K26-AC based RT-N66U router.

    Thanks in advance!

    Code:
    #!/bin/sh
    ## install pixelserv v34
    ## encoded: cat pixelserv | gzip -c | openssl enc -e -base64
    
    PREFIX="/tmp/mnt/microsd/adblock/"    ## adjust this!
    
    [ -d "$PREFIX" ] || mkdir -p "$PREFIX"
    echo "
    H4sIAAqEm1ICA9VafXBbVXY/epIt2bHJs+MEA4Y82YolwJFlxwEnBCJ/xInBCSYx
    Cwyhsr5si8iSKinEYbNdJSQQttrI22YpdJlZ144h22YsQ8LHTAN4aLbdbenA7HRa
    dst2PMzS8sd2J0z5I6UB9Xfue7KfXxxC97++5Pq+c8/HPffcc8+9T/d8d1tfj8lk
    ouIjkY0Ykiu81IZauZXIKlN/GylUSi5aQ6tRk8C1kVeUObxzKUGxoJhRakxcvGph
    WMOZtKI+XlEsDh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OmvIEmpuzybj6BZtdDH6KpzK0U
    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
    Zje2ywdsc6x1l/WlxX6gx7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ERGYZJmaL6IiIZjw+kRMIdE
    WywsrhA2K+LmorK8sly72FD1ENcauv6G/DxOJR1X1DsOqNik8CWJSk7tCPi6aw82
    CHUE4skivq1tgx6vtAoKoj292we27d4piPDetaOvu/j+4J7dLeL9wdi+WPxATJ20
    +nUpvq9SLzwwGJaD2ekTVyiR2DAMp4jJ2Szkd0RTccWAZIx6MeIaCrU0td6qiOuR
    zcW73+3bBkjZ2nAX373z7HO7m282uH48QW6+6WAfCMFl/rAJSrAAUYNa1AF/SNTp
    sbSoH08MixpSRA0Jap2KkrhrYs00W5DHLf5d9W5A9dpFuDb9VeHDa5QmlAGUEZRD
    KOMoXpRTKOrv84UltVhnOJ2uxg4lSS3X8jd/IhGNqHdOzWPrUyPx4L4D/ifC64ei
    /tTIlT64adNVfLDnoT0lvCw85TTBd+58rU9by+rEjaqZ04IKYy8GB+mpQsXUYE32
    SFUZfdlmoh8jXjCLyWuiX6oJODjC3FzSNvDB2Z45cB0rlThnSD13faO183giPHyl
    4i2tG6+ieeHDwjzJ9/b09hDnUu3APyr8K3WRWeKH/5rxWEot/NhKS0tKy2zl5WW2
    srLyipUV5SuuW1FWVllVed1KWa6SyyuqV1XLq/AuF35OKzgfC1KrqPAelZIslxR+
    RTZOSdhKv3hfKfzyG44J3nflkO648yojerZ/1/bK8hs59FX27ujeXczcsnG+ytrV
    F57lFJ3e7o4BzAhjSshUWb7+HFu4d9uu7pnOwSM6vTZ6WpSd4fRIPIQQnVZ6RxPR
    8Cj0CF81HF1rTHwR2DySHo1eOSbP7yvza+JmW+tVhG7v7Wnf5GffzBCpeXT2/7aI
    5JemhWQ2ydQtcnd0T0bNulmap8U5KsW8FM4/4ZwTzjPh3BKRT4LCeSOcK8L5IZwT
    wnkgnPvB+R6c48F5HZzLwfkbnLPBeRqcm8H5GJyDwXkXnGvB+RUipwKFcyc4X4Jz
    JDgv4ryWO8M5D5znwLkNnM/AOQyct8C5CpyfwDkJnIfAuQecb1DMMRC5BCicM8B5
    ApwbwPkAnAPA9/7Fu34E0xG+ePYHyB2BwZMIr6GD2HcjQXKPIHgIMHVwVK3TSSaL
    pMktroHdO3v797hT6f2BFLlFqoA7GRfXwe7wiJoFQO5gOp4EOqRWjwchQiVJRkO+
    UT86HI5DVEpt5Jtj92goHNg/7PYHIhtav/md7QpthUhUzHtUc9aMuVartJwvNYfR
    K/IY56mY+6jmntm0PLQSjY7zCm14aZIW8xctWqnX+pa0fMM2NA5aVF6TRiNr+Xlm
    jY7zE0/a1LxEo36t2nuplsNyEsLHdOOw6PL6inScyyVXEE1U6b5TtPoeHR3P++zN
    RHPSlfLu1dGxXyewGfcv02+/zs5zoJsDndd8Zb8P6+jI4RXJgpZl5AU0OjMV801V
    +xvpIjq6CtBVXIUuoaOrAV3NVfrdr6Pj3Dk+KQ+Yr6T7to6Oc+SizuXlHV2kkzk3
    LgE6m2mpXZj2WR3dGNbimGt5eeOaH3K/GdAdcql5ikY7/1DnO+yLh1zL5xgWx1B8
    mG5qGbr/BR5BvjuQLAAA
    " | openssl enc -d -base64 | gunzip -c > "$PREFIX/pixelserv" && echo success
    chmod +x "$PREFIX/pixelserv"
     
  27. HunterZ

    HunterZ Network Guru Member

    That's not compiling, that's base64 encoding/decoding it.

    You shouldn't be trying to use the new versions that way, because what you're doing is storing the entire binary in NVRAM and then decoding it to RAM. The new pixelserv versions are significantly larger, so even if you're running in 64K NVRAM mode, you're likely to run into problems.

    There are lots of better places to put it:
    • USB stick.
    • CIFS (Windows SMB / Linux Samba/CIFS) network share.
    • JFFS partition.
    • (S)FTP server.
     
    visceralpsyche likes this.
  28. visceralpsyche

    visceralpsyche Networkin' Nut Member

    Thanks for your reply :)

    That's where I'm coming unstuck. I have a MicroSD card in my router which is where I store adblock etc.

    If I copy the pixelserv file in your ZIP file (pixelserv-V35.HZ12WIP1.mips.dynamic.zip) into the adblock directory where the current v34 resides, overwriting it, it doesn't run (says not executable or something similar).

    What am I missing?

    Thanks again!

    Cheers from Berlin,

    Paul :)
     
  29. remlei

    remlei Networkin' Nut Member

    well, you need to extract it.
    and chmod it
     
    visceralpsyche and HunterZ like this.
  30. HunterZ

    HunterZ Network Guru Member

    To add some detail to what remlei said:

    You should probably use the static one, and you have to unzip it.

    You may also need to SSH into the router and run chmod a+x on the binary (or I suppose you could do it from the Execute System Commands menu if you know off the top of your head where the pixelserv binary is from the router's perspective.
     
    visceralpsyche likes this.
  31. visceralpsyche

    visceralpsyche Networkin' Nut Member

    Thank you remlei and HunterZ :)

    It was the chmod that I was missing. It now works as advertised!

    Much obliged to both of you and especially HunterZ for your efforts :)

    Cheers,

    Paul :)
     
  32. HunterZ

    HunterZ Network Guru Member

    Glad to hear you got it working!
     
    visceralpsyche likes this.
  33. torpet

    torpet Network Newbie Member

    I have read all 9 pages of this thread now and I am still not sure what version of pixelserv to use. :D

    All I want is to set up adblocking for my E4200. Could someone fill me in here? Thanks!

    edit: I am using HZ11FIX2, seems to be working great!
     
    Last edited: Apr 9, 2015
  34. my_bey

    my_bey Serious Server Member

    I am using the "pixelserv-V35.HZ11FIX2.ARM"

    http://192.168.2.254/servstats shows:

    Code:
    /mnt/DATA/adblock/pixelserv version: V35.HZ11FIX2 compiled: Nov 29 2014 13:37:00 options: 192.168.2.254
    3667 uts, 256 req, 406 avg, 3423 rmx, 965 tav, 5999 tmx, 0 err, 0 tmo, 52 cls, 0 nou, 0 pth, 17 nfe, 15 ufe, 3 gif, 0 bad, 119 txt, 0 jpg, 1 png, 0 swf, 1 ico, 35 ssl, 1 sta, 0 stt, 0 204, 12 rdr, 0 pst, 0 hed 
    but my https://192.168.2.1/user/adblock.sh page shows:

    Code:
     adblock status:
    blocklist: up
    iptables: up - 9 rules
    pixelserv: up
    logging: up
    hosts: 67300
    ttl: 0
    
    
    pixelserv info:
    ERROR: No response from pixelserv. 
    Am I not running the correct version of pixelserv to get the "ERROR: No response from pixelserv."?
    I tried "pixelserv-V35.HZ11WIP13.ARM", it produces the same result.
     
  35. jerrm

    jerrm Network Guru Member

    The pixelserv status query is performed on the router, not by your browser.

    If you run "wget http://192.168.2.254/servstats" from the command line what are the results?

    Chances are some other firewall rules are blocking access. What other, non-stock rules are involved?
     
  36. my_bey

    my_bey Serious Server Member

    Running "wget http://192.168.2.254/servstats" from the command line, I get:

    Connecting to 192.168.2.254 (192.168.2.254:80)
    wget: can't connect to remote host (192.168.2.254): Connection timed out

    I have some rules under Administration, Scripts, Firewall tab. I removed all of them, rebooted and tried again. I get the same result as above.

    My IP range is specified in the range 192.168.2.100-132. Is this a factor?

    Thanks for replying..
     
  37. jerrm

    jerrm Network Guru Member

    Post your config, and confirm you are using the current version (2015-04-01) of adblock.sh.
     
  38. Goggy

    Goggy Network Guru Member

    You are using OpenVPN by any chance?
     
  39. my_bey

    my_bey Serious Server Member

    Yes, OpenVPN is active and running.
    I stopped the VPN. I get the same results as above.
     
  40. HunterZ

    HunterZ Network Guru Member

    So your web browser can access pixelserv at 192.168.2.254, but your router can't. That's bizarre.
     
  41. Goggy

    Goggy Network Guru Member

    disable "Start OpenVPN with WAN" and start it manually after Router-restart and it will work
    You can also start it via Wan StartUP-Script (service vpnserver1 start) and it will work too

    After some time (restart OpenVPN after Reconnect) the timeout's are back. Has something to do with overwritten loopback - firewall - settings ...
     
  42. my_bey

    my_bey Serious Server Member

    My IP range is specified in the range 192.168.2.100-132. I changed it to 192.168.2.100-254 along with Goggy's recommendations. It worked. Then, I changed the IP range back to my original range 100-132. Error came back.

    By the way, adblcok.sh has this version:
    ## Modified from Clean, Lean and Mean Adblock v4.5 by haarp
    release="20150401"

    Thanks for the workaround.

    EDIT (12 April 2015): A day later, status shows "ERROR: No response from pixelserv. " again. It was working yesterday.

    By the way, is there an explanation of abbreviations used in the pixelserv statistics anywhere?
    70132 uts, 1226 req, 530 avg, 4149 rmx, 414 tav, 9998 tmx, 0 err, 2 tmo, 48 cls, 0 nou, 0 pth, 266 nfe, 31 ufe, 9 gif, 0 bad, 337 txt, 0 jpg, 3 png, 1 swf, 1 ico, 193 ssl, 18 sta, 0 stt, 0 204, 309 rdr, 8 pst, 0 hed
     
    Last edited: Apr 12, 2015
  43. mstombs

    mstombs Network Guru Member

    From memory,

    uts - uptime in seconds
    req - total number of requests handled
    avg and rmx - average and max size of request - many ad sites pass cookie like info on the request line
    tav and tmx - average and max time taken to process requests, distorted by multiple of default timeout of 10000 milliseconds
    err - unclassified request probably should be 0 in latest version
    tmo - timeout, pixelserv gives up waiting for request and closes the connection
    cls - connection closed by client before full request received or reply sent
    ssl - attempt to make https connection rejected (client may attempt to connect more than once with lower levels of security)
    bad - not a http GET, POST or HEAD request - see syslog - gets a 501
    pst - http POST request
    hed - http HEAD request
    nou - no url /path/file.ext in GET request
    pth, nfe no path or file extension in request
    ufe - unknown file extension
    txt - null text response sent for .js* and by default
    gif, jpg, png, swf, ico - image requested, a null image of correct type sent
    sta - stats html reply - browser will also request favicon.ico which should get cached
    stt - stats txt reply
    204
    rdr - re-direct (tracking links)

    see latest code for definitive! https://github.com/HunterZ/pixelserv/blob/master/socket_handler.c

    my current stats with custom test config
    Code:
     /mnt/usb4gb/pixelserv version: V35.HZ11FIX2 compiled: Nov 29 2014 13:32:49 options: 192.168.66.254 -p 80 -p 81 -p 8080 -p 8081 -p 443 -o 2
    254723 uts, 9445 req, 777 avg, 6285 rmx, 2055 tav, 4011 tmx, 0 err, 2010 tmo, 16 cls, 0 nou, 0 pth, 550 nfe, 343 ufe, 28 gif, 4 bad, 2872 txt, 0 jpg, 0 png, 0 swf, 1 ico, 3333 ssl, 1 sta, 13 stt, 0 204, 274 rdr, 0 pst, 0 hed
    Uptime is 2 days, 22 hours, 54 minutes, 38 seconds

    The bads are typically:-

    Code:
    Apr 13 22:25:55 pixelserv[5419]: Sending HTTP 501 response for unknown HTTP method or non-SSL, non-HTTP request: <policy-file-request/>
    You have to work quite hard to challenge all the counters, I nearly got them all to test back here
    pixelserv compiled to run on router WRT54G
     
    Last edited: Apr 14, 2015
  44. remlei

    remlei Networkin' Nut Member

    mines uptime is 38 days...

    Code:
    pixelserv info: 
    /cifs1/tomato/adblock2/pixelserv version: V35.HZ12WIP1 compiled: Dec 6 2014 10:18:14 options: 192.168.0.254
    3364956 uts, 297048 req, 562 avg, 49209 rmx, 1112 tav, 10817 tmx, 0 err, 146 tmo, 17090 cls, 0 nou, 0 pth, 28998 nfe, 12570 ufe, 903 gif, 27 bad, 49076 txt, 310 jpg, 481 png, 81 swf, 513 ico, 166068 ssl, 27 sta, 0 stt, 0 204, 13068 rdr, 7690 pst, 0 hed 
     
  45. mstombs

    mstombs Network Guru Member

    Its a shame we haven't collected stats in the 5 years this thread has been running, I suspect the balance has changed significantly. My recollection is that back then most ads used to be simple images, and a simple collapsible gif was huge improvement to the 'broken image symbol'. Then IE used to generate script errors because it was ignoring the image type and trying to execute the binary gif, so we needed to be more selective about what to reply... then more scripting to give dynamic personalized ads ... now almost half the requests are using https - so content cannot be parsed by an intermediary between browser and ad server.
     
  46. HunterZ

    HunterZ Network Guru Member

    I have a legend for the stat counters in the readme on the Github repo: https://github.com/HunterZ/pixelserv

    mstombs' list looks correct. The 204 counter is for intercepted Google /generate_204 URLs, which my Android phone was hammering in order to determine whether it was in a walled garden. By having pixelserv generate HTTP 204 (No Content) responses to these URLs, I no longer have to whitelist mysterious Google servers that seem to serve no other purpose that is useful to end-users.
     
    visceralpsyche likes this.
  47. Juniorek

    Juniorek New Member Member

    hello could You help me with running pixelserv on tis router?
    i get permission denied;/
    running dd-wrt
     
  48. HunterZ

    HunterZ Network Guru Member

    Make sure the Linux execute permission is set on the executable.
     
  49. WaLLy3K

    WaLLy3K Networkin' Nut Member

    I get a lot of this spamming my log:

    FYI:
    Can anything be done about that? :)
     
  50. HunterZ

    HunterZ Network Guru Member

    A "CONNECT" request suggests that something on your network trying to connect to a proxy server hosted on a domain name that is in your blocklist. Seems like you would want to either disable whatever is doing that or else whitelist the server.
     
  51. WaLLy3K

    WaLLy3K Networkin' Nut Member

    I genuinely don't know what would be on my network doing that, which meets that criteria!
     
  52. Juniorek

    Juniorek New Member Member

    i`ve chmod`ed it to 777 and it still doesn`t run;/
     
  53. Drats

    Drats Reformed Router Member

    I noticed earlier that you are trying to run pixelserv on dd-wrt... I don't think the pixelserver from HunterZ will run under dd-wrt unless it is a version earlier than his version V35.HZ8 certainly not V35.HZ11WIP13.

    Maybe HunterZ can correct me if I am wrong.

    Ray
     
  54. mstombs

    mstombs Network Guru Member

    The "TP-Link TL-WDR4300" is an Atheros SOC router, might have a MIPS core but likely needs a binary built with the correct toolchain.

    Some versions of pixelserv run on dd-wrt, there are issues with use of port 80 and 443 which are generally not available, also some builds of dd-wrt do not have a user "nobody", so may have to specify "-u root" if that is still a fatal error. Tomato has low privilege user nobody for use by dnsmasq. Another gotcha with dynamic builds is that "printf" is often null defined in dd-wrt libraries, so may not get anything to appear in console windows!
     
    Last edited: May 27, 2015
  55. superdos

    superdos Networkin' Nut Member

    here's V35.HZ12WIP1 for ARM that I compiled and use on my Asus RT-AC68U if anyone wants it.
     

    Attached Files:

  56. Weltherrscher

    Weltherrscher Reformed Router Member

    Does your pixelserv info in adblockweb.sh work?
    Mine says "ERROR: No response from pixelserv. "
    pixelserv itself is working (ps lists it).

    //edit:
    nevermind...
    forgot that we arm users need to use the special version of wget (with --bind-address).
     
    etyrnal likes this.
  57. superdos

    superdos Networkin' Nut Member

    Ok good it's working.
    Don't use the adblockweb.sh, if I wanted to, what do you need to configure for the ARM-version?
     
  58. anotherone

    anotherone Connected Client Member

    hello i am trying to install adblock hxxp://www.linksysinfo.org/index.php?threads/script-clean-lean-and-mean-adblocking.68464/
    i want to make a silly question, how can i install pixelserv in jfss on a linksys E900 and what version do i choose?
    Can you please explain i have to take the latest zip of pixelserv and transfer somehow to my router or i have to take the entire chunk
    #!/bin/sh
    ## install pixelserv v31
    ## encoded: cat pixelserv | gzip -c | openssl enc -e -base64

    PREFIX="/cifs1/adblock/" ## adjust this!

    [ -d "$PREFIX" ] || mkdir -p "$PREFIX"
    echo "
    H4sIAJMi3FECA9VafWxbVZY/fnFcN23oa5q2oU2b59Stk5K6SZsyIXQGN0k/wqRp
    Jg0MiILj2C+OwbGN/dKP2RGYbmcommwdZjqoiI422w8oUlUHCIXVFiZCCDErVmKX
    0YpdWCkrGA1/MFKRkKYzy+L9nfuuk9eXlLKzf63bm3vP5z333HPvu+++8/jOrl0O
    h4OKP4XcxND0ogA1o75vI9EClXqaSSMX1dEKWo6aBK2ZAqJMoc2lFMWJUoJS6eAS
    MAvDkuaQxfwFRJmuIVFKBc5h0jUuO0SZXIh2GYl+ma7gb52DS0CUabYXZYHs4we/
    MyI0z69Iv9lvczw2sDke2TTSjkbYn0n6G4VNbztM2/+AP4tRH4CPynns1QGh160E
    xBji7oCwtcEZYLNpNwxehFpFWUGUulC3A140f+yrCcBQmXKYPkzx+CCfYt9APsV2
    L0XdgboCdRXqZahZ59eFQnI77CigZvmrqCfLAvS//bWjdMh2uQXPtmxif6N4UG4z
    +6ZbJP12FMwS1VtkeExrZfs7KH7ZbmAfkemLJgv/Qksb46Rt5nQLX26QeI6f9bKN
    kKQlKOskrNrGwv65FWX5PONcZWnDl2IeMSe0UuJWyxipnke2eR6cZoNrZZx9D2XL
    N/i7xZxjakNZY8HXyPpOlO0ciyhelO+itKL45tHFs73VMo/8a0S54xv6L67Bu+gv
    /1UiOCp5jYo5WEr/4pjVu4y+KKwGffxCkf5FoVwx9xUTXkifgJnXgjnvFbQB9Mn6
    Wf4aG/xHh7lWTP4vCi0cnBtn6Vts/C+iHq8OzMz1ZsiPWeBO2zxeAf1TyDuF/uXE
    2+KBlQHqU5h/If0N8FmLfB4lZYGPoPRb4Nsh32OBDZ4rC/wGz5MFXiD3kmoBL6IN
    kNcs9N2Apy32/RywaqEPc8MCX+D9YPUszHEeKIf+MnM8U5D/zKLvMu+jFv7HUN63
    wGKvs8BneO+ywNXQN26B+9jfFvgP7D8LHOdNzwJnAPdb4AdReiywzvZb4PvB32iB
    /4Pn0QJ/xnFggS+A/yvLeFfb1u1vxAZgGT/4r66ahfey/y2wQz4DzPly05fsLwv9
    OTBMWeCfcvxa4H72lwX+V5QxCzwB+pcWe0+y/yz019k+C32rbTzHOD4t/P/EfVpg
    lePTAkcBB6z2cnxa4EnQP7f0N87xaaFfBHzNQn+O+7DQKRhLxAwKDqKiYNB8vAaH
    Q7EEoIie1qOxjKGng4Pp0LAO3sEk8PNi7z4Y7JX49ngok9EzlDHSiXDqCCVTeiKe
    jFLmSEZURsgg/TC6HWQKZRKpdCxhDDJ/HPBwKB5Phhli4cG0HorQYDiezOgUCenD
    SXDowxndoKhuhCKRtOg/GooFIaGn08k0ZZLhR0AHD7eSKYMGYokIxdm6BGvUZ+Qy
    sWgiFA8OhRKRuJ5mUB9OGUdYPdqhsBFDf+godSgRGmaNI7EIXIB+EskgzAwJhnBy
    JGFQKBzWUzyq9CNSLwTietigtB4+yAMyko+IcYUyeng4xc10eChtOqqIGxoxIslD
    cIsOkw+FYkYKPWYODVIqEaWHU1EyDmM88Ek0NkiwA8MaiIbDwQyfipoo2HF/9469
    ne3Brs7u73d274axvV0dwb07emj26BTc3bWvbUdXcN+uXft39gX7drR17QwiCgz9
    MAdDJGSEKBhNUVA3m8GBTAbuDaWZijYIMG53V2dbe3CLv5H+3/wUqt7e8avTPs/0
    syXThTd8Kl3JV9Ov81WoHbTUWeTRBM/fllRnn829u/gOX5ekgT9n5bt2epZv4tY7
    fD8umeWD3pybpks0euO6I4IHOKuOSanDcw17Q/ZYjuh8zknP+64VHF7vZ38n7Hw7
    +2TuvuzxnEoX8pV0Bva+kc+iz4XXND7a4aw5e+Rinf2nZ8dojm8iz2Otyh7NTdW3
    jbkooFZlx3LL+HEFO1lPpVZyie2u1JQT2MlH/1zQVjqp3TsJmVLwT6K/atjHvB/X
    HPMyL+tzUIl3qr59nPWgn5kxsx0fPjdrRxXsYBs+g8wC6GNdVdmf5D6DXtbHet+u
    Py/1Hsup2tFRtrMZdCdpyyAP3DGvmzShv+oG/hXjl/22/Am+c/06P+V6M3/F9Vr+
    ddfl/KTr1fyEazJ/0fVK/oL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83g4d4fzdThHh/NyOBeH828454bzbDi3hvNpRA4NCufKcH4M58RwHgznvnC+C+e4
    cF4L57Jw/grnrHCeCuemcD4K56Bw3gnnmnwl8484j4RzRzhfhHNEOC+Ec0E4/4Nz
    PjjPg3M7OJ/jqpThXA3Oz+CcDM7D4NwLzrfgHAvOqyjmUuBAOsTf90MD5MeDVE/j
    iBo5gteNWJj8QziACTBzZNisjTSz4THtF1/c/Xs7e/b7M8bIQIb8IhXDn06KL+9+
    fcjMsiB/2EimQY6Y1cNhqDBZ0vFIcDiEDqNJqMqYSP5I7x+O6AMjUX9oILZ1y7f/
    Rr5ILiaFivmiZq6fPU9tmcyXM3M/AyL/c5qKOaNmzp5b5u2VSj7Ox3SjwZd3Tguf
    U+bHLJJ8nKfZAGTAaco6JI8qcw1LJB/ndcbdZj6n3b4tsu2SOUEHoPywZRxOS95f
    kY9z4abB13iL5f5F1t+z8PG8q6uIJpS5+u628E2JuCbqmaffHouf1TXQh+fBe8rc
    fu+z8H1cE0C5Pme22B6QfOKSSeTpmv6388UsfG7wuW/Al7LwqeBTtfn7HbHwce5h
    JfhOuufy/ZWFj3MML9TNr+/YLJ/KuYUTddclKAu/MO9TVj6sxYn6+fWNyTjkfqfA
    N1l//S5V9PMvLd1wLE7Wz5+fOeNj+WO+s/Pw/Q/FHNueyC0AAA==
    " | openssl enc -d -base64 | gunzip -c > "$PREFIX/pixelserv" && echo success
    chmod +x "$PREFIX/pixelserv"
    and execute or both for first time?
     
    Last edited: Aug 4, 2015
  59. mstombs

    mstombs Network Guru Member

    I recommend you enable ssh on the router and use winscp to copy the appropriate binary file and make it executable. If you are worried about space the special small one should work on that mips router

    pixelserv compiled to run on router WRT54G
     
  60. anotherone

    anotherone Connected Client Member

    When you say "the special small one" you mean the tomato firmware or the pixelserv you show to your post or i have to install a small version of tomato for better results?
    The E900 is a 32 / 8 flash router and in the jffs the available memory after format is "Total / Free Size 1,344.00 KB / 1,148.00 KB " you think is enough ?

    so i enable and format jffs
    i connect with telnet or ssh
    and i make a directory with mkdir /jffs/adblock/ is that correct?
    After i have to make another directory for pixelserv and copy files from the pixelserv-V35.HZ11FIX2.mips-dynamic is that correct too?
    And the silly question were i have to create and what files from the zip you suggest me?
     
    Last edited: Aug 4, 2015
  61. HunterZ

    HunterZ Network Guru Member

    Pixelserv is just the binary, and it can go anywhere you want. You can put it in the same directory as adblock if you want.

    You should use my zip of pixelserv from mstombs' link if you can, as the one at the start of the thread is ancient and has some major bugs that I have fixed in my version. You can unzip it on your PC and just push the binary over using whatever method you want. You will probably then have to chmod +x it via SSH on the router to make it executable.

    Your jffs is probably going to be way too small for adblock.
     
  62. anotherone

    anotherone Connected Client Member

    thank you very much


    i download the zip file from the post 705
    i unzip it
    and from the dist folder i send with winspc only the pixelserv file anywhere like the adblock folder or a new one.
    after i chmod
     
  63. HunterZ

    HunterZ Network Guru Member

  64. mstombs

    mstombs Network Guru Member

    I used to use an earlier adblock script with only jffs, the pgl.yoyo domain list is under 100kB. I would not recommend using /jffs for auto updates, manual updates only!
     
  65. anotherone

    anotherone Connected Client Member

    i will try this guide for adblock "Script: Clean, Lean and Mean Adblocking www.linksysinfo.org/index.php?threads/script-clean-lean-and-mean-adblocking.68464/ " is that ok?
    how i disable auto updates and how i do manual updates?


    EDIT: i made all the steps (i think) from the guide hxxp://www.linksysinfo.org/index.php?threads/script-clean-lean-and-mean-adblocking.68464/page-15#post-264709
    but now when i go to tools and i am trying to execute /root/jffs/adblock/adblock.sh or /jffs/adblock/adblock.sh i get erros like this
    /tmp/.wxoFkQP6: line 5: /root/jffs/adblock/adblock.sh: not found
     
    Last edited: Aug 5, 2015
  66. HunterZ

    HunterZ Network Guru Member

  67. anotherone

    anotherone Connected Client Member

    thank you maybe i am stupid but i can not find the instructions, only change log ets.

    Until now what is my problem, why i get error message?
     
  68. HunterZ

    HunterZ Network Guru Member

    It's probably best to ask for adblock help in the adblock thread. There will be many people there who are willing to help.
     
  69. anotherone

    anotherone Connected Client Member

    with the small one it is not working.
    i do not understand what is happening, in my asus rt16 is working and in linksys e900 is not working
    with many versions i tried with no lack


    pixelserv-V35.HZ11FIX2.mips-dynamic

    pixelserv-V35.HZ12WIP1.mips

    pixelserv-V35.HZ10.mips.fullstatic

    pixelserv-V35.HZ10.mips
    pixelserv.static
    pixelserv
    pixelserv.fast

    pixelserv small.jpg




    EDIT now with the big version i push "force" and after the update it is working.
    But after i restarted the router i can not access the web interface of the router.
    i have to to delete with winspc and restart to have access again to the web interface of the router
     
    Last edited: Aug 12, 2015
  70. HunterZ

    HunterZ Network Guru Member

    Your Linksys may be an ARM router, in which case you need an ARM build. Some have been posted recently to this thread.
     
  71. anotherone

    anotherone Connected Client Member

  72. HunterZ

    HunterZ Network Guru Member

    What happens if you SSH into the router and run pixelserv from the command line?
     
  73. anotherone

    anotherone Connected Client Member

    stupid question : what is the cammand?
     
  74. HunterZ

    HunterZ Network Guru Member

    Once you're ssh'd into the router (PuTTY is a good SSH client if you're on a Windows box), use the 'cd' command to get to the path where you installed pixelserv, then to test just run:

    ./pixelserv preferred.ip.addr.ess

    Where preferred.ip.addr.ess is the IP address that you want pixelserv to listen on (often 192.168.1.254 if your router's default IP is 192.168.1.1).

    Another thing to check is that you have the execute permission set on the pixelserv binary. When you're in the directory where you installed pixelserv, run this command:

    chmod a+x ./pixelserv

    Edit: Oops, I guess I removed -f support and was looking at old code.
     
    Last edited: Aug 13, 2015
  75. anotherone

    anotherone Connected Client Member

    i get this without -f
    pixelserv[2235]: ./pixelserv version: V35.HZ10 compiled: Sep 21 2014 23:46:45

    and this with -f
    Usage:./pixelserv [IP No/hostname (all)] [-n i/f (all)] [-o select_timeout (10 seconds)] [-p port (80) & (443)] [-r (deprecated - ignored)] [-R (disables redirect to encoded path in tracker links)] [-s /relative_stats_html_URL (/servstats) [-t /relative_stats_txt_URL (/servstats.txt) [-u user ("nobody")]

    but again i do not have access to the web interface even after reboot.
    pixelserv is already 755 but i runed again the command chmod a+x ./pixelserv
     
  76. AndreDVJ

    AndreDVJ LI Guru Member

    Please post the output of the following command:
    Code:
    ls -l /www/user/
     
  77. HunterZ

    HunterZ Network Guru Member

  78. anotherone

    anotherone Connected Client Member

    lrwxrwxrwx 1 root root 24 Jan 1 1970 adblock.sh -> /jffs/adblock/adblock.sh
    -rw-r--r-- 1 root root 21 Jan 1 1970 adblock.sh.weblink
    drwxr-xr-x 2 root root 40 Jan 1 1970 cgi-bin
     
  79. anotherone

    anotherone Connected Client Member

    i drop in the folder the new pixelserv i chmod 755 and i restarted the router .
    after i had ping to outside world i had web interface of the router but i couldnt open even google.com
    i run from the tools /jffs/adblock/adblock.sh and now i have internet normaly.


    ADBLOCK[22251]: Running as /jffs/adblock/adblock.sh
    ADBLOCK[22251]: Using config file /jffs/adblock/config
    ADBLOCK[22251]: Requested list mode is OPTIMIZE
    ADBLOCK[22251]: Creating web link /www/user/adblock.sh
    ADBLOCK[22251]: Existing blocklist is not for IP 10.97.0.254 - removing
    ADBLOCK[22251]: Download starting
    ADBLOCK[22251]: Unchanged: http://www.malwaredomainlist.com/hostslist/hosts.txt (Last-Modified: Mon, 27 Jul 2015 20:51:58 GMT)
    ADBLOCK[22251]: Unchanged: http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext (Last-Modified: Thu, 06 Aug 2015 00:22:10 GMT)
    ADBLOCK[22251]: Unchanged: http://winhelp2002.mvps.org/hosts.txt (Last-Modified: Wed, 05 Aug 2015 20:14:58 GMT)
    ADBLOCK[22251]: Filters unchanged
    ADBLOCK[22251]: Blocklist does not exist
    ADBLOCK[22251]: Generating /jffs/adblock/blocklist - OPTIMIZE mode
    ADBLOCK[22251]: Blocklist generated - 32 seconds
    ADBLOCK[22251]: 11639 unique hosts to block
    ADBLOCK[22251]: Setting up 10.97.0.254 on br0:adblk
    ADBLOCK[22251]: Setting up pixelserv on 10.97.0.254
    ADBLOCK[22251]: pixelserv[22609]: /jffs/adblock/pixelserv version: V35.HZ12WIP1 compiled: Dec 6 2014 10:18:14 options: 10.97.0.254
    ADBLOCK[22251]: Writing File /etc/dnsmasq.custom
    ADBLOCK[22251]: CONF file /etc/dnsmasq.custom unchanged
    ADBLOCK[22251]: Restarting dnsmasq
    ADBLOCK[22251]: .
    ADBLOCK[22251]: Done.
    ADBLOCK[22251]: Exiting /jffs/adblock/adblock.sh 0

    i too have http://10.97.0.1/user/adblock.sh and there the pixelserv is working
    After i restarted BUT i lost again access to router and adblock web interface.


    i found the problem
    in Administrator-scripts i had in innit

    the /jffs/adblock/adblock.sh command
    but now i have to give the command every time i restart the router?
     
  80. AndreDVJ

    AndreDVJ LI Guru Member

    I would recommend starting adblock from a wanup script, and you need to code additional controls to ensure adblock runs only once. Adblock restarts itself if WAN goes down, so you need to prevent unneeded restarts.
     
  81. HunterZ

    HunterZ Network Guru Member

    What does "adblock restarts itself" mean? It's not a persistent application - it just configures dnsmasq, iptables, and pixelserv.
     
  82. anotherone

    anotherone Connected Client Member

    can you explain how to do that?
    The unneeded restarts you say are problem?

    And something else, in adblock web interface i see "logging not enabled - enable in dnsmasq for updated reports."
    How i enable this?
     
  83. AndreDVJ

    AndreDVJ LI Guru Member

    Actually is the autorun link etc/config/99.adblock.fire. I don't understand it very well to be honest, but in some script I run I placed a check remove that file because I was flooding syslog with adblock messages whenever WAN gone down here.
     
  84. HunterZ

    HunterZ Network Guru Member

    You will probably want to ask these questions in the adblock thread.

    There is a scripts page in your router's web GUI, and one of them has a WAN Up section that lets you define a script that will be run when the WAN comes up. You will want to call adblock.sh from that.
     
  85. anotherone

    anotherone Connected Client Member

    ok thank you both
     
  86. anotherone

    anotherone Connected Client Member

    with this script in init is working even after reboot
    http://www.linksysinfo.org/index.ph...and-mean-adblocking.68464/page-16#post-265134
    About the pixelserv version what version sould i choose from the small ones?
     
  87. HunterZ

    HunterZ Network Guru Member

    It's preferable to use the static versions of HZ11FIX2 or newer, because they have newer libraries linked in than the ones included in most router firmware.

    If that is too big for your needs, then a dynamic mips build of HZ11FIX2 or newer could be used.
     
  88. mstombs

    mstombs Network Guru Member

    You shouldn't have big scripts in the firewall script, it gets run multiple times sometimes very close together during wan startup - so if you do want something in there you must make the code self-protecting/ reentrant!
     
  89. jerrm

    jerrm Network Guru Member

    The adblock .fire link is safe.

    When called via the firewall link all adblock does is read the config, insert the appropriate firewall rules restart pixelserv if needed, and exit. It does not update or do any of the list maintenance/dnsmasq activities. Total run time on my RTN66U is about 1 second.

    The wan restart (and other) back to back calls to the firewall service are not a problem.

    It does generate about 9 lines to syslog as the config is read. Generally not a problem, but I guess it could be an issue if the firewall code is continuously called if the wan is down. I might look at a quiet option, but it's not something that concerns me.
     
  90. jerrm

    jerrm Network Guru Member

    Statically compiled MIPS and ARM versions of @HunterZ's pixelserv v.35.HZ12WIP1 are available at http://tomato-adblock.weebly.com.

    The only real advantage over other sources is these are available via plain text http urls compatible with busybox wget.

    The MIPS version is the same zip file @HunterZ last posted in this thread. I compiled the ARM version from @HunterZ's unaltered GitHub repo source and build scripts under @lancethepants ARM Tomatoware 1.03 environment.
     
    Last edited: Sep 12, 2015
  91. celluloid

    celluloid Networkin' Nut Member

    I'm currently trying to get pixelserv working on a wrt54gl running shibby 1.28.0005 124 ND VPN. The error 'Illegal Instruction' happens everytime I run pixelserv.

    Any suggestions?
     
  92. HunterZ

    HunterZ Network Guru Member

    Someone with a K24 toolchain would probably have to make a build for you. They will probably want to use the latest Github source to do it, because HZ12FIX1 has a fix that may be needed for K24 compatibility.
     
  93. celluloid

    celluloid Networkin' Nut Member

    I was under the impression that the wrt54gl was supported as the thread title deals specifically with the wrt54g. Is this not the case anymore?
     
  94. jerrm

    jerrm Network Guru Member

    I assume it's also a MIPSr1 CPU? Do we know if tomatoware is generating r1 or r2 code by default? I would assume r1, maybe @lancethepants can confirm?

    Just for curiosity, try the attached version. It is @HunterZ's executable with upx compression removed. Doubt it will help, but worth a shot.

    EDIT: Attachment removed since it didn't work.
     
    Last edited: Sep 12, 2015
  95. jerrm

    jerrm Network Guru Member

    The title is six years old. It's more a generic pixelserv thread now, MIPS and ARM.
     
  96. HunterZ

    HunterZ Network Guru Member

    It may also be worth trying both statically and dynamically linked versions (I think both are floating around).
     
  97. celluloid

    celluloid Networkin' Nut Member

    I still get the illegal instruction error.
     
  98. lancethepants

    lancethepants Network Guru Member

    Tomatoware's mipsel toolchain, the same as Entware's, was made for 2.6 kernels. It may produce binaries that will not work on MIPSR1 routers running a 2.4 kernel. In those instances you should compile using the k24 toolchain used to compile those firmwares. That is what I've done when I've had that issue.
     
  99. celluloid

    celluloid Networkin' Nut Member

    The static gives the error 'Illegal instruction' and the dynamic gives the error 'Bus error'
     
  100. jerrm

    jerrm Network Guru Member

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice