Comments (16)
A little patch (maybe it even works on MIPS, idk)
https://github.com/ICQFan4ever/MTProxyARMPatch
Compiled on ARMv7 successfully
from mtproxy.
A little patch (maybe it even works on MIPS, idk)
https://github.com/ICQFan4ever/MTProxyARMPatch
Not working (any more?) on ARM:
`common/crc32c.c: In function ‘crc32c_partial_sse42_clmul’:
common/crc32c.c:406:14: warning: implicit declaration of function ‘__builtin_ia32_pclmulqdq128’ [-Wimplicit-function-declaration]
v2di F = __builtin_ia32_pclmulqdq128 (D, K, 0x00) ^ __builtin_ia32_pclmulqd
common/crc32c.c:406:14: error: incompatible types when initializing type ‘v2di {aka __vector(2) long long int}’ using type ‘int’
common/crc32c.c:471:14: error: incompatible types when initializing type ‘v2di {aka __vector(2) long long int}’ using type ‘int’
v2di F = __builtin_ia32_pclmulqdq128 (D, K, 0x00) ^ __builtin_ia32_pclmulqd`
from mtproxy.
It's not compatible with arm at all -- there are some hacks and/or inline assembly
from mtproxy.
Any plans on porting it?
from mtproxy.
If you are going to port sourcecode for arm, please do not use arm-specific instructions as you would like to have crosscode for mips/mipscel too.
Plz...
from mtproxy.
It seems that ARMv7 does not have CRC32x assembler directives (possible SSE4 extensions). I have tried to compile using following flags:
+CFLAGS = $(ARCH) -O3 -std=gnu11 -Wall -mtune=cortex-a9 -march=armv7-a -mfpu=vfp -mfloat-abi=softfp -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
but without success:
/opt/tmp/ccB39ZkK.s:34: Error: selected processor does not support `crc32b (r3),r2' in ARM mode
/opt/tmp/ccB39ZkK.s:52: Error: bad instruction `crc32l (ip),r2'
/opt/tmp/ccB39ZkK.s:73: Error: selected processor does not support `crc32b (r3),r0' in ARM mode
/opt/tmp/ccB39ZkK.s:83: Error: selected processor does not support `crc32b (r2),r0' in ARM mode
/opt/tmp/ccB39ZkK.s:93: Error: selected processor does not support `crc32b (r3),r0' in ARM mode
make: *** [Makefile:89: objs/common/crc32c.o] Error 1
So, the only way is to implement them (CRC32 instuctions) on C by modification of crc32c.c
.
from mtproxy.
@ICQFan4ever thank you! Just checked - and it works on my Raspberry Pi 3+
from mtproxy.
A little patch (maybe it even works on MIPS, idk)
https://github.com/ICQFan4ever/MTProxyARMPatchCompiled on ARMv7 successfully
Thank you! Compiled successfully on
lscpu
Architecture: armv7l
Byte Order: Little Endian
Model name: ARMv7 Processor rev 2 (v7l)
./mtproto-proxy --help
[25630][2019-02-20 17:38:47.421699 local] Invoking engine mtproxy-0.01 compiled at Feb 20 2019 17:34:49 by gcc 5.4.0 20160609 32-bit after commit 2c94211
usage: ./mtproto-proxy [-v] [-6] [-p] [-H{,}] [-M] [-u] [-b] [-c] [-l] [-W]
mtproxy-0.01 compiled at Feb 20 2019 17:34:49 by gcc 5.4.0 20160609 32-bit after commit 2c94211
from mtproxy.
Almost a year has passed. : ((
from mtproxy.
A little patch (maybe it even works on MIPS, idk)
https://github.com/ICQFan4ever/MTProxyARMPatchCompiled on ARMv7 successfully
Thank you! It compiles successfully on my Raspberry pi 4b :D
from mtproxy.
A little patch (maybe it even works on MIPS, idk)
https://github.com/ICQFan4ever/MTProxyARMPatchCompiled on ARMv7 successfully
Can add that the patch works on Raspberry Pi 3 in 2020
from mtproxy.
Compiled failed on ARMv8 on Raspberry Pi 4
from mtproxy.
from mtproxy.
I tried to compile for arm ampere for Oracle, it did not work. lscpu listing is on the screenshot
from mtproxy.
A little patch (maybe it even works on MIPS, idk) https://github.com/ICQFan4ever/MTProxyARMPatch
Compiled on ARMv7 successfully
Thanks a lot it worked for Orange PI PC. I think it at least works at most of the armhf platforms .
from mtproxy.
The patch output was:
$ patch -p1 < arm.patch
patching file Makefile
Hunk #2 FAILED at 13.
1 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
patching file common/cpuid.c
patching file common/crc32.c
patching file common/crc32c.c
patching file common/precise-time.h
patching file common/server-functions.h
and then the make
command execution didn't work :(
from mtproxy.
Related Issues (20)
- امیر
- MTProto协议会被“防火长城”检测到/MTProto protocol is now detected by the Great Firewall.
- Changing the sponsor channel of several servers HOT 1
- How to send proxy to @ProxyMTProto channel HOT 1
- MTProxy Admin Bot申请不了代理tag,有人懂怎么回事嘛? HOT 2
- @MTproxybot
- Bk
- Proxy sponsor registration error
- Placing a proxy inside the channel for seen
- Head trick
- G
- couldn't get stats HOT 1
- https://github.com/TelegramMessenger/MTProxy/blame/dc0c7f3de40530053189c572936ae4fd1567269b/common/common-stats.h#L4
- ⭐🤑سیگنال طلا ترید روزانه فارکس 🤑⭐
- 𝕳
- J
- Compile failure on Ubuntu 24.04 HOT 1
- Telegram
- Problem with service
- Compilation Failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtproxy.