Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rockpi4/Sgminer

< Rockpi4
Revision as of 01:43, 29 July 2019 by Hipboi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    ROCK Pi 4 >  Sgminer

Basic Guide for installing sgminer-arm on a Rock Pi 4.

Install OS Image and Basic Utilities

Download the Ubuntu offical image from: https://wiki.radxa.com/Rockpi4/downloads choose the offical Ubuntu server image

   sudo apt-get update && sudo apt-get -y upgrade

Since this a minimal image you’ll need to install some applications first

   sudo apt-get install -y nano screen clinfo

Adding the Radxa testing respository

   echo “deb http://apt.radxa.com/bionic-testing/ bionic main” | sudo tee /etc/apt/sources.list.d/apt-radxa-com.list
   wget -O - apt.radxa.com/bionic-testing/public.key | sudo apt-key add -
   sudo apt-get update && sudo apt-get -y upgrade

Installing the GPU Drivers

   sudo apt-get install -y rockchip-mali-midgard14
   sudo apt-get install -y rockchip-mali-midgard-dev
   sudo apt-get install -y mali-midgard-dkms
   sudo reboot now

After Reboot

   clinfo

other option is to install and run clpeak, it will give you more detailed information on GPU performance

Install clpeak(Optional)

   apt-get install cmake git gcc-8 g+±8
   export CC=gcc-8
   export CXX=gcc-8
   git clone https://github.com/krrishnarraj/clpeak
   cd clpeak
   cmake . -DCMAKE_CXX_COMPILER=g++
   make
   ./clpeak

Build sgminer-arm-rc1

Download the Arm Developer compute Library

   wget https://github.com/ARM-software/ComputeLibrary/releases/download/v19.05/arm_compute-v19.05-bin-linux.tar.gz

extract the downloaded filed

   tar -xf arm_compute-v19.05-bin-linux.tar.gz
   mv -r arm_compute-v19.05-bin-linux /usr/lib/
   export CC=gcc-8
   export CXX=g+±8
   sudo apt-get install -y automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git libgmp-dev libncurses5-dev libtool opencl-headers
   git clone https://github.com/hominoids/sgminer-arm.git 1
   cd sgminer-arm
   git submodule init
   git submodule update
   autoreconf -fi
   CFLAGS="-g -Ofast -Wall -march=native -mtun=cortex-a72.cortex-a53" LDFLAGS="-L/usr/lib/arm_compute-v19.05-bin-linux/lib/linux-armv8a-neon-cl" ./configure --disable-adl --disable-adl-checks
   make