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

[raspberrypi-kernel package] kernel version doesn't match /lib/modules #1554

Closed
jorenvo opened this issue Jul 4, 2016 · 5 comments
Closed

Comments

@jorenvo
Copy link
Contributor

jorenvo commented Jul 4, 2016

Not sure if this is the right place to report packaging issues. But the current stable raspberrypi-kernel package for Raspbian Jessie [1] seems to contain a kernel with version 4.4.11+ [2], but the modules for /lib/modules seem to be for 4.4.13+ [3]. This is causing some issues for us [4], eg. lsmod doesn't work anymore, and there is no /dev/input/by-id present.

[1] # apt-cache show raspberrypi-kernel
Package: raspberrypi-kernel
Source: raspberrypi-firmware
Version: 1.20160620-1
Architecture: armhf
Maintainer: Serge Schneider [email protected]
Installed-Size: 104203
Breaks: raspberrypi-bootloader (<< 1.20160324-1)
Replaces: raspberrypi-bootloader (<< 1.20160324-1)
Provides: linux-image
Homepage: https://github.com/raspberrypi/firmware
Priority: extra
Section: kernel
Filename: pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20160620-1_armhf.deb
Size: 29878122
SHA256: 76c06968532426610bd1300b375ca3cd68daded2345ab06ec30670c3193f9be1
SHA1: 9325585053f2d77ae1781804e863f8c90c51dff4
MD5sum: 89b81c6d12cbda37457dc44bdd423fe9
Description: Raspberry Pi bootloader
This package contains the Raspberry Pi Linux kernel.
Description-md5: 7536ab227cf13dcddacdeb86a3d06624

[2] # pi@raspberrypi:/boot $ strings kernel.img | grep '4.4'
DTOKLinux version 4.4.11+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #888 Mon May 23 20:02:58 BST 2016

uname -a

Linux raspberrypi 4.4.11+ #888 Mon May 23 20:02:58 BST 2016 armv6l GNU/Linux

[3] # dpkg-query -L raspberrypi-kernel
...
/lib/modules/4.4.13+/kernel/lib/lz4/lz4_compress.ko
/lib/modules/4.4.13+/kernel/lib/zlib_deflate
/lib/modules/4.4.13+/kernel/lib/zlib_deflate/zlib_deflate.ko
/lib/modules/4.4.13+/kernel/lib/crc-ccitt.ko
/lib/modules/4.4.13+/kernel/lib/lru_cache.ko
/lib/modules/4.4.13+/kernel/drivers
/lib/modules/4.4.13+/kernel/drivers/hid
/lib/modules/4.4.13+/kernel/drivers/hid/hid-microsoft.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-cherry.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-topseed.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-kensington.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-magicmouse.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-holtek-mouse.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-waltop.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-samsung.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-zydacron.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-dr.ko
/lib/modules/4.4.13+/kernel/drivers/hid/hid-holtek-kbd.ko
...

[4] odoo/odoo#12650

@popcornmix
Copy link
Collaborator

ping @XECDesign

@XECDesign
Copy link
Contributor

Looks okay on this end:

pi@raspberrypi:~ $ strings /boot/kernel.img | grep 4.4
4K4|v
n,*,4C4
4@4z
\v464
)4R4#
^s4L4la
4s4@T
DTOKLinux version 4.4.13+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #894 Mon Jun 13 12:43:26 BST 2016
pi@raspberrypi:~ $ ls /lib/modules/
4.4.13+  4.4.13-v7+
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.13+ #894 Mon Jun 13 12:43:26 BST 2016 armv6l GNU/Linux

Also checked by extracting kernel.img directly from the .deb file.

@jorenvo
Copy link
Contributor Author

jorenvo commented Jul 5, 2016

@XECDesign you're right, not sure what's going on then. Will report back when we figured out the issue. Thanks for the quick response!

@jorenvo jorenvo closed this as completed Jul 5, 2016
@jorenvo
Copy link
Contributor Author

jorenvo commented Jul 5, 2016

The reason this was happening is because we build our images with qemu-system-arm and we didn't mount /boot. Therefore the kernel modules got updated, but the images in /boot didn't. So it had nothing to do with the package, sorry for the noise.

@jimlynnjulian
Copy link

jimlynnjulian commented Aug 23, 2016

Thank you, I've found a solution.

Hello,
I've tried to compile the Exar UART driver 21B1411 and get the same error. Is there a solution other than finding 4.4.13+ and installing those headers? If not obvious already, I know a lot about technology, just not this specific area, i.e., Linux installations.

Thank you,
Jim Julian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants