linux icon indicating copy to clipboard operation
linux copied to clipboard

3.10.17 Cannon insmod snd_bcm2835

Open 58ef23 opened this issue 13 years ago • 12 comments

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[ ~ ]# 

58ef23 avatar Nov 10 '13 16:11 58ef23

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?

popcornmix avatar Nov 10 '13 17:11 popcornmix

Im rebuilded whole kernel because im make new linux distro.

58ef23 avatar Nov 10 '13 17:11 58ef23

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 avatar Nov 10 '13 18:11 popcornmix

@popcornmix Same as you.

58ef23 avatar Nov 10 '13 18:11 58ef23

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 avatar Nov 10 '13 18:11 popcornmix

@popcornmix :

root@testdistro[ ~ ]# modprobe snd-usb-audio
root@testdistro[ ~ ]# modprobe snd-bcm2835
root@testdistro[ ~ ]# lsmod
Module                  Size  Used by
root@testdistro[ ~ ]# 

58ef23 avatar Nov 11 '13 10:11 58ef23

Did you use the config from bcmrpi_defconfig?

popcornmix avatar Nov 11 '13 10:11 popcornmix

Yes @popcornmix

58ef23 avatar Nov 11 '13 12:11 58ef23

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

popcornmix avatar Nov 11 '13 13:11 popcornmix

Im not using raspbian .

58ef23 avatar Nov 11 '13 13:11 58ef23

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.

popcornmix avatar Nov 15 '13 15:11 popcornmix

Closing issue since there has been no activity for more than 2 months. Reopen if needed.

popcornmix avatar Dec 29 '14 20:12 popcornmix