Closed PSLLSP closed 2 years ago
I don't have a NAS but I can setup a FreeBSD build machine and include binaries in the next release.
I thought that the static generic Linux build will also work for FreeBSD. Did you tried that?
Linux version doesn't work in the TrueNAS jail (TrueNAS-12.0-U7)...
xmrig that is installed from plugin:
root@xmrig-x:~ # uname -a
FreeBSD xmrig-x 12.2-RELEASE-p11 FreeBSD 12.2-RELEASE-p11 75566f060d4(HEAD) TRUENAS amd64
root@xmrig-x:~ # file /usr/local/bin/xmrig
/usr/local/bin/xmrig: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked,
root@xmrig-x:~ # /usr/local/bin/xmrig --version
XMRig 6.16.2
built on Jan 12 2022 with clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
features: 64-bit AES
libuv/1.42.0
OpenSSL/1.1.1h-freebsd
hwloc/2.5.0
Segmentation fault for GhostRider (RTM) on older AMD CPU; XMR and other algos that I tried work ok:
root@xmrig-x:~ # /usr/local/bin/xmrig -c config-rtm-test.json
[2022-01-14 13:57:28.410] hwloc auto configuration for algorithm "cn/1" failed.
[2022-01-14 13:57:28.410] hwloc auto configuration for algorithm "cn-heavy/0" failed.
[2022-01-14 13:57:28.410] hwloc auto configuration for algorithm "rx/0" failed.
[2022-01-14 13:57:28.410] hwloc auto configuration for algorithm "ghostrider" failed.
* ABOUT XMRig/6.16.2 clang/10.0.1
* LIBS libuv/1.42.0 OpenSSL/1.1.1h-freebsd hwloc/2.5.0
* HUGE PAGES supported
* 1GB PAGES unavailable
* CPU AMD Athlon(tm) II X4 610e Processor (1) 64-bit -AES
L2:2.0 MB L3:0.0 MB 4C/4T NUMA:1
* MEMORY 15.4/15.7 GB (98%)
* DONATE 0%
* ASSEMBLY auto:none
* POOL #1 eu-de01.miningrigrentals.com:50821 algo ghostrider
* COMMANDS hashrate, pause, resume, results, connection
* OPENCL disabled
* CUDA disabled
[2022-01-14 13:57:28.927] net use pool eu-de01.miningrigrentals.com:50821 188.166.161.62
[2022-01-14 13:57:28.927] net new job from eu-de01.miningrigrentals.com:50821 diff 12456 algo ghostrider height 227331
Segmentation fault
xmrigCC, Linux version, it cannot be started at all:
root@xmrig-x:~ # file xmrigCC/miner/xmrigDaemon
xmrigCC/miner/xmrigDaemon: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),statically linked, stripped
root@xmrig-x:~ # xmrigCC/miner/xmrigDaemon --version
ELF binary type "0" not known.
xmrigCC/miner/xmrigDaemon: Exec format error. Binary file not executable.
root@xmrig-x:~ # xmrigCC/miner/xmrigDaemon -c config.json
ELF binary type "0" not known.
xmrigCC/miner/xmrigDaemon: Exec format error. Binary file not executable.
xmrig from xmrig-6.16.2-freebsd-static-x64.tar.gz, it works without any issue:
root@xmrig-x:~ # file xmrig-6.16.2/xmrig
xmrig-6.16.2/xmrig: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 11.4, FreeBSD-style, stripped
root@xmrig-x:~ # xmrig-6.16.2/xmrig --version
XMRig 6.16.2
built on Dec 2 2021 with clang 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b)
features: 64-bit AES
libuv/1.42.0
OpenSSL/1.1.1l
hwloc/2.5.0
It is possible to run Linux virtual machine at TrueNAS and I have several virtual machines with Ubuntu configured on my TrueNAS but such virtual machine is not fast enough to run miner effectively, miner running in a jail has significantly higher hashrate...
Added freebsd static binaries to the release 3.0.0
Can you please verify if that fits for you?
Thanks in advance,
I did fast test and it works, I do not see any issue! Well, it reports miner version as Linux (not FreeBSD) but the same is with original xmrig... The version is visible on some pools, XMRigCC/3.0.0 (Linux x86_64) libuv/1.42.0 clang/11.0.1.
I will play with this miner, I have to explore remote control, it looks like a cool feature...
Sure, let me know if I can help you.
Feel free to join the discord and/or telegram channel for support.
You have impressive collection of build binaries. I still miss one, version for FreeBSD.
xmrig
has that build, like xmrig-6.16.2-freebsd-static-x64.tar.gzFreeNAS/TrueNAS is build on FreeNAS and it supports jails and one of plugins is
xmrig
, to create xmrig jails. xmrig-6.16.2-freebsd-static-x64.tar.gz can be used to replace (upgrade) miner in xmrig jail.Could you produce build for FreeBSD? Or even plugin xmrigCC for TrueNAS?? ;-) This is low priority wish...