3.10.17 Cannon insmod snd_bcm2835
Hi guys! I have compiled kernel for my distro. Compiled with raspbian config + alsa. I cant insmod or modprobe snd_bcm2835
root@testdistro[ ~ ]# uname -r
3.10.17
root@testdistro[ ~ ]# insmod /lib/modules/$(uname -r)/kernel/sound/arm/snd-bcm2835.ko
insmod: ERROR: could not insert module /lib/modules/3.10.17/kernel/sound/arm/snd-bcm2835.ko: Invalid module format
root@testdistro[ ~ ]# modinfo /lib/modules/$(uname -r)/kernel/sound/arm/snd-bcm2835.ko
filename: /lib/modules/3.10.17/kernel/sound/arm/snd-bcm2835.ko
alias: platform:bcm2835_alsa
license: GPL
description: Alsa driver for BCM2835 chip
author: Dom Cobley
srcversion: 1DE2985BBE9FF61548B2963
depends:
intree: Y
vermagic: 3.10.17 preempt mod_unload modversions ARMv6
parm: force_bulk:Force use of vchiq bulk for audio (bool)
root@testdistro[ ~ ]# uname -v
#1 PREEMPT Sun Nov 10 13:24:45 CET 2013
root@testdistro[ ~ ]#
I assume this works if you use the default 3.10.18 kernel? Did you rebuild the kernel and the module yourself, or are you mixing them?
Im rebuilded whole kernel because im make new linux distro.
What do you get from:
$ file /lib/modules/$(uname -r)/kernel/sound/arm/snd-bcm2835.ko
/lib/modules/3.10.18+/kernel/sound/arm/snd-bcm2835.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), BuildID[sha1]=0x9a711ad8ed3c961d42847edbc8fceaa911e88c15, not stripped
@popcornmix Same as you.
and
$ sudo modprobe snd-bcm2835
$ lsmod
Module Size Used by
uinput 6414 0
snd_bcm2835 16213 0
snd_pcm 78007 1 snd_bcm2835
snd_page_alloc 5184 1 snd_pcm
snd_seq 51559 0
snd_seq_device 6501 1 snd_seq
snd_timer 18709 2 snd_pcm,snd_seq
snd 58083 5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
evdev 8958 4
joydev 8636 0
leds_gpio 2083 0
led_class 3712 1 leds_gpio
@popcornmix :
root@testdistro[ ~ ]# modprobe snd-usb-audio
root@testdistro[ ~ ]# modprobe snd-bcm2835
root@testdistro[ ~ ]# lsmod
Module Size Used by
root@testdistro[ ~ ]#
Did you use the config from bcmrpi_defconfig?
Yes @popcornmix
I'd suggest you test the default 3.10.18 kernel (sudo rpi-update) and confirm that works.
Then try a clean build of latest code (note the tree is on 3.10.18 now). This may help: http://elinux.org/RPi_Kernel_Compilation
Im not using raspbian .
I don't believe this is a linux issue. The code in the repo builds and run fine.
I think your issue in in building the kernel issue, and that would be better resolved by asking in the forum.
Closing issue since there has been no activity for more than 2 months. Reopen if needed.