dbip
Posts: 8
Joined: Sun Jan 15, 2017 5:49 pm
Location: Barcelona

Kernel different to directory structure

Sun Jan 15, 2017 7:00 pm

Hi there,

First, my kernel:

Code: Select all

Linux server 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l GNU/Linux
Then, the problem, when trying to load the sound module with

Code: Select all

sudo modprobe snd-bcm2835
I get the error below:

Code: Select all

modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.34-v7+/modules.dep.bin'
I checked the directory tree and I don't have such 4.4.34 directory but these ones:

Code: Select all

4.4.38+
4.4.38-v7+
Is there anything wrong with the installation of raspbian? I can't get the sound to work, and after spending so many hours I am quite afraid the problem comes from here, as "lsmod" doesn't list anything at all and can't get the module to load.

Thanks.

d.

FlexibleSigmoid
Posts: 61
Joined: Sun Jul 03, 2016 1:33 am

Re: Kernel different to directory structure

Mon Jan 16, 2017 2:29 am

The kernel and modules have been updated (most likely via apt-get) and the "old" modules have been deleted in the process, however the running kernel remains.

Reboot and load the new kernel to match the modules to the new kernel version and you should be all set.

dbip
Posts: 8
Joined: Sun Jan 15, 2017 5:49 pm
Location: Barcelona

Re: Kernel different to directory structure

Mon Jan 16, 2017 8:11 am

FlexibleSigmoid,

Thanks for your answer. I've checked the repository looking for kernel 4.4.38 so I can make it match the directory structure but there's no such version .38, command "sudo apt-cache search linux-image" returns:

Code: Select all

linux-headers-3.10-3-rpi - Header files for Linux 3.10-3-rpi
linux-headers-3.12-1-rpi - Header files for Linux 3.12-1-rpi
linux-headers-3.16.0-4-rpi - Header files for Linux 3.16.0-4-rpi
linux-headers-3.18.0-trunk-rpi - Header files for Linux 3.18.0-trunk-rpi
linux-headers-3.18.0-trunk-rpi2 - Header files for Linux 3.18.0-trunk-rpi2
linux-headers-3.6-trunk-rpi - Header files for Linux 3.6-trunk-rpi
linux-headers-4.4.0-1-rpi - Header files for Linux 4.4.0-1-rpi
linux-headers-4.4.0-1-rpi2 - Header files for Linux 4.4.0-1-rpi2
linux-image-3.10-3-rpi - Linux 3.10 for RaspberryPI
linux-image-3.12-1-rpi - Linux 3.12 for RaspberryPI
linux-image-3.16.0-4-rpi - Linux 3.16 for RaspberryPI
linux-image-3.18.0-trunk-rpi - Linux 3.18 for RaspberryPI
linux-image-3.18.0-trunk-rpi2 - Linux 3.18 for RaspberryPI2
linux-image-3.6-trunk-rpi - Linux 3.6 for RaspberryPI
linux-image-4.4.0-1-rpi - Linux 4.4 for RaspberryPI
linux-image-4.4.0-1-rpi2 - Linux 4.4 for RaspberryPI2
linux-image-rpi - Linux for RaspberryPI (meta-package)
linux-image-rpi-rpfv - This metapackage will pull in the raspbian kernel for the raspberry pi 1
linux-image-rpi2-rpfv - This metapackage will pull in the raspbian kernel for the raspberry pi 2
raspberrypi-kernel - Raspberry Pi bootloader
May you tell me how to make it match?

Thanks!

User avatar
DougieLawson
Posts: 38851
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Kernel different to directory structure

Mon Jan 16, 2017 11:39 am

To get a coherent source tree us rpi-source.
https://github.com/notro/rpi-source
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Raspberry Pi OS”