enerc / VulkanXMRMiner

Vulkan SPIR-V miner for Cryptonight
GNU General Public License v3.0
32 stars 17 forks source link

Not working on Raspi 4B with 4GB and Rasbian OS 64Bit #24

Open Raspimann opened 4 years ago

Raspimann commented 4 years ago

Hello,

i installed a fresh raspian 64-Bit (Beta) with all updates/upgrades. then i install the vulkan driver and the dev kit. it works good. under the desktop the triangle works.

i compile the source code on raspi. i startet and this message is showing:

Vulkan SPIR-V XMR Miner 0.4.1

Connecting to XXXXXXXXXXXXXXXXXXXXXXXXXXX:pppppp ... done! Fail to get my id Using XMR Variant: cn/r Mining started.... (Press q to stop) [Time] 'Total H/s' 'Good shares'/'Invalid shares'/'Expired shares' [GPU] H/s 'good hashes'/'bad hashes' [11:42:21] 0.0H/s 0/0/0 <---- green ...

The hashrate is 0.0 and my pool website says no connect.

Where is the error?

Thx

Raspimann commented 4 years ago

this is my config.json:

{ "crypto" : "monero", "pool_address" : "xxxxxxxxxxx:ppppp", "wallet_address" : "email@address", "pool_password" : "x", "debug_network" : "false", "console_listen_port" : "3333", "console_refresh_rate" : "30", "cards" : [ ] }

this is my file in icd.d { "ICD": { "api_version": "1.1.102", "library_path": "/usr/lib/aarch64-linux-gnu/libvulkan_broadcom.so" }, "file_format_version": "1.0.0" }

enerc commented 4 years ago

Please turn on network debugging: "debug_network" : "true". The error reported by the pool should be displayed

BTW, vulkan is not used on RPI (the GPU is far too slow). You shoud get about 2 M Hash/s per core (where FPGAs does many Giga hash /s).

Raspimann commented 4 years ago

here the screen dump with debug:true:

Connecting to xxxx:pppp ... done! SEND {"method":"login","params":{"login":"email@address","pass":"x","rigid":"","agent":"vulkan XMR miner"},"id":1} RECV {"jsonrpc":"2.0","result":{"job":{"blob":"0c0ce6e2b3fa05d58ef2839c17d92f79f70697470cc63acb450987f1878a72ff21f66c2166875c00000000995d1b4b9d33ad2b5690a2edc4da9b9f47f9c206507d3b79ad5a1a658fa6b34f2a","target":"37894100","job_id":"10577088382623967920","time_to_live":5,"height":2176476,"algo":"rx/0","seed_hash":"6c97c86339b35052fa7f6812dc4ca72580929569af6e683d5470b5b2790922b0"},"status":"OK","id":"2453616038398744049"},"id":1,"error":null} Fail to get my id Using XMR Variant: cn/r Mining started.... (Press q to stop) [Time] 'Total H/s' 'Good shares'/'Invalid shares'/'Expired shares' [GPU] H/s 'good hashes'/'bad hashes' RECV {"jsonrpc":"2.0","method":"job","params":{"blob":"0c0cf2e3b3fa057aec20590bc85f6ba0a4eed35f87b9270d961cfaa5b2a6f2b4512d931c3ad01b0000000076acdb0569d2114ecdb82db3bd654095c876493de8c140aa44f66ddbfdc9660f12","target":"37894100","job_id":"10577088382623969602","time_to_live":5,"height":2176477,"algo":"rx/0","seed_hash":"6c97c86339b35052fa7f6812dc4ca72580929569af6e683d5470b5b2790922b0"},"error":null} [14:50:33] 0.0H/s 0/0/0

enerc commented 4 years ago

That's because the pool is sending results in a different format. For usual pools, they return: .... "result":{"id":"123456" ... where your pool returns: "result":{"jo ..... "OK","id":"123456...

Either use an other mining pool or replace in network.cpp at line 239 const char needle = "\"result\":{\"id\":\""; with const char needle = "\"OK\",\"id\":\""; That should return your id: 2453616038398744049 in this case

Raspimann commented 4 years ago

i change the network.cpp and compiled again ... i have now no error in ID but 0.0 H/s.

here ist the screen message:

Vulkan SPIR-V XMR Miner 0.4.1

Connecting to xxxxx:pppppp ... done! SEND {"method":"login","params":{"login":"email@address","pass":"x","rigid":"","agent":"vulkan XMR miner"},"id":1} RECV {"jsonrpc":"2.0","result":{"job":{"blob":"0c0cccecb9fa05a424c6f2749966836d2ce4c329b317901e38b8149d0a269c3c325fef95934d1800000000182bf398ccc7e180afde19c3313441481bbe0c7c4ce913c37dfc580650a28bff08","target":"37894100","job_id":"3676667545899320992","time_to_live":5,"height":2177274,"algo":"rx/0","seed_hash":"3de5febae3a6ce64f9d7ffa33d811a532f9445fd36ab13a3ced5bb5e1ae366b9"},"status":"OK","id":"14541241872714838915"},"id":1,"error":null} Using XMR Variant: cn/r Mining started.... (Press q to stop) [Time] 'Total H/s' 'Good shares'/'Invalid shares'/'Expired shares' [GPU] H/s 'good hashes'/'bad hashes' RECV {"jsonrpc":"2.0","method":"job","params":{"blob":"0c0c84edb9fa052197f4717553b3600ba1138fad52c802df9f65c5acdfe9e95bd1819a6ffb44e500000000626c547e5579fdc7892c09b9e9a7092ec54e210532de4d81fb4cbabd97e18f5a0e","target":"37894100","job_id":"3676667545899322820","time_to_live":5,"height":2177275,"algo":"rx/0","seed_hash":"3de5febae3a6ce64f9d7ffa33d811a532f9445fd36ab13a3ced5bb5e1ae366b9"},"error":null} [18:27:49] 0.0H/s 0/0/0 [18:28:19] 0.0H/s 0/0/0 [18:28:49] 0.0H/s 0/0/0

enerc commented 4 years ago

Ha, just saw you try to mine monero ... This miner does not support the current monero algorithm (randomX). RandomX requires 4 Gb of RAM just for the dataset. There are other miners, but you will have to run in the low mem mode, so the mining speed will be very low. In fact RandomX is Intel/AMD recent CPUs only. No GPU. What you still can do is running a monero node on a Raspi.

With a Raspi, you can mine AEON with the K12 algorithm. This miner can only mine K12 algo on the CPU.

Raspimann commented 4 years ago

what a pity! i have two Raspi´s with 4 and 8 GB RAM. so this is not a problem. with xmrig i have 100H/s with monero and randomX on the 4GB model. i search for miner with a higher hashrate on raspi 4 B with VCore VI (not VCore IV like in the old models) and Vulkan use.

Next question: i want compile the VulkanXmrMiner on Win64. But i thing some include files are missing. i clone the git, run "cmake -DWIN32=1 .." and become errors after: "cmake --build .. --config Release"

C:\VulkanXMRMiner-master\src\config.cpp(30,10): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "termios.h": No such file or directory [C:\VulkanXMRMiner-master\build\miner.vcxproj] C:\VulkanXMRMiner-master\src\httpConsole.cpp(27,10): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "netinet/in.h": No such file or directory [C:\VulkanXMRMiner-master\build\miner.vcxproj] C:\VulkanXMRMiner-master\src\k12CpuMiner.cpp(21,10): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "sys/time.h": No such file or directory [C:\VulkanXMRMiner-master\build\miner.vcxproj] C:\VulkanXMRMiner-master\src\main.cpp(20,10): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "sys/time.h": No such file or directory [C:\VulkanXMRMiner-master\build\miner.vcxproj] C:\VulkanXMRMiner-master\src\miner.cpp(22,10): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "sys/time.h": No such file or directory [C:\VulkanXMRMiner-master\build\miner.vcxproj] C:\VulkanXMRMiner-master\src\network.cpp(27,10): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "netinet/in.h": No such file or directory [C:\VulkanXMRMiner-master\build\miner.vcxproj] C:\VulkanXMRMiner-master\src\slow_hash.cpp(43,10): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "sys/mman.h": No such file or directory [C:\VulkanXMRMiner-master\build\miner.vcxproj]

thx