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

Difference between revisions of "Rockpi4/Sgminer"

(Install clpeak(Optional))
 
(One intermediate revision by the same user not shown)
Line 22: Line 22:
 
Adding the Radxa testing respository
 
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
+
     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 -
 
     wget -O - apt.radxa.com/bionic-testing/public.key | sudo apt-key add -
 
     sudo apt-get update && sudo apt-get -y upgrade
 
     sudo apt-get update && sudo apt-get -y upgrade
Line 40: Line 40:
 
== Install clpeak(Optional) ==
 
== Install clpeak(Optional) ==
  
     apt-get install cmake git gcc-8 g++8
+
     sudo apt-get install cmake git gcc-8 g++-8
 
     export CC=gcc-8
 
     export CC=gcc-8
     export CXX=gcc-8
+
     export CXX=g++-8
 
     git clone https://github.com/krrishnarraj/clpeak
 
     git clone https://github.com/krrishnarraj/clpeak
 
     cd clpeak
 
     cd clpeak
Line 58: Line 58:
  
 
     tar -xf arm_compute-v20.02.1-bin-linux.tar.gz
 
     tar -xf arm_compute-v20.02.1-bin-linux.tar.gz
     sudo mv -r arm_compute-v20.02.1-bin-linux.tar.gz /usr/lib/
+
     sudo mv arm_compute-v20.02.1-bin-linux /usr/lib/
 
     export CC=gcc-8
 
     export CC=gcc-8
     export CXX=g++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
 
     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  
 
     git clone https://github.com/hominoids/sgminer-arm.git  
Line 67: Line 67:
 
     git submodule update
 
     git submodule update
 
     autoreconf -fi
 
     autoreconf -fi
     CFLAGS="-g -Ofast -Wall -march=native -mtune=cortex-a72.cortex-a53" LDFLAGS="-L/usr/lib/arm_compute-v20.02.1-bin-linux/lib/linux-armv8a-neon-cl" ./configure --disable-adl --disable-adl-checks
+
     CFLAGS="-g -Ofast -Wall -march=native -mtune=cortex-a72.cortex-a53" LDFLAGS="-L/usr/lib/arm_compute-v20.02.1-bin-linux/lib/linux-arm64-v8a-neon-cl" ./configure --disable-adl --disable-adl-checks
 
     make
 
     make

Latest revision as of 07:16, 23 March 2020

    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)

   sudo apt-get install cmake git gcc-8 g++-8
   export CC=gcc-8
   export CXX=g++-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/v20.02.1/arm_compute-v20.02.1-bin-linux.tar.gz

extract the downloaded file

   tar -xf arm_compute-v20.02.1-bin-linux.tar.gz
   sudo mv arm_compute-v20.02.1-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 
   cd sgminer-arm
   git submodule init
   git submodule update
   autoreconf -fi
   CFLAGS="-g -Ofast -Wall -march=native -mtune=cortex-a72.cortex-a53" LDFLAGS="-L/usr/lib/arm_compute-v20.02.1-bin-linux/lib/linux-arm64-v8a-neon-cl" ./configure --disable-adl --disable-adl-checks
   make