Logo Hardware.com.br
Rodolfo Machado
Rodolfo Mach... Novo Membro Registrado
5 Mensagens 0 Curtidas

Problema compilando driver alsa no Debian

#1 Por Rodolfo Mach... 25/10/2007 - 09:01
Amigos do FórumGdH, esta é minha primeira pergunta no fórum:
tenho uma palca de som nvidea MCP61 que não funciona no Debian 4.0:

# lspci -nn | grep Audio
00:05.0 Audio device [0403]: nVidia Corporation MCP61 High Definition Audio [10de:03f0] (rev a2)

#modprobe -c | egrep '10de.*03f0' não retorna nada.

# dmesg | grep '00:05.0' não retorna nada.

Achei melho baixar a ultima versão do alsa e compilar, porem ao rodar o ./configure:

# ./configure --with-card-options=all
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/rodolfo/tmp/ALSA/alsa-driver-1.0.15
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build...
checking for kernel linux/version.h... no
The file /usr/src/linux/include/linux/version.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

Então eu instalei o kernel-sources no Debian, o apt baixou da internet um arquivo compactado no diretorio /usr/src, eu descompactei e ele criou um diretorio chamado /usr/src/linux- source-2.6.18, então novamente:

# ./configure --with-card-options=all --with-kernel=/usr/src/linux-source-2.6.18

ele continuou dizendo que não acha version.h e autoconf.h, encontrei estes dois arquivos em /usr/include/linux, copiei para /usr/src/linux- source-2.6.18/include/linux e novamente:

# ./configure --with-card-options=all --with-kernel=/usr/src/linux-source-2.6.18
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/rodolfo/tmp/ALSA/alsa-driver-1.0.15
checking cross compile...
checking for directory with kernel source... /usr/src/linux- source-2.6.18
checking for directory with kernel build...
checking for kernel linux/version.h... yes
checking for kernel linux/autoconf.h... yes
checking for kernel version... 2.6.18
checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

*** NO PREDEFINED KERNEL COMPILER IS DETECTED
*** Assuming the same compiler is used with the current system compiler.

*** Please make sure that the same compiler version was used for building kernel.

checking for built-in ALSA... yes
configure: error: You have built-in ALSA in your kernel.

Estou fazendo algo de errado ou é possivel achar o drive para esta placa na internet?
Mike Pacasi
Mike Pacasi Geek Registrado
2.4K Mensagens 94 Curtidas
#2 Por Mike Pacasi
25/10/2007 - 18:37
Rodolfo Machado disse:
Amigos do FórumGdH, esta é minha primeira pergunta no fórum:
tenho uma palca de som nvidea MCP61 que não funciona no Debian 4.0:

# lspci -nn | grep Audio
00:05.0 Audio device [0403]: nVidia Corporation MCP61 High Definition Audio [10de:03f0] (rev a2)

#modprobe -c | egrep '10de.*03f0' não retorna nada.

# dmesg | grep '00:05.0' não retorna nada.

Achei melho baixar a ultima versão do alsa e compilar, porem ...

Estou fazendo algo de errado ou é possivel achar o drive para esta placa na internet?
Acho que ou você faz em upgrade do ALSA e do kernel para a versão "testing" ou "unstable" (1), ou tenta 2, 3 ou 4:

1- Habilitar (ou descomentar) no /etc/apt/sources.list os Repositórios oficiais do Debian testing. Depois fazer um upgrade do kernel e do ALSA:

$ sudo apt-get update
$ sudo apt-get install -t testing linux-image-2.6.22-2-686 #ou *-amd64
Isso deverá instalar uma nova opção de kernel (não irá deletar o seu kernel atual, irá apenas acrescentar mais um kernel nas opções de boot do grub ou do lilo) com os correspondentes novos drivers (módulos) da versão do ALSA correspondente ao Debian Lenny. A partir disso, sua Distro irá se tornar uma "mistura" Debian etch/lenny e você terá que administrar corretamente o APT para não "quebrar" a sua instalação. Mantenha em /etc/apt/apt.conf o "etch" como distro padrão.

Reboot com o novo kernel "lenny", e depois:

$ sudo apt-get install -t testing alsa-base alsa-utils alsa-tools
$ sudo alsaconf
$ sudo alsamixer
2- Você poderia continuar com o etch puro mesmo, e baixar os drivers ALSA para compilá-los como indicado aqui no site ALSA ou aqui no wiki Alsa ("Another unoficial method"). Talvez no seu caso estejam faltando pacotes de desenvolvimento, os headers e o fonte configurado:

$ sudo apt-get update
$ sudo apt-get install gcc build-essential kernel-package libncurses5-dev linux-source-2.6.18 linux-headers-`uname -r`
Não sei se este procedimento funcionaria sobre uma instalação padrão do Debian etch, já que este se baseia em vários kernels pré-compilados e os respectivos kernel-headers (o fonte linux-source-2.6.18 é genérico e comum à todos os pré-compilados). Para compilar o driver alsa, você precisa de ter o source com a mesma configuração (.config) do kernel que você está rodando. Depois dos comandos acima, talvez você consiga isso fazendo:

$ sudo cd /usr/src/linux-2.6.18*
$ sudo cp /boot/config-2.6.18-`uname -r` .config
$ sudo make menuconfig
Se o aplicativo de configuração do kernel abrir OK, então está valendo. Saia salvando. Agora você tem um source com a configuração igual à versão que está rodando em sua máquina. Então pode renomear a pasta do kernel-source genérico para:

$ cd /usr/src
$ sudo mv linux-2.6.18* linux-2.6.18-`uname -r`
Caso isso não funcione, o certo seria fazer como aqui em baixo:

3- Nesta alternativa você baixa o fonte de um kernel Linux recente de www.kernel.org, configura o kernel com suporte a ALSA e "Sound card support", compila e o instala como um pacote Debian. O Kernel sendo moderno (>= 2.6.22.x) vai dar suporte ao ALSA >= 1.0.14.

4- Esta é a alternativa que estou testando no momento: Simplesmente instale o Debian Sidux e pronto (é baseado no Debian Sid).

Flw!
sifion
sifion Membro Senior Registrado
243 Mensagens 12 Curtidas
#3 Por sifion
26/10/2007 - 02:29
o alsa já ta embutido no seu kernel, mas, talvez o módulo da sua placa não esteja ativado... da uma garimpada no google, pra ver se vc acha o nome do módulo q da suporte pra sua placa, ai é só dar o comando (como root)
# modprobe nome_do_módulo
abraço...

ps: eu dei uma fuçada no google, e parece q essa placa de som, é baseada num chipset da intel...
parece q o módulo pra ela é este... snd-hda-intel
então, da um
# modprobe snd-hda-intel

e ve se funciona...

abraço...
Rodolfo Machado
Rodolfo Mach... Novo Membro Registrado
5 Mensagens 0 Curtidas
#4 Por Rodolfo Mach...
26/10/2007 - 13:21
Amigos, a resposta do Mike Pacasi foi correta, na opção 2 que ele mesmo me indicou, instalei os pacotes:

gcc build-essential kernel-package
libncurses5-dev
linux-source-2.6.18
linux-headers-`uname -r`

Bem, não sei quais destes eram realmente essenciais, porque instalei todos de uma vez, depois segui as instruçoes de :http://www.alsa-project.org/main/index.php/Matrix:Module-hda-intel conforme a dica do Mike Pacasi e ai um abraço, compilou, instalou e funciono beleza.Valeu!
© 1999-2024 Hardware.com.br. Todos os direitos reservados.
Imagem do Modal