[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problema compilando driver rtl8187L en Debian Squeeze desde NetInstall



El 07/04/12 19:34, frederit mogollon escribió:
Buenas noches. Un saludo. Soy nuvo en ésta lista. Explico mi problema:

Tengo un portátil Síragon Canaima NB3050, con procesador Intel Celeron
M430 1,7 GHz, 512 MB de RAM, un HD de 120 GB, tarjeta gráfica VIA
CN700/P4M800, tarjeta ethernet VIA VT6102 y tarjeta Wi-Fi AW-GU700 con
chipset Realtek RTL8187L.

Previa revisión bibliográfica extensa, hice una instalación mínima de
Debian Squeeze con NetInstall desde una unidad USB usando conexión
LAN. Instalé lo necesario para tener un sistema Debian funcional, con
kernel 2.6.32-5-686, con entorno Gnome mínimo y la aplicación "wicd"
como gestor de redes. Todo bien, excepto que al intentar compilar e
instalar el driver "rtl8187L_linux_26.1040.0820.2010.release.tar.gz"
(previamente descargado desde el sitio web oficial de Realtek), me
lanza un error y no puedo proseguir.
Aclaro que mi usuario es fdmogollon, entro desde una terminal de root
y el archivo comprimido del driver lo tengo en la carpeta "Descargas".
A continuación coloco lo que me arroja la terminal durante el proceso:


root@lapfmogollo:/home/fdmogollon# cd
Descargasroot@lapfmogollo:/home/fdmogollon/Descargas# tar -zxvf
rtl8187L_linux_26.1040.0820.2010.release.tar.gz
rtl8187L_linux_26.1040.0820.2010.release/
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/scatterwalk.h
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/rtl_crypto.h
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/cipher.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/compress.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_wx.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/kmap_types.h
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/Makefile
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/digest.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_crypt_tkip.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_crypt_wep.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_softmac.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211.h
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/scatterwalk.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/license
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_module.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_crypt.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_crypt.h
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/tags
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/readme
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_softmac_wx.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/api.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_crypt_ccmp.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/michael_mic.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/internal.h
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/proc.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/aes.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/arc4.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_tx.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/ieee80211_rx.c
rtl8187L_linux_26.1040.0820.2010.release/ieee80211/autoload.c
rtl8187L_linux_26.1040.0820.2010.release/Makefile
rtl8187L_linux_26.1040.0820.2010.release/wlan0down
rtl8187L_linux_26.1040.0820.2010.release/RadioPower.sh
rtl8187L_linux_26.1040.0820.2010.release/ReadMe
rtl8187L_linux_26.1040.0820.2010.release/wlan0up
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/changes
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_dm.c
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8187.h
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_wx.c
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/install
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_pm.c
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/Makefile
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_dm.h
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/license
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_hw.h
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8187_core.c
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8187_led.h
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_93cx6.c
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/readme
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_rtl8225.c
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_wx.h
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/copying
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_rtl8225z2.c
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/authors
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8187_led.c
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_pm.h
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_93cx6.h
rtl8187L_linux_26.1040.0820.2010.release/rtl8187/r8180_rtl8225.h
rtl8187L_linux_26.1040.0820.2010.release/release_note
rtl8187L_linux_26.1040.0820.2010.release/wlan0dhcp
rtl8187L_linux_26.1040.0820.2010.release/wpa1.conf
rtl8187L_linux_26.1040.0820.2010.release/wpa_supplicant-0.5.5.zip
rtl8187L_linux_26.1040.0820.2010.release/ifcfg-wlan0
root@lapfmogollo:/home/fdmogollon/Descargas# cd
rtl8187L_linux_26.1040.0820.2010.release
root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release#
./configure
bash: ./configure: No existe el fichero o el directorio
root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release#


Hasta aquí veo que no encuentra el archivo, y pensé que era porque el
código fuente del driver está dentro de la subcarpeta "rtl8187", así
que voy hasta ese directorio y lo intento de nuevo y obtengo lo
siguiente:


root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187#
./configure
bash: ./configure: No existe el fichero o el directorio
root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187#


Por si me estoy saltando algo, reviso el contenido de un archivo
"ReadMe" que se encuentra dentro de la carpeta descomprimida
"rtl8187L_linux_26.1040.0820.2010.release" y que dice:


Release Date: 2008-12-05, ver 1037
RTL8187L Linux driver version 1037

    --This driver supports RealTek RTL8187L Wireless LAN NIC for
      2.6 kernel:
      Fedora Core 2/3/4/5/6/7, Debian 3.1, Mandrake 10.2/Mandriva 2006,
      SUSE 9.3/10.1/10.2, Gentoo 3.1, etc, Ubuntu8.04/8.10.
      2.4 kernel:
      Redhat 9.2, etc
    - Support Client mode for either infrastructure or adhoc mode
    - Support WEP, WPAPSK and WPA2PSK connection

======================================================================================
                                 Component
======================================================================================
The driver is composed of several parts:
         1. Module source code
            ieee80211
            rtl8187

         2. Script ot build the modules
            Makefile

         3. Script to load/unload modules
            wlan0up
            wlan0down

         4. Script and configuration for DHCP
            wlan0dhcp
            ifcfg-wlan0

	5. Supplicant source code:
	   wpa_supplicant-0.5.5.tar.gz

	6. Example of supplicant configuration file:
	   wpa1.conf

======================================================================================
                                 Installation
======================================================================================
<<Method 1>>
Runing the scripts can finish all operations of building up modules
from the source code, installing driver to the kernel and starting up the nic.
         1. Build up the drivers from the source code
            make

         2. Install the driver to the kernel
            make install
            reboot
	
         3. bring up wlan if nic is not brought up by GUI, such as NetworkManager
            ifconfig wlan0 up
            Note: use ifconfig to check whether wlan0 is brought up and
use iwconfig to
            check your wlan interface name,since it may change wlan0 to
wlan1,etc.

<<Method 2>>
Or only load the driver module to kernel and start up nic.
         1. Build up the drivers from the source code
            make

         2. Load driver module to kernel and start up nic.
            ./wlan0up

            Note: when "insmod: error inserting 'xxxx.ko': -1 File
exists" comes out
                  after run ./wlan0up, please run ./wlan0down first,
then it should
                  be ok..
            Note: If you see the message of "unkown symbol" during ./wlan0up, it
                  is suggested to build driver by<<Method 1>>.


Haciendo lo que entiendo del texto, ordeno "Makefile" ya dentro de la
subcarpeta "rtl8187" y obtengo ésto:


root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187#
Makefile
bash: Makefile: no se encontró la orden
root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187#


Entonces, ordeno "make" y obtengo ésto:


root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187#
make
make -C /lib/modules/3.2.0-0.bpo.2-686-pae/build
M=/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187
CC=gcc modules
make: *** /lib/modules/3.2.0-0.bpo.2-686-pae/build: No existe el
fichero o el directorio.  Alto.
make: *** [modules] Error 2
root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187#


Aquí pensé que era necesario el kernel 3.2.0-0.bpo.2-686-pae, y lo
instalé desde los repositorios squeeze-backports, entonces lo intento
de nuevo y obtengo lo mismo:


root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187#
make
make -C /lib/modules/3.2.0-0.bpo.2-686-pae/build
M=/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187
CC=gcc modules
make: *** /lib/modules/3.2.0-0.bpo.2-686-pae/build: No existe el
fichero o el directorio.  Alto.
make: *** [modules] Error 2
root@lapfmogollo:/home/fdmogollon/Descargas/rtl8187L_linux_26.1040.0820.2010.release/rtl8187#


Ya desde aquí no sé que hacer. He buscado en internet y no encuentro
solución satisfactoria. Hasta leí en un caso que era el archivo del
driver que estaba corrupto. Pero ni idea...
Aclaro también que ésta sería la primera compilación que intento
hacer, y me estoy frustrando... :(

Espero puedan ayudarme, en verdad me gusta GNU/Linux y he probado
Ubuntu, Puppy, Canaima, pero Debian me parece más robusto, estable y
superior.

Gracias de antemano.


Hola.

La verdad es que has hecho todo bien hasta que hiciste el make, no me cuadra que tenga un kernel 3 instalado, eso significa que lo instalaste del backport, en todo caso solo tienes que instalar las cabeceras del kernel para que compile.

Ahora, te comento lo siguiente, no hace mucho me toco instalar un trasto de esos que nombras y se arreglo el problema instalando un kernel mas nuevo que el que trae de serie el squeeze (es decir, mas nuevo que el 2.6.32) porque, si mal no recuerdo, el modulo ya viene soportado y tambien recuerdo que se hace un lio con la tarjeta de vídeo si no le pones un kernel nuevo, asi que me da la impresion que estas trabajando de mas.

Por comentar

Jhosue Rui

--
-----------------------------------------------------------------------
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino HTML, PDF, TXT, CSV o
cualquier otro que no obligue a utilizar un programa de un fabricante
concreto. Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
------------------------------------------------------------------------
usuario linux registrado #387231
http://counter.li.org
------------------------------------------------------------------------


Reply to: