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

3.10.17 Cannon insmod snd_bcm2835 #426

Closed
58ef23 opened this issue Nov 10, 2013 · 12 comments
Closed

3.10.17 Cannon insmod snd_bcm2835 #426

58ef23 opened this issue Nov 10, 2013 · 12 comments

Comments

@58ef23
Copy link

58ef23 commented Nov 10, 2013

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[ ~ ]# 
@popcornmix
Copy link
Collaborator

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?

@58ef23
Copy link
Author

58ef23 commented Nov 10, 2013

Im rebuilded whole kernel because im make new linux distro.

@popcornmix
Copy link
Collaborator

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

@58ef23
Copy link
Author

58ef23 commented Nov 10, 2013

@popcornmix Same as you.

@popcornmix
Copy link
Collaborator

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

@58ef23
Copy link
Author

58ef23 commented Nov 11, 2013

@popcornmix :

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

@popcornmix
Copy link
Collaborator

Did you use the config from bcmrpi_defconfig?

@58ef23
Copy link
Author

58ef23 commented Nov 11, 2013

Yes @popcornmix

@popcornmix
Copy link
Collaborator

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

@58ef23
Copy link
Author

58ef23 commented Nov 11, 2013

Im not using raspbian .

@popcornmix
Copy link
Collaborator

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
Copy link
Collaborator

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

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

2 participants