Skip to content

Commit

Permalink
MEMS / RPi4 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashoechst committed Jan 9, 2024
1 parent c933481 commit 392624e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions home/pi/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

path+=/sbin
2 changes: 1 addition & 1 deletion home/pi/snd-i2s_rpi
9 changes: 6 additions & 3 deletions tsOS-Base.Pifile
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ if [ -d docs/_site22/ ]; then INSTALL docs/_site /data/docs; fi
RUN sed -i 's/#dtparam=i2s=on/dtparam=i2s=on/' /boot/firmware/config.txt

# Build snd-i2s_rpi kernel module
RUN cp -R /home/pi/snd-i2s_rpi /usr/src/snd-i2s_rpi-0.0.3
RUN bash -c 'for k in /lib/modules/*; do dkms install -k $(basename $k) snd-i2s_rpi/0.0.3; done'
RUN tee -a /etc/modules <<<snd-i2s_rpi
RUN cp -R /home/pi/snd-i2s_rpi /usr/src/snd-i2s_rpi-0.0.4
RUN bash -c 'for k in /lib/modules/*; do dkms install -k $(basename $k) snd-i2s_rpi/0.0.4; done'

# Build and install snd-i2s_rpi DT overlay
RUN dtc -o /boot/firmware/overlays/i2s-soundcard.dtbo /home/pi/snd-i2s_rpi/i2s-soundcard.dts
RUN tee -a /boot/firmware/config.txt <<<dtoverlay=i2s-soundcard

0 comments on commit 392624e

Please sign in to comment.