Skip to content

Commit

Permalink
tweaks for boot config. blacklist bcm audio module
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jan 8, 2024
1 parent bd4b0c2 commit 4c11f12
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions stage2/04-toxblinkenwall/01-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,12 @@ echo 'gpu_mem=384' >> "${ROOTFS_DIR}/boot/config.txt"
echo '' >> "${ROOTFS_DIR}/boot/config.txt"

# disable some stuff so that fbset (and framebuffer) works correctly
sed -i -e 's_dtoverlay=vc4-fkms-v3d_#dtoverlay=vc4-fkms-v3d_' "${ROOTFS_DIR}/boot/config.txt"
sed -i -e 's/max_framebuffers=.*/#max_framebuffers=2/' "${ROOTFS_DIR}/boot/config.txt"
#sed -i -e 's_dtoverlay=vc4-fkms-v3d_#dtoverlay=vc4-fkms-v3d_' "${ROOTFS_DIR}/boot/config.txt"
#sed -i -e 's/max_framebuffers=.*/#max_framebuffers=2/' "${ROOTFS_DIR}/boot/config.txt"

# HINT: this change is gone in the final image, for some unknown reason
sed -i -e 's_dtparam=audio=on_#dtparam=audio=on_' "${ROOTFS_DIR}/boot/config.txt"


# set kernel commandline to get "proper" 32bit color depth framebuffer again
# see: https://github.com/raspberrypi/linux/issues/5049#issuecomment-1873982920
Expand Down Expand Up @@ -341,6 +345,12 @@ on_chroot << EOF
echo 'blacklist bcm2835_codec' > /etc/modprobe.d/blacklist-bcm2835_codec.conf
EOF

echo 'blacklist snd_bcm2835 module'
# this module creates the audio device for the microphone jack on the pi4, pi3 etc.
on_chroot << EOF
echo 'blacklist snd_bcm2835' > /etc/modprobe.d/blacklist-snd_bcm2835.conf
EOF

echo 'dont use debian ntp pool, !!metadataleak!!'
on_chroot << EOF
sed -i -e 's#debian\.pool#pool#g' /etc/ntp.conf
Expand Down

0 comments on commit 4c11f12

Please sign in to comment.