Forum
[SOLVED] todays upgrades (16.1 and 4.4.8) - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Installation (/forum-16.html)
+--- Thread: [SOLVED] todays upgrades (16.1 and 4.4.8) (/thread-3547.html)



todays upgrades (16.1 and 4.4.8) - Skywatch - 27th Apr, 2016 09:50 PM

I applied todays upgrades to a pi1 and a pi2.

Both on reboot had no web interface. Also no kodi showing in top. No start-up sounds from I2S either.

Have powered off the pis and removed the sd cards for reflashing back to older version now.


RE: todays upgrades (16.1 and 4.4.8) - sorvakko - 27th Apr, 2016 10:51 PM

Hi,

It seems that after the 4.4.8+ upgrade, Alsa is broken somehow:

Terminal

xbian@livingpi ~ $ aplay -l
aplay: device_list:268: no soundcards found...
xbian@livingpi ~ $ sudo aplay -l
aplay: device_list:268: no soundcards found...
xbian@livingpi ~ $ lsmod
Module Size Used by
zram 21160 1
zsmalloc 11500 1 zram
evdev 10595 2
bcm2835_gpiomem 2939 0
lirc_rpi 6106 3
lirc_dev 7794 1 lirc_rpi
rc_core 15720 1 lirc_dev
bcm2835_wdt 3064 0
uio_pdrv_genirq 3025 0
uio 7587 1 uio_pdrv_genirq
uinput 6721 1
snd_bcm2835 23251 0
snd_pcm 70156 1 snd_bcm2835
snd_timer 17617 1 snd_pcm
snd 48247 3 snd_bcm2835,snd_timer,snd_pcm
xbian@livingpi ~ $ dmesg | grep snd_bcm


As can be seen, snd_bcm2835 does get loaded but isn't visible to Alsa at all. This is highly disheartening as I had just managed to get a centralized Mopidy with snapcast clients running on all my Xbian RPi's. Now that doesn't work anymore as snapcast only sees a null sound output (there used to be about 10 different output options, related to various ALSA paths):

Terminal

root@livingpi ~ # snapclient -l
0: null
Discard all samples (playback) or generate zero samples (capture)

Any idea how this could be fixed?

/Samuli


RE: todays upgrades (16.1 and 4.4.8) - Skywatch - 27th Apr, 2016 11:07 PM

One thing that worked for me in the past was to reinstall the alsa packages....sudo apt-get install alsa-base alsa-utils

It might work for you.

Do you have kodi running after the updates then?


RE: todays upgrades (16.1 and 4.4.8) - sorvakko - 27th Apr, 2016 11:27 PM

(27th Apr, 2016 11:07 PM)Skywatch Wrote:  One thing that worked for me in the past was to reinstall the alsa packages....sudo apt-get install alsa-base alsa-utils

It might work for you.

Do you have kodi running after the updates then?

No such luck with the alsa packages (did an apt-get install --reinstall just to make it really do something Smile ).

Kodi is running, and even the audio works, which is somewhat of a surprise. It now has only the audio output options "Analogue", "HDMI" and "HDMI and Analogue", missing the Alsa options (i.e. falling back to the Kodi-internal RPi audio support). My verdict would be that it's Alsa that was broken in the recent update.

Oh, and the problem host is a RPi 2 (Machine model: Raspberry Pi 2 Model B Rev 1.1), if that makes a difference. I have an identical model on which I haven't yet run the update which still works (so if anybody wants any kind of debug comparison on them I can provide that).

/Samuli


RE: todays upgrades (16.1 and 4.4.8) - Nachteule - 27th Apr, 2016 11:45 PM

Hmmm, that's weird Huh

I'm running 4.4.8 kernel and 16.1 on all my systems (2x RPi1 [1], 1x RPi2 [3] and 1x RPi3 (this my test system, nearly unconfigured) [2]), absolutely no problem.

aplay -l shows sound devices, Kodi comes up and is working

[1] one using onboard sound, the other HDMI
[2] using HDMI sound
[3] using Hifiberry AMP+


RE: todays upgrades (16.1 and 4.4.8) - Nachteule - 27th Apr, 2016 11:47 PM

@sorvakko

From which kernel version did you update? I suppose from 4.1 version

So please check if you have

Code:
dtparam=audio=on

in your /boot/config.txt


RE: todays upgrades (16.1 and 4.4.8) - Skywatch - 27th Apr, 2016 11:52 PM

My update was from 4.4.7 (all pi here are running this).

A btrfs roll back on both pi still left it without kodi running ??? -- So that is when I took the cards and reflashed to earlier version as something is not good here (but the last 2 weeks of upgrades were fine).


RE: todays upgrades (16.1 and 4.4.8) - Nachteule - 27th Apr, 2016 11:59 PM

(27th Apr, 2016 11:52 PM)Skywatch Wrote:  My update was from 4.4.7 (all pi here are running this).

I knew that

Quote:A btrfs roll back on both pi still left it without kodi running ??? -- So that is when I took the cards and reflashed to earlier version as something is not good here (but the last 2 weeks of upgrades were fine).

Unfortunately this will never affect installed kernel, because /boot partition is VFAT and is not able to have snapshots. So probably you have kernel issues (the raspberry pi guys made same changes for Dynamic DT)

I was testing kernel with all my available combinations before releasing tough.


RE: todays upgrades (16.1 and 4.4.8) - Skywatch - 28th Apr, 2016 12:38 AM

OK, I 'll try to add the updates one at a time (not the kernel) and see how it goes then.


RE: todays upgrades (16.1 and 4.4.8) - sorvakko - 28th Apr, 2016 01:54 AM

(27th Apr, 2016 11:47 PM)Nachteule Wrote:  @sorvakko

From which kernel version did you update? I suppose from 4.1 version

So please check if you have

Code:
dtparam=audio=on

in your /boot/config.txt

Aand that did it. I've been falling more and more behind on changes in the Linux kernel and had completely missed the devtree stuff. Thank you!

(and Skywatch, sorry for hijacking your thread, you seem to have a completely different issue..)


RE: todays upgrades (16.1 and 4.4.8) - Nachteule - 28th Apr, 2016 03:35 AM

@Skywatch

While testing and switching between configuration I had one situation Kodi does not come up.

Removed Hifiberry card but did not restore settings in /boot.config and audio settings in Kodi. So no sound device was available after boot and Kodi did not came up (did not further investigation, be on skinning of config-xbmc for Krypton and won't interrupt Sad)

Maybe you have same or similar situation


RE: todays upgrades (16.1 and 4.4.8) - Nachteule - 29th Apr, 2016 12:02 AM

@Skywatch

Are you using hifiberry-dac overlay?

Maybe this commit could solve your issues with kernel 4.4.8

New kernel packages has been built and are available in about 4 hrs


RE: todays upgrades (16.1 and 4.4.8) - IriDium - 29th Apr, 2016 12:36 AM

Just done an upgrade on RPi2 using "devel" (4.4.8) and everything seems to be working. System boots and all looks well. Cannot test hifiberry!


RE: todays upgrades (16.1 and 4.4.8) - Skywatch - 29th Apr, 2016 04:39 AM

@Nachteule

Thank you for that, it works now! - Tongue


RE: todays upgrades (16.1 and 4.4.8) - Nachteule - 29th Apr, 2016 06:57 AM

@Skywatch

Thanks for feedback

Marked as solved Smile