fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.79k forks source link

ARM support #830

Closed sam0x17 closed 6 years ago

sam0x17 commented 6 years ago

Would love to be able to compile this on the raspberry pi 3, XU4, C1 etc. Right now I get:

root@scw-795284:~/xmr-stak/build# make -j4
[  8%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o
[  8%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-maes’
cc: error: unrecognized command line option ‘-maes’
CMakeFiles/xmr-stak-c.dir/build.make:62: recipe for target 'CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o' failed
make[2]: *** [CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/xmr-stak-c.dir/build.make:110: recipe for target 'CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o' failed
make[2]: *** [CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o] Error 1
[ 16%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o
[ 16%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-maes’
CMakeFiles/xmr-stak-c.dir/build.make:134: recipe for target 'CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o' failed
make[2]: *** [CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o] Error 1
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-maes’
CMakeFiles/xmr-stak-c.dir/build.make:86: recipe for target 'CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o' failed
make[2]: *** [CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-c.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-c.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Note that the Monero project itself dealt with this same issue some time ago here: https://github.com/monero-project/monero/issues/954

fireice-uk commented 6 years ago

CPU code uses SSE2 - 4.1 so it is a large change that really isn't a priority. Code in Monero core will work though - I think someone extracted it and put on jgarzik's base.

totallyG82 commented 6 years ago

@sam0x17 The CPU in Raspberry Pi 3 only have 256KB cache. CryptoNight needs blocks of 2MB of fast memory. CN-light needs 1MB. Perhaps we will see a CryptoNight "nano" using 256KB blocksize THEN it would make sense to run on RPi3, right now it does'nt.

juanpc2018 commented 5 years ago

There are 2 Android ARM miners... One works the other ask missing file ./xmrig AAMiner and XMR Monero Miner I have a LG K11+ Has a total 512kb L2 http://phonedb.net/index.php?m=processor&id=664&c=mediatek_mt6750&d=detailed_specs But the LG G7 Fit has 1.5MB L2 "almost works 1-full core." http://phonedb.net/index.php?m=processor&id=613&c=qualcomm_snapdragon_820_msm8996&d=detailed_specs LG v40 has 2MB L3 +1.5MB L2 http://phonedb.net/index.php?m=processor&id=743&c=qualcomm_snapdragon_845_sdm845__napali

LG v50 & the G8 has 1.5MB L2 + 3MB L3 "almost 2-full cores." http://phonedb.net/index.php?m=processor&id=765&c=qualcomm_snapdragon_855_sm8150__hana&d=detailed_specs

https://www.gsmarena.com/lg-phones-20.php https://github.com/setuidroot/xmrigtest

LG has the best Android version of the Operating System... Little details like KnockOff and QuickNotes+ is way better than Microsoft OneNote, etc... The only problem is that the LG OSX drivers only go up to OSX El Capitan.. 10.11 but i have another OSX Maveriks on a USB drive, dual boot is easy... Installing android file transfer software, works flawless if the USB cable has data + charge cables "4-wire" inside.