ArchLinux e compilação de driver.

1. ArchLinux e compilação de driver.

groki
Stinky_F00t

(usa Crunchbang)

Enviado em 31/03/2011 - 22:09h

Bem, fiz há pouco tempo um tópico tentando resolver um problema com minha placa de rede:

http://www.vivaolinux.com.br/topico/ArchLinux/Problemas-com-dispositivos-de-rede-no-Arch/

Pesquisei mais em outros fóruns e falei com outras pessoas também, cheguei a uma possível solucão. Mas para tanto tenho de compilar na mão um driver para instala-lo no Arch. Embora haja um porém... Como eu faço isso no ArchLinux?!
Até agora só compilei pacotes para instalação com o .SlackBuild. Alguém pode me dar uma força?

O driver é este aqui:

http://dl.dropbox.com/u/73347/l1c-linux-v1.0.0.11-for-2.6.30.tar

Valeu!


  


2. Re: ArchLinux e compilação de driver.

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/03/2011 - 22:42h

pra compilar você precisará do base-devel e do kernel26-headers, caso não os tenha instalado será mais difícil.

tá lá no README do pacote, como root rodar os comandos abaixo:

----------------------------------------------------------------------------

Building and Installation
=========================

To build a binary RPM* package of this driver, run 'rpmbuild -tb
<filename.tar.gz>'. Replace <filename.tar.gz> with the specific filename of
the driver.

NOTE: For the build to work properly, the currently running kernel MUST match
the version and configuration of the installed kernel sources. If you
have just recompiled the kernel reboot the system now.

RPM functionality has only been tested in Red Hat distributions.

1. Move the base driver tar file to the directory of your choice. For example,
use /home/username/arl1e or /usr/local/src/arl1e.

2. Untar/unzip archive:

tar zxf arl1e-x.x.x.x.tar.gz

3. Change to the driver src directory:

cd arl1e-x.x.x.x/src/

4. Compile the driver module:

make install

The binary will be installed as:

/lib/modules/<KERNEL VERSION>/kernel/drivers/net/arl1e.[k]o

The install locations listed above are the default locations. They might
not be correct for certain Linux distributions. For more information,
see the ldistrib.txt file included in the driver tar.

5. Install the module:

insmod arl1e <parameter>=<value>

6. Assign an IP address to the interface by entering the following, where
x is the interface number:

ifconfig ethx <IP_address>

7. Verify that the interface works. Enter the following, where <IP_address>
is the IP address for another machine on the same subnet as the interface
that is being tested:

ping <IP_address>

----------------------------------------------------------------------------


SÓ 'make install' nada de ./configure && make && make install

* estou dando uma vasculhada no AUR pra ver se acho algo a respeito dessa placa.

-----------------------------------

ENTÃO:

# tar -zxvf l1c-linux-v1.0.0.11-for-2.6.30.tar.gz
# cd l1c-linux-v1.0.0.11-for-2.6.30/src/
# make install


3. complicado esse drive

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/03/2011 - 23:07h

em http://wireless.kernel.org/en/users/Drivers/

tem alguns drivers para placas Atheros mas nada que se relacione a essa sua: Atheros Communications AR8132 Fast Ethernet (rev c0)

#

mas veja se este post do fórum internacional do Arch lhe ajuda:

https://bbs.archlinux.org/viewtopic.php?pid=728569

diz para baixar isso:

AR81Family Linux Driver : AR81Family-linux-v1.0.1.14.tar.gz

dessa página: http://partner.atheros.com/Drivers.aspx

é descompactar e instalar e seguir os passos expostos no tópico.


* também diz isso:

edit the /etc/rc.conf, prevent atl1c from loading, add atl1e:
MODULES=(!atl1c atl1e)

ou seja, prevenir que o tal módulo 'atlc' seja chamado durante o boot, você faz isso apenas inserindo ! antes do nome.



4. Re: ArchLinux e compilação de driver.

groki
Stinky_F00t

(usa Crunchbang)

Enviado em 31/03/2011 - 23:19h

Vou testar o macete,

valeu Edps!


5. Re: ArchLinux e compilação de driver.

groki
Stinky_F00t

(usa Crunchbang)

Enviado em 01/04/2011 - 01:38h

Acabou que não chega nem a compilar o driver... quando tento dar um 'make install' aparece algo como: "Can't find Kernel Source. Stoped"


Ah sim, e não foi apenas o módulo da placa de rede que sumiu, sumiram quase que TODOS depois da atualização do sistema, conferi isso.


6. Re: ArchLinux e compilação de driver.

Paulo Manoel
pael

(usa openSUSE)

Enviado em 01/04/2011 - 02:49h

sem o kernel-headers e o base-devel não vai mesmo meu chapa :P


7. Re: ArchLinux e compilação de driver.

groki
Stinky_F00t

(usa Crunchbang)

Enviado em 01/04/2011 - 03:23h

Tomei o cuidado de instalar a ambos, marquei o base-devel e também o kernel-headers26.



  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts