Install sgminer-arm on Rock Pi 4

Install sgminer-arm on Rock Pi 4

In this tutorial we learn how to Install sgminer-arm on Rock Pi 4. Nowadays Rock Pi Boards are popular. Rock Pi is the best alternative of Raspberry Pi. Rock Pi 4 is a most popular SBC. Rock Pi Developed and Manufactured by Radxa. Radxa is a startup founded 2013, focusing on design, manufacture and sell Open Source Hardware products. Radxa also provides custom designing, prototyping and software/hardware integration services. Radxa® is pronounced as [reksə]. The name is from the Latin word radix which means root.

Here a info post about Rock Pi Boards – Rock Pi Boards | Rock Pi 4 | Rock Pi X | Rock Pi N10

Install sgminer-arm on Rock Pi 4

Follow given below steps 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

Your Installing sgminer-arm on a Rock Pi 4 completed!

Information Source :

Hi, I'm Harshvardhan Mishra. Tech enthusiast and IT professional with a B.Tech in IT, PG Diploma in IoT from CDAC, and 6 years of industry experience. Founder of HVM Smart Solutions, blending technology for real-world solutions. As a passionate technical author, I simplify complex concepts for diverse audiences. Let's connect and explore the tech world together! If you want to help support me on my journey, consider sharing my articles, or Buy me a Coffee! Thank you for reading my blog! Happy learning! Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top