-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support ARMv7? #216
Comments
I tried to compile on a raspberry pi 3 B and got an error, could be nice have xmrig running on my RPi3 but i have no idea if it is possible.
|
@semeion you not switch to the arm branch. Look "-maes" gcc flags? You try to compile x86 sources. Try git fetch origin arm ; git checkout arm on xmrig directory. |
@semeion but another problem is xmrig not support armv7, you can find this info in roadmap(only aarch64 aka armv8) |
I got idea where I can get some ARMv7 hardware, I will check it tomorrow, hopefully only cmake changes required, until CPU supports NEON extensions. |
@xmrig, nice, thanks! You may buy random china android phone, and set up debian chroot on this :-) if you can not find armv7 hardware - i have many of them, and may to get you ssh to one of this "machine". But my phone is bit a slow and have bad internet connection. |
@xmrig Yep, AES only on ARMv8. :( /proc/cpuinfo from one my phone: processor : 1 processor : 2 processor : 3 Hardware : sc8830 |
I make many dumb editing in code, only CryptoNight.cpp not compile :(
|
I added ARMv7 support. It slow, need emulate 64 bit multiplication (same as 32bit x86) and AES as well. |
@xmrig big-big thanks! Ha-ha. I try it today :-) |
nice, everything works. :) thanks again |
xmrig#216 Added ARMv7 support.
Does anybody have compiled armv7 version? Trying to make on OrangePi (rasp-like) - only errors. Thanks |
@demian2g yes i did. it is working fine. I am using Raspberry pi 3B with ArchLinux ARM 32bits, to compile i used: CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt" CXXFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt" cmake .. -DWITH_HTTPD=OFF && make VERBOSE=1 |
@semeion thanks, but still MHD_LIBRARY (ADVANCED) error. I'm using OrangePi Plus 2 with Ubuntu Vivid and not sure that have correctly installed all compilers and libraries. Just wanted to see how much h/s can it generate |
I have no idea how to help you. I never used Ubuntu and/or OrangePi. |
@demian2g just delete all the files in directory and rerun the compilation again. hashrate on rpi3 is 6h/s max :))) |
My hashrate on a RPi3 is ~7.4 (running Fedora aarch64). |
@jgillich Can it use something like -x64 -AES-NI extensions in aarch64 mode? |
I don't think so, I have to use |
I have build successful on armv7l ,application could get job,but the rate is n/a H/s,I try to change config,like av : 4;algo : cyptonight-lite; But the rate is still n/a H/s,So, I need your help,@xmring |
oh~ps: when I change av to 2,the application return a err:"cryptonight-lite" hash self-test failed. |
@semeion Hi, buddy. I met same problem when i complied xmrig used in RPI-3B-centos. can u tell me how to use "cmake .. && make". Thanks. |
I’m able to get 9.3h/s on raspbian/cpuminer-multi with my pi 3. Heard aarch64 and xmrig was supposed to be faster but from the above comments that doesn’t seem to be the case. Anyone else achieve better? (Different compiliarion flags etc...) |
@rainmo what the problem? Paste some logs |
@jgrabenstein off course aarch64 with huge pages faster. I have phone wileyfox spark, cpuminer-multi = 9-10h/s, xmrig = 15-20 h/s |
@gennadicho thanks for confirming. Above comments made me apprehensive to try. Have 2 more boards coming tomorrow will give aarch64/xmrig a shot. |
The instructions for building on Ubuntu work for my build, but I'd like to try tuning for my architecture by setting different values for CFLAGS and CXXFLAGS... Is this possible? |
https://github.com/xmrig/xmrig/blob/master/cmake/flags.cmake#L17 for gcc, separated for v8/v7 |
I guess i should have mentioned that I'm new to linux and cmake... So, I see the various flags from the *.cmake files above, but I'm not clear on how they are applied at build-time. Where in the build process can I see which flags are applied and also set my own? Also, thanks for the quick reply! I love the project! |
You need change |
Can I download build releases somewhere? |
I clone the source code from GitHub and compile and make it on a raspberry pi 4B with a pi os and it shows the below errors,I can not solve it . collect2: error: ld returned 1 exit status |
Hi. Will there be support armv7? old phones, cubieboards, and other things.
The text was updated successfully, but these errors were encountered: