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: 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
Your Installing sgminer-arm on a Rock Pi 4 completed!
Information Source : https://rockpi.org/
You May like also : Rock Pi 4 Tutorials | Getting Started with Rock Pi 4
Explore Some more Raspberry Pi Tutorials :
- Raspberry Pi – Introduction | Overview | Setup and Management | Tutorials
- How to Install Mosquitto Broker on Raspberry Pi
- Setting up SPI on Raspberry Pi
- Getting Started with The Sense HAT – Raspberry Pi
- Raspberry Pi GPIO Basics
- Controlling LED with Raspberry Pi PART-2
- How To Setup Static IP Address on Raspberry Pi
- Controlling LED with Raspberry Pi
- Interfacing a light Sensor (LDR) with Raspberry Pi
- Remote control your Raspberry Pi from your PC with VNC!