skypopen: problem loading the custom alsa driver
Thomas wrote: ================= Hi Giovanni, thankx for you replay. I using ubuntu lucid. The alsa-driver make a problem. Alsa is compiled correcly from sources. when i execute the following command: root@freeswitch:/# modprobe snd_dummy WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.32-27-generic-pae/kern el/sound/acore/snd-page-alloc.ko): Unknown symbol in module, or unknown paramete r (see dmesg) WARNING: Error inserting snd_timer (/lib/modules/2.6.32-27-generic-pae/kernel/so und/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dme sg) WARNING: Error inserting snd_pcm (/lib/modules/2.6.32-27-generic-pae/kernel/soun d/acore/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg) FATAL: Error inserting snd_dummy (/lib/modules/2.6.32-27-generic-pae/kernel/soun d/drivers/snd-dummy.ko): Unknown symbol in module, or unknown parameter (see dme sg) i make: depmod -a i reboot the system, the problem is the same. can you looking please? tahkx. ===================== My answer: have you followed strictly the guidelines in the wiki page for compiling and loading the custom snd-dummy? (alsa and drivers are tricky beasts) can you paste here the results in dmesg (/var/log/messages) that are related to that? anyway, seems that you have one of this problems: a) maybe you have not done "make" then (after make) "make install" b) maybe you still have the old sound directory in your /var/lib/modules tree c) maybe you have compiled and installed the alsa mods for a previous kernel version can you report exactly what you have done (and answer the previous questions) ? -giovanni -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
can you paste here the results in dmesg (/var/log/messages) that are related to that? Yes, mdesg:
[ 69.929738] snd: Unknown symbol unregister_sound_special [ 69.930392] snd: Unknown symbol register_sound_special_device [ 69.932477] snd: Unknown symbol sound_class in /var/log/messages Feb 9 13:20:51 freeswitch kernel: [ 69.929738] snd: Unknown symbol unregister_sound_special Feb 9 13:20:51 freeswitch kernel: [ 69.930392] snd: Unknown symbol register_sound_special_device Feb 9 13:20:51 freeswitch kernel: [ 69.932477] snd: Unknown symbol sound_class
anyway, seems that you have one of this problems: a) maybe you have not done "make" then (after make) "make install"
make install has no errors.
b) maybe you still have the old sound directory in your /var/lib/modules tree
root@freeswitch:/usr/src/alsa-driver-1.0.20# ls /var/lib/module* ls: Zugriff auf /var/lib/module* : No such file or directory
c) maybe you have compiled and installed the alsa mods for a previous kernel version
I ehter these commands: apt-get update apt-get -y upgrade dpkg -l |grep alsa "no alsa found" apt-get -y install git-core subversion build-essential \ autoconf automake libtool libncurses5 libncurses5-dev apt-get -y install xvfb libx11-dev xfs xfonts-100dpi xfonts-75dpi \ xfonts-scalable apt-get -y install unixodbc-dev apt-get -y install libtiff4-dev apt-get -y install libogg-dev libvorbis-dev cd /usr/src wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.20.tar.bz2 tar -xjf alsa-driver-1.0.20.tar.bz2 cd alsa-driver-1.0.20 rm -r /lib/modules/`uname -r`/kernel/sound/ ./configure --with-redhat=no \ --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer \ --with-card-options=all make && make install cp /usr/src/freeswitch.git/src/mod/endpoints/mod_skypopen/alsa/dummy.c \ drivers/dummy.c make && make install Alsa is compiled and install corretly. I can.t load the dummydriver module. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Are you using a normal ubuntu installation? I mean, the normal stock kernel that Ubuntu gives you? Do you have done: apt-get install linux-headers-$(uname -r) before to do the alsa things? If not, please delete all the alsa sources directory, decompress the package again, and start from beginning. On Wed, Feb 9, 2011 at 1:45 PM, Thomas Hoellriegel <admin@blindi.net> wrote:
can you paste here the results in dmesg (/var/log/messages) that are related to that?
Yes, mdesg:
[ 69.929738] snd: Unknown symbol unregister_sound_special [ 69.930392] snd: Unknown symbol register_sound_special_device [ 69.932477] snd: Unknown symbol sound_class
in /var/log/messages
Feb 9 13:20:51 freeswitch kernel: [ 69.929738] snd: Unknown symbol unregister_sound_special Feb 9 13:20:51 freeswitch kernel: [ 69.930392] snd: Unknown symbol register_sound_special_device Feb 9 13:20:51 freeswitch kernel: [ 69.932477] snd: Unknown symbol sound_class
anyway, seems that you have one of this problems: a) maybe you have not done "make" then (after make) "make install"
make install has no errors.
b) maybe you still have the old sound directory in your /var/lib/modules tree
root@freeswitch:/usr/src/alsa-driver-1.0.20# ls /var/lib/module* ls: Zugriff auf /var/lib/module* : No such file or directory
c) maybe you have compiled and installed the alsa mods for a previous kernel version
I ehter these commands: apt-get update apt-get -y upgrade dpkg -l |grep alsa "no alsa found" apt-get -y install git-core subversion build-essential \ autoconf automake libtool libncurses5 libncurses5-dev apt-get -y install xvfb libx11-dev xfs xfonts-100dpi xfonts-75dpi \ xfonts-scalable apt-get -y install unixodbc-dev apt-get -y install libtiff4-dev apt-get -y install libogg-dev libvorbis-dev cd /usr/src wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.20.tar.bz2 tar -xjf alsa-driver-1.0.20.tar.bz2 cd alsa-driver-1.0.20 rm -r /lib/modules/`uname -r`/kernel/sound/ ./configure --with-redhat=no \ --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer \ --with-card-options=all make && make install cp /usr/src/freeswitch.git/src/mod/endpoints/mod_skypopen/alsa/dummy.c \ drivers/dummy.c make && make install
Alsa is compiled and install corretly. I can.t load the dummydriver module.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Am 09.02.11 um 14:52 schrieb Giovanni Maruzzelli:
Are you using a normal ubuntu installation? I mean, the normal stock kernel that Ubuntu gives you? I have installed a minimalsystem from debootstrap. ssh is optional installed.
Yes the standradkernel from ubuntu is installed. root@freeswitch:~# uname -a Linux freeswitch 2.6.32-27-generic-pae #49-Ubuntu SMP Thu Dec 2 00:07:52 UTC 201 0 i686 GNU/Linux
Do you have done: apt-get install linux-headers-$(uname -r) yes: the output: root@freeswitch:~# dpkg -l |grep -i linux-headers ii linux-headers-2.6.32-27 2.6.32-27.49 Header files related to Linux kernel version ii linux-headers-2.6.32-27-generic-pae 2.6.32-27.49 Linux kernel headers for version 2.6.32
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
please install a normal standard version of Ubuntu server (eg: from downloaded cd). probably with debootstrap you lack something, or in some way it's different. btw, for eg, the kernels installed for "virtual" flavor of kvm in ubuntu, they lack sound support (it's just not compiled. Sound support is an option when you compile the kernel. It has nothing to do with ALSA, but ALSA need it to be loaded). maybe if you repeat your procedure, starting from a bootstrap, make sure you install a kernel with sound support, and that have alsa drivers. Check that you can modprobe snd-dummy before trying to compile and install the new alsa version. If the kernel you install has no alsa drivers installed by default, probably it was compiled without sound support. So, you can for sure compile and install alsa drivers, but they will not be loaded by that kernel, because the kernel itself is compiled without sound support. -giovanni On Wed, Feb 9, 2011 at 3:13 PM, Thomas Hoellriegel <admin@blindi.net> wrote:
Am 09.02.11 um 14:52 schrieb Giovanni Maruzzelli:
Are you using a normal ubuntu installation? I mean, the normal stock kernel that Ubuntu gives you?
I have installed a minimalsystem from debootstrap. ssh is optional installed.
Yes the standradkernel from ubuntu is installed. root@freeswitch:~# uname -a Linux freeswitch 2.6.32-27-generic-pae #49-Ubuntu SMP Thu Dec 2 00:07:52 UTC 201 0 i686 GNU/Linux
Do you have done: apt-get install linux-headers-$(uname -r)
yes: the output: root@freeswitch:~# dpkg -l |grep -i linux-headers ii linux-headers-2.6.32-27 2.6.32-27.49 Header files related to Linux kernel version ii linux-headers-2.6.32-27-generic-pae 2.6.32-27.49 Linux kernel headers for version 2.6.32 --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Am 09.02.11 um 15:26 schrieb Giovanni Maruzzelli:
please install a normal standard version of Ubuntu server (eg: from downloaded cd).
I can.t install from a cd. The server is in a datacenter. I don.t have physical acess. A Recoversystem is available to install a ubuntu plain-system. then the original ubuntu is installed, the alsadriver works, root@freeswitch:~# lsmod |grep snd_dummy snd_dummy 9290 0 snd_pcm 70918 2 snd_dummy,snd_pcm_oss snd 54180 9 snd_dummy,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_ seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device when i delete the driver and install the compiledversion i become these errors. must i compile the alsasource on a newer kernel? --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
maybe I have not understood your last mail. My hint would be: 1) install a plain ubuntu (with the recovery procedure) 2) follow strictly, from the beginning to end, step by step the wiki page particularly, after installing a plain ubuntu, delete (if is still there) the directory with the alsa sources, re-download or re-decompress the package, and do the custom alsa driver procedure from beginning. If still does not works, maybe the system that got installed with the recovery procedure is not a plain ubuntu system. But I hope it will works. -giovanni On Wed, Feb 9, 2011 at 3:48 PM, Thomas Hoellriegel <admin@blindi.net> wrote:
Am 09.02.11 um 15:26 schrieb Giovanni Maruzzelli:
please install a normal standard version of Ubuntu server (eg: from downloaded cd).
I can.t install from a cd. The server is in a datacenter. I don.t have physical acess. A Recoversystem is available to install a ubuntu plain-system. then the original ubuntu is installed, the alsadriver works, root@freeswitch:~# lsmod |grep snd_dummy snd_dummy 9290 0 snd_pcm 70918 2 snd_dummy,snd_pcm_oss snd 54180 9 snd_dummy,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_ seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
when i delete the driver and install the compiledversion i become these errors. must i compile the alsasource on a newer kernel?
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Am 09.02.11 um 16:03 schrieb Giovanni Maruzzelli:
maybe I have not understood your last mail.
I have installed a Debian squeeze, but the problem is the same. then i install alsa from debian original package "apt-get install -y alsa alsa-utils" snd_dummy is loaded successfuly. then i compile alsa from source, the modules are installed, but the module can.t be loadet. Is the alsaversion-source incompatible to the actual 2.6.32 kernels? Is 1.0.20 to old? --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
if you prefer you can do try same procedure with alsa 1.0.23 but was never reported an incompatibility of 1.0.20 with newer kernels. Let us know how it goes -giovanni On Thu, Feb 10, 2011 at 7:29 AM, Thomas Hoellriegel <admin@blindi.net> wrote:
Am 09.02.11 um 16:03 schrieb Giovanni Maruzzelli:
maybe I have not understood your last mail.
I have installed a Debian squeeze, but the problem is the same. then i install alsa from debian original package "apt-get install -y alsa alsa-utils" snd_dummy is loaded successfuly. then i compile alsa from source, the modules are installed, but the module can.t be loadet. Is the alsaversion-source incompatible to the actual 2.6.32 kernels? Is 1.0.20 to old?
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
root@freeswitch:/# modprobe snd_dummy WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.32-27-generic-pae/kern el/sound/acore/snd-page-alloc.ko): Unknown symbol in module, or unknown paramete r (see dmesg) WARNING: Error inserting snd_timer (/lib/modules/2.6.32-27-generic-pae/kernel/so und/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dme sg) WARNING: Error inserting snd_pcm (/lib/modules/2.6.32-27-generic-pae/kernel/soun d/acore/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg) FATAL: Error inserting snd_dummy (/lib/modules/2.6.32-27-generic-pae/kernel/soun d/drivers/snd-dummy.ko): Unknown symbol in module, or unknown parameter (see dme sg)
for me this error sounds like the module was not built against the correct kernel sources. - Thomas
participants (3)
-
Giovanni Maruzzelli
-
Thomas Hoellriegel
-
Thomas Mueller