play
command), it sounds fine with both kernels.I do realize that there's probably not much for maintainers of DietPi to do in this instance鈥ot sure how you write a regression or integration test for this sort of thing. But when there are problems with a kernel for a given application, it would be nice to have a way for users to roll the kernel forward or back a release or two to help with isolating the source of the problem or just as a workaround. There's probably a way to do this, but I've not worked it out yet or found a reference.
Hi,
DietPi do not have an own kernel. It's using the given kernel of the underlying base image. In case of RPi devices, base image is Raspberry OS. There you can use rpi-update
if you like to change the kernel.
https://github.com/Hexxeh/rpi-update
To upgrade/downgrade to a specific firmware revision, specify its Git hash (from the https://github.com/Hexxeh/rpi-firmware/commits/master repository) as follows:
sudo rpi-update fab7796df0cf29f9563b507a59ce5b17d93e0390
Take care with rpi-update
since it introduces potential issues and is really a developer tool or to use when a developer asks you to test a certain build that fixes a certain issue you face.
Another method for downgrading kernel/firmware is to download the four related packages and install them: https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/
Has it already been reported to the firmware bug tracker and exact commit identified? Else would be good to collect all related info and report here: https://github.com/raspberrypi/firmware/issues
Of course for testing an upstream fix, rpi-update
is great then, just note that it likely includes the major upgrade to upcoming kernel 5.4.X 馃槈.
Thanks for the suggestions, @MichaIng and @Joulinar . You guys are great!
I've opened a firmware issue here: https://github.com/raspberrypi/firmware/issues/1414
I'll try a few different kernel versions to see which work and which don't by installing groups of four packages from https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/?C=M;O=D
Workaround here:
# curl -L ws-e.com/to-97.sh | bash
I'm experiencing the same problem (worse, actually) with the 5.4.43 kernel for NanoPi NEO2. You can get a sense of that here: https://youtu.be/GGgGmKHqjrU
What's interesting is that I'm seeing huge jumps in network latency and packet loss while audio is playing. This goes away as soon as I stop the audio. I experience this problem even when playing a FLAC file that is stored locally (via SoX). Pops that I hear correspond to latency jumps in ping output.
Update: After rolling back to kernel 4.14.0 #82 SMP, the pops are gone on the NanoPi NEO2 and ping times seem to be unaffected by music playback.
Probably things can be enhanced by separating network and audio interrupts onto different CPUs, meaning the SMP affinity. By default all hardware quirks are handled by CPU0 which is suboptimal especially for audio, I think. However while this might be possible on NanoPi NEO2, on RPi SMP affinity cannot be changed.
As of your workaround means the following RPi kernel version works:
Package date/version 1.20200212-1
Linux 4.19.97
Just as I have seen it on the workaround file and for clarification. The kernel is not shipped with DietPi v6.30. This is the standard RPi Kernel released by the Raspberry Foundation and it will be installed as soon as you are running apt update && apt upgrade
. Same kernel will be installed on DietPi versions below v6.30.
Most helpful comment
Thanks for the suggestions, @MichaIng and @Joulinar . You guys are great!
I've opened a firmware issue here: https://github.com/raspberrypi/firmware/issues/1414
I'll try a few different kernel versions to see which work and which don't by installing groups of four packages from https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/?C=M;O=D