-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from jacktrip/feature/device-mgmt
Update image to include zita to support multiple USB devices
- Loading branch information
Showing
15 changed files
with
135 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
libjack-jackd2-0 jackd2 librtaudio6 libqt5core5a libqt5network5 libqt5xml5 libqt5gui5 libqt5widgets5 libqt5concurrent5 | ||
ntp perl usbutils jq klick ecasound ecatools net-tools tcpdump iftop iperf ethtool i2c-tools | ||
ntp perl usbutils jq klick ecasound ecatools net-tools tcpdump iftop iperf ethtool i2c-tools zita-ajbridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,36 +15,44 @@ ini_ensure '.*dtparam=i2c1=.*' 'dtparam=i2c1=on' | |
|
||
mkdir -p "${ROOTFS_DIR}/var/lib/jacktrip" | ||
|
||
install -m 644 files/asound.snd_rpi_hifiberry_dacplusadc.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.snd_rpi_hifiberry_dacplusadcpro.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.snd_rpi_hifiberry_digi.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.audioinjector-pi-soundcard.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.USB\ Audio\ Device.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.USB\ PnP\ Sound\ Device.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/jamulus.ini "${ROOTFS_DIR}/var/lib/jacktrip" | ||
|
||
install -m 755 files/jacktrip-init.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-beacon.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-patches.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-credentials.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-wait-online.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-agent "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jack_delay "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jack_capture "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jack-peak-meter "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/Jamulus "${ROOTFS_DIR}/usr/local/bin" | ||
|
||
install -m 644 files/jacktrip-patches.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip-credentials.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip-init.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip-agent.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip-clock.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jamulus.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jack.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
|
||
install -m 644 files/dhcpcd-wait.conf "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf" | ||
# add root to audio group for jackd socket access | ||
usermod -a -G audio root | ||
|
||
install -m 644 files/asound.snd_rpi_hifiberry_dacplusadc.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.snd_rpi_hifiberry_dacplusadcpro.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.snd_rpi_hifiberry_digi.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.audioinjector-pi-soundcard.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.USB\ Audio\ Device.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/asound.USB\ PnP\ Sound\ Device.state "${ROOTFS_DIR}/var/lib/jacktrip" | ||
install -m 644 files/jamulus.ini "${ROOTFS_DIR}/var/lib/jacktrip" | ||
|
||
install -m 755 files/jacktrip-init.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-beacon.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-patches.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-credentials.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-wait-online.sh "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip-agent "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jacktrip "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jack_delay "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jack_capture "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/jack-peak-meter "${ROOTFS_DIR}/usr/local/bin" | ||
install -m 755 files/Jamulus "${ROOTFS_DIR}/usr/local/bin" | ||
|
||
# add JACK_PROMISCUOUS_SERVER to allow other users to access jackd - groups don't actually work so using the environment variable | ||
# see: http://manpages.ubuntu.com/manpages/bionic/man1/jackd.1.html | ||
install -m 644 files/jack_env.sh "${ROOTFS_DIR}/etc/profile.d/" | ||
install -m 644 files/jacktrip-patches.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip-credentials.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip-init.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip-agent.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip-clock.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jamulus.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jacktrip.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/jack.service "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/[email protected] "${ROOTFS_DIR}/etc/systemd/system/" | ||
install -m 644 files/[email protected] "${ROOTFS_DIR}/etc/systemd/system/" | ||
|
||
install -m 644 files/dhcpcd-wait.conf "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf" | ||
|
||
if [ -f "${ROOTFS_DIR}/etc/security/limits.d/audio.conf.disabled" ]; then | ||
mv "${ROOTFS_DIR}/etc/security/limits.d/audio.conf.disabled" "${ROOTFS_DIR}/etc/security/limits.d/audio.conf" | ||
|
@@ -60,7 +68,6 @@ mkdir -p "${ROOTFS_DIR}/etc/jacktrip" | |
echo $(date "+%Y%m%d99") > "${ROOTFS_DIR}/etc/jacktrip/patch" | ||
|
||
sed -i "s,ExecStart=.*,ExecStart=/usr/local/bin/jacktrip-wait-online.sh," "${ROOTFS_DIR}/lib/systemd/system/ifupdown-wait-online.service" | ||
sed -i "s,ExecStart=/usr/local/bin/jackd,ExecStart=/usr/bin/jackd," "${ROOTFS_DIR}/etc/systemd/system/jack.service" | ||
|
||
cp "${ROOTFS_DIR}/lib/systemd/system/ntp.service" "${ROOTFS_DIR}/etc/systemd/system/ntp.service" | ||
sed -i "s,^PrivateTmp=true,#PrivateTmp=true," "${ROOTFS_DIR}/etc/systemd/system/ntp.service" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export JACK_PROMISCUOUS_SERVER=audio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[Unit] | ||
Description=JackTrip-Zita-A2J-Connections, %I | ||
After=network.target jack.service | ||
|
||
[Service] | ||
Type=simple | ||
User=jacktrip | ||
Group=audio | ||
NoNewPrivileges=true | ||
ProtectSystem=true | ||
ProtectHome=true | ||
Nice=-20 | ||
IOSchedulingClass=realtime | ||
IOSchedulingPriority=0 | ||
ExecStartPre=/usr/bin/jack_wait -w -t 5 | ||
Environment="JACK_PROMISCUOUS_SERVER=audio" | ||
EnvironmentFile=/tmp/default/zita-a2j-%I-conf | ||
ExecStart=/usr/bin/zita-a2j $ZITA_OPTS | ||
Restart=on-failure | ||
SuccessExitStatus=SIGKILL | ||
RestartSec=3 | ||
StandardOutput=journal | ||
StandardError=inherit | ||
SyslogIdentifier=zita-a2j-%I | ||
LimitMEMLOCK=infinity | ||
LimitRTPRIO=99 | ||
LimitNOFILE=200000 | ||
LimitNPROC=200000 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[Unit] | ||
Description=JackTrip-Zita-J2A-Connections, %I | ||
After=network.target jack.service | ||
|
||
[Service] | ||
Type=simple | ||
User=jacktrip | ||
Group=audio | ||
NoNewPrivileges=true | ||
ProtectSystem=true | ||
ProtectHome=true | ||
Nice=-20 | ||
IOSchedulingClass=realtime | ||
IOSchedulingPriority=0 | ||
ExecStartPre=/usr/bin/jack_wait -w -t 5 | ||
Environment="JACK_PROMISCUOUS_SERVER=audio" | ||
EnvironmentFile=/tmp/default/zita-j2a-%I-conf | ||
ExecStart=/usr/bin/zita-j2a $ZITA_OPTS | ||
Restart=on-failure | ||
SuccessExitStatus=SIGKILL | ||
RestartSec=3 | ||
StandardOutput=journal | ||
StandardError=inherit | ||
SyslogIdentifier=zita-j2a-%I | ||
LimitMEMLOCK=infinity | ||
LimitRTPRIO=99 | ||
LimitNOFILE=200000 | ||
LimitNPROC=200000 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ git clone -b buster https://github.com/RPi-Distro/pi-gen.git | |
cd pi-gen && git clone [email protected]:jacktrip/jacktrip-image.git | ||
# Grab the latest binary files | ||
wget -q -O - https://files.jacktrip.org/binaries/jacktrip-image-files-20220204.tar.gz |tar -C jacktrip-image/00-sys-tweaks/files -xzvf - | ||
wget -q -O - https://files.jacktrip.org/binaries/jacktrip-image-files-20220504.tar.gz |tar -C jacktrip-image/00-sys-tweaks/files -xzvf - | ||
# Copy pi-gen config file | ||
cp jacktrip-image/config . | ||
|