audiophonics / RaspDacMini

Toolset and sources file used for customizing RPI audio distributions with RaspDacMini hardware support
4 stars 0 forks source link

RaspDac Mini OLED patch compiler

In what conditions should you be using this ?

This branch holds the source code used to build a patch for the RaspDacMini OLED Version.

Usage

Here is the full procedure of that you should be doing :

  graph TB
  A["Flash the desired <br>distribution on a SD card (1)"];
  B["Boot and SSH into the RDM"];
  C["Install base dependencies"];
  D["Fetch source code (this repo)"];
  E["Build and download the patch"];

  Abis["Flash the desired <br>distribution on a SD card (2)"];
  Bbis["Boot and SSH into the RDM"];
  Cbis["Upload and install the patch"];
  A --> B --> C --> D --> E --> Abis --> Bbis --> Cbis;

(1)(2) You may notice we erase and reflash the SD card after a while. This is because building the patch requires a lot of tools that are not needed anymore after the patch has been built (can slow the system afterwards). Nothing horrible will happen if you use a system which still has compilation tools installed as your everyday streamer, but this is not the cleanest way of doing things so this walkthrough assumes that you do fully respect this procedure.


Building a patch for Volumio

Install base dependencies

sudo apt update -y 
sudo apt install -y build-essential

Volumio has nodejs installed by default.

Fetch source files

git clone https://github.com/audiophonics/RaspDacMini.git --branch v2.1 --single-branch
cd RaspDacMini

Build patch

sh build_all.sh volumio

This last command will create a directory release containing an archive install_rdm_volumio.tar.gz this is the file that you want to get and save on your local computer (use a FTP client is the easiest way to save the archive on your computer).

Install patch

Again, it is best to use a freshly reflashed SD card with a pristine Volumio image as a base to install the patch, or do at least a factory reset to remove all the compilation artifacts.

tar -xvzf install_rdm_volumio.tar.gz
sudo sh install_rdm_volumio.sh

and that should be all for Volumio.


Building a patch for moOde Audio

Install base dependencies

sudo apt update -y 
sudo apt install -y git

moOde comes with a compilation toolchain but does not have nodejs installed by default, which is required to build and to run the display. However, the compilation script uses apt to automatically install nodejs when building the patch. The resulting patch also calls apt to ensure this dependency is met when applying the patch. So all this is taken care of under the hood.

Fetch source files

git clone https://github.com/audiophonics/RaspDacMini.git --branch v2.1 --single-branch
cd RaspDacMini

Build patch

sh build_all.sh moode

This last command will create a directory release containing an archive install_rdm_moode.tar.gz this is the file that you want to get and save on your local computer (use a FTP client is the easiest way to save the archive on your computer).

Install patch

Again, it is best to use a freshly reflashed SD card with a pristine moOdeAudio image as a base to install the patch

tar -xvzf install_rdm_moode.tar.gz
sudo sh install_rdm_moode.sh

and that should be all for moOde.


Building a patch for piCorePlayer

This part is a work in progress