Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable newer audio driver with audio_pwm_mode=1 in config.txt #324

Open
wants to merge 1 commit into
base: rc
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ kano-updater (4.0.0-0) unstable; urgency=low
* Bump version for Kano OS v4.0.0 "Hopper"
* Fix GTK compatibility for Stretch release
* Add support for CKT
* Disable newer audio driver with audio_pwm_mode=1 in config.txt

-- Team Kano <[email protected]> Thu, 23 Apr 2018 11:48:00 +0100
-- Team Kano <[email protected]> Fri, 22 Jun 2018 11:48:00 +0100

kano-updater (3.15.0-0) unstable; urgency=low

Expand Down
18 changes: 15 additions & 3 deletions kano_updater/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,9 @@ def beta_3_13_0_to_beta_3_14_0(self):
if c['rpi-chromium-mods-kano'].installed >= '20170809':
install('scratch2')
else:
logger.error("beta_3_13_0_to_beta_3_14_0: wrong version of rpi-chromium-mods-kano installed: {}".format(
c['rpi-chromium-mods-kano'].installed.version)
logger.error(
"beta_3_13_0_to_beta_3_14_0: wrong version of rpi-chromium-mods-kano installed: {}"
.format(c['rpi-chromium-mods-kano'].installed.version)
)
except Exception as e:
logger.error("beta_3_13_0_to_beta_3_14_0: Failed to install scratch2", exception=e)
Expand All @@ -986,4 +987,15 @@ def beta_3_14_1_to_beta_3_15_0(self):
pass

def beta_3_15_0_to_beta_4_0_0(self):
pass
try:
from textwrap import dedent
extra_config = dedent("""
# Disable the new audio pwm driver to avoid the risk of a kernel / firmware crash.
# https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=195178
# https://github.com/raspberrypi/linux/issues/2587
audio_pwm_mode=1
""")
self._add_boot_config_options(extra_config)

except Exception as e:
logger.error("Failed to update config: {}".format(e))