Building on Linux
The Linux build path is less frequently exercised than the Windows and macOS paths. If you hit a platform-specific build issue, check for case-sensitive path problems first and report the issue in the Matrix Wiki repository or the Matrix OS repository.
Install Gitβ
Git is necessary for cloning the Matrix OS repository. Install Git with:
sudo apt update
sudo apt install git
Verify the installation:
git --version
Install Makeβ
Make is essential for building Matrix OS. Install it using:
sudo apt install make
Confirm the installation:
make --version
Clone the Matrix OS Repositoryβ
-
Make sure Git is installed as shown above.
-
Open your terminal.
-
Clone the Matrix OS repository:
git clone https://github.com/203-Systems/MatrixOS.git -
Navigate to the cloned repository:
cd MatrixOS -
Initialize the submodules in the Matrix OS repository:
git submodule update --init
Install ESP-IDFβ
The ESP-IDF (Espressif IoT Development Framework) is required to build and upload Matrix OS to the Mystrix device. Matrix OS Mystrix builds require ESP-IDF 5.3.x and ESP32-S3 tooling. The commands below install v5.3.1.
mkdir -p ~/esp
cd ~/esp
git clone -b v5.3.1 --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh esp32s3
python3 $HOME/esp/esp-idf/tools/idf_tools.py install riscv32-esp-elf
If the installer reports missing system packages, install the packages it lists, then rerun ./install.sh esp32s3.
Build Matrix OSβ
Use DEVICE=Mystrix for Mystrix 1 family devices. Use DEVICE=Mystrix2 for Mystrix 2 family devices.
-
Load ESP-IDF by sourcing it in your terminal session:
source ~/esp/esp-idf/export.shFor repeated development, add this command to your shell setup or configure your editor terminal to source ESP-IDF before running Matrix OS build commands.
-
Navigate to the Matrix OS root folder if your terminal isnβt already there.
-
Run the following command to build Matrix OS:
make DEVICE=Mystrix buildFor Mystrix 2:
make DEVICE=Mystrix2 build -
Prepare for the upload by ensuring your Mystrix is in upload mode.
-
Install
psutil(only needed once):pip install psutil -
Upload the compiled Matrix OS to your Mystrix device:
make DEVICE=Mystrix uf2-uploadFor Mystrix 2:
make DEVICE=Mystrix2 uf2-upload -
Your Mystrix device should now flash and start the newly compiled Matrix OS automatically.
For target examples and command chains, see Build Matrix OS. Use build-dev when you need logs; see Debug Your Application (C++).
Comments