From 6ad720f8637d9a5c86107144ca8a93c96c0ef5fd Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Wed, 27 Aug 2025 14:36:11 +0930 Subject: [PATCH] Add build script for ldpc and i2s stuff --- tx/build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tx/build.sh diff --git a/tx/build.sh b/tx/build.sh new file mode 100644 index 0000000..7e4e516 --- /dev/null +++ b/tx/build.sh @@ -0,0 +1,23 @@ +#!/bin/bash + + +# Make sure we're in the right directory. +cd ~/wenet/tx/ + +# Build LDPC Encoder Library +echo "Building LDPC Encoder Library." +gcc -fPIC -shared -o ldpc_enc.so ldpc_enc.c + +# Build i2s drivers +cd i2smaster + +echo "Building I2S Driver" +dtc -@ -H epapr -O dtb -o i2smaster.dtbo -Wno-unit_address_vs_reg i2smaster.dts + +# Install driver +echo "Installing I2S Driver (requires sudo)" +sudo cp i2smaster.dtbo /boot/overlays + + +cd ~/wenet/tx/ +echo "Now continue with the instructions to modify your /boot/firmware/config.txt file to enable I2S."