thuantran / dnscrypt-asuswrt-installer

dnscrypt installer for Asus router with merlin firmware
GNU General Public License v3.0
111 stars 15 forks source link

dnscrypt-proxy 2 not support AC-66U #67

Closed zw963 closed 4 years ago

zw963 commented 5 years ago

I download from dnscrypt-proxy 2 release download page. but two version all not working.

dnscrypt-proxy-linux_mips

admin@RT-AC66U-F2F0:/tmp/home/root# ./dnscrypt-proxy ./dnscrypt-proxy: line 1: syntax error: unexpected "("

dnscrypt-proxy-linux_mipsle

admin@RT-AC66U-F2F0:/tmp/home/root# ./dnscrypt-proxy fatal error: runtime: out of memory

Following is my asus info:

admin@RT-AC66U-F2F0:/tmp/home/root# uname -a
Linux RT-AC66U-F2F0 2.6.22.19 #1 Sun Apr 8 14:05:29 EDT 2018 mips ASUSWRT-Merlin

admin@RT-AC66U-F2F0:/tmp/home/root# cat /proc/cpuinfo 
system type             : Broadcom BCM5300 chip rev 1
processor               : 0
cpu model               : MIPS 74K V4.9
BogoMIPS                : 299.82
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : no
hardware watchpoint     : yes
ASEs implemented        : mips16 dsp
shadow register sets    : 1
VCED exceptions         : not available
VCEI exceptions         : not available

unaligned_instructions  : 12485664
dcache hits             : 2147483648
dcache misses           : 0
icache hits             : 2147483648
icache misses           : 0
instructions            : 2147483648

admin@RT-AC66U-F2F0:/tmp/home/root# cat /proc/meminfo 
MemTotal:       239524 kB
MemFree:         78196 kB
Buffers:          7604 kB
Cached:         115352 kB
SwapCached:          0 kB
Active:          94416 kB
Inactive:        41392 kB
HighTotal:      131072 kB
HighFree:         7388 kB
LowTotal:       108452 kB
LowFree:         70808 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:       12860 kB
Mapped:           6832 kB
Slab:            16468 kB
SReclaimable:     2068 kB
SUnreclaim:      14400 kB
PageTables:        616 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:    119760 kB
Committed_AS:   105552 kB
VmallocTotal:  1015800 kB
VmallocUsed:      6428 kB
VmallocChunk:  1006964 kB
francoism90 commented 5 years ago

It shouldn't be needed to run that file, what exactly isn't working? Or did you solved it already? :)

zw963 commented 5 years ago

It shouldn't be needed to run that file, what exactly isn't working? Or did you solved it already? :)

Old router (AC66U) is MIPS, not ARM, opkg no dnscrypt-proxy2 package.

francoism90 commented 5 years ago

@zw963 README.md - Support ARM and MIPSEL based routers

How did you installed this package? Did you follow the README?

zw963 commented 5 years ago

How did you installed this package?

opkg package no dnscrypt-proxy2 package.

Did you follow the README?

Did you follow the README?

Current script mips detect is comment, see following code.

case $(uname -m) in
  armv7l)
    URL_ARCH=$URL_ARCH/armv7
    DNSCRYPT_ARCH=linux_arm
    DNSCRYPT_ARCH_TAR=linux-arm
    echo -e "$INFO Detected ARMv7 architecture."
    ;;
  aarch64)
    URL_ARCH=$URL_ARCH/armv8
    DNSCRYPT_ARCH=linux_arm64
    DNSCRYPT_ARCH_TAR=linux-arm64
    echo -e "$INFO Detected ARMv8 architecture."
    ;;
  # mips)
    # URL_ARCH=$URL_ARCH/mips
    # DNSCRYPT_ARCH=linux_mipsle
    # DNSCRYPT_ARCH_TAR=linux-mipsle
    # echo -e "$INFO Detected MIPSEL architecture."
    # echo -e "$WARNING FOR TESTING ONLY, MIGHT NOT WORK AT ALL"
    # echo -e "$WARNING USE AT YOUR OWN RISK"
    # ;;
  *)
    echo "This is unsupported platform, sorry."
    exit 1
    ;;
esac