라즈베리파이2 에서 비트제니(BitZeny)를 채굴해 보았다.
5 min readMar 3, 2018
Raspberry Pi 2 Model B + BitZeny CPU Mining
결론부터 말하자면 꽤 좋다. 0.11kH/s 나온다. 라이젠1700 PC의 최저가가 120만원인데, 약 2만원(?)추정 라즈베리파이2에서 이정도면 동급이라고 볼 수 있다. (진짜냐?... 사실 제대로 계산 안해봄) 누가 검증좀 해달라! 5제니 선물드림
라즈베리파이 설치부터 쓰겠다. 초보자 배려없이 쓰니까 모르겠으면 제니갤로 와서 물어봐라.
OS 이미지 다운로드:
https://www.raspberrypi.org/downloads/raspbian/
패치:
boot에 빈 ssh 파일 넣어준다.
접속:
랜선꼽고 ssh pi@raspberrypi
초기설정:
$ sudo raspi-config
hostname/비번 바꾸고 재부팅
접속은 ssh pi@바꾼hostname
업그레이드:
$ sudo apt-get update -y
$ sudo apt-get upgrade -y
컴파일필수요소설치:
$ sudo apt-get install git automake
$ sudo apt-get install build-essential libcurl4-openssl-dev
cpuminer다운로드:
$ git clone https://github.com/macchky/cpuminer.git
$ cd cpuminer ##폴더이동
$ git checkout v2.6.0 ##버젼확인
cpuminer컴파일:
ARM CPU에서는
$ ./configure CFLAGS="-O3" CXXFLAGS="-O3" ##이렇게하지말고
이게 아니고 ARM 전용 옵션을 넣어주면 약 25% 정도 빨라진다. 꼭 하자. 0.08 >> 0.11 kH/s
출처: https://github.com/novaspirit/wolf-m7m-cpuminer-V2-RPi
$ ./autogen.sh # only needed if building from git repo$ ./nomacro.pl # in case the assembler doesn’t support macros$./configure CFLAGS="-Ofast -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math" CXXFLAGS="-Ofast -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math" ##ARM CPU OPTIONS!!$ make
채굴거거씽:
라즈베리파이2가 4스레드이므로 -t 4 옵션을 쓰고, cpu 모든자원을 끌어오기위해 — cpu-affinity 85 을 붙여준다. (예를 들어, 4 코어 8 스레드 i7이라면, 10101010 = 85)
$ ./minerd -a yescrypt -o stratum+tcp://pool-chan.me:19001 -t 4 — cpu-affinity 85 -u zenyhime.pi-anzu
채굴결과:
0.11 kH/s 매우좋다! 라이젠과 동일한 가성비라고 주장하겠다. 라즈베리파이3 및 나노파이 파이어3가 오면 다시 해보겠다.
참고: