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


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

    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: 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 bionic main” | sudo tee /etc/apt/sources.list.d/apt-radxa-com.list
   wget -O - | 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


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
   cd clpeak
   cmake . -DCMAKE_CXX_COMPILER=g++

Build sgminer-arm-rc1

Download the Arm Developer compute Library


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 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