Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

1. Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Anderson
sentiinela

(usa Ubuntu)

Enviado em 30/05/2012 - 12:14h

Boa tarde galera, estou tendo problema para instalar o drive do fabricante da placa de rede http://www.tendacn.com.br/produtos/linha-lan-cards/tel9901g.html. Na verdade a placa foi reconhecia e esta funcionando com os drives do proprio sistema, porem ela esta funcionando em 10/100, e eu preciso dela em 100/1000 pois a rede da empresa é gigalan. Ao tentar executar os comandos do readme os mesmos não funcionam e não sei o que devo fazer (sou principiante em Linux), ai preciso da ajuda de vocês:

Eu uso o Kubuntu 12.0 ts
Kernel 3.2.0-24-generic

ao executar os comando vem os erros:



root@Firewall-Linux:/home/firewall/Linux/drive# ls
_desktop.ini Makefile README src
root@Firewall-Linux:/home/firewall/Linux/drive# make clean modules
make -C src/ clean
make[1]: Entrando no diretório `/home/firewall/Linux/drive/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Saindo do diretório `/home/firewall/Linux/drive/src'
make -C src/ modules
make[1]: Entrando no diretório `/home/firewall/Linux/drive/src'
make -C /lib/modules/3.2.0-24-generic/build SUBDIRS=/home/firewall/Linux/drive/src modules
make[2]: Entrando no diretório `/usr/src/linux-headers-3.2.0-24-generic'
CC [M] /home/firewall/Linux/drive/src/r8169_n.o
/home/firewall/Linux/drive/src/r8169_n.c:404:21: erro: expected ‘)’ before string constant
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_phy_timer_t_handler’:
/home/firewall/Linux/drive/src/r8169_n.c:551:64: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_timer_handler’:
/home/firewall/Linux/drive/src/r8169_n.c:587:64: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_init_board’:
/home/firewall/Linux/drive/src/r8169_n.c:640:2: erro: implicit declaration of function ‘SET_MODULE_OWNER’ [-Werror=implicit-function-declaration]
/home/firewall/Linux/drive/src/r8169_n.c:646:12: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c:750:89: erro: ‘struct pci_dev’ has no member named ‘slot_name’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_init_one’:
/home/firewall/Linux/drive/src/r8169_n.c:797:12: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c:808:5: erro: ‘struct net_device’ has no member named ‘open’
/home/firewall/Linux/drive/src/r8169_n.c:809:5: erro: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/firewall/Linux/drive/src/r8169_n.c:810:5: erro: ‘struct net_device’ has no member named ‘get_stats’
/home/firewall/Linux/drive/src/r8169_n.c:811:5: erro: ‘struct net_device’ has no member named ‘stop’
/home/firewall/Linux/drive/src/r8169_n.c:812:5: erro: ‘struct net_device’ has no member named ‘tx_timeout’
/home/firewall/Linux/drive/src/r8169_n.c:813:5: erro: ‘struct net_device’ has no member named ‘set_multicast_list’
/home/firewall/Linux/drive/src/r8169_n.c:830:12: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_open’:
/home/firewall/Linux/drive/src/r8169_n.c:1029:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c:1041:2: erro: implicit declaration of function ‘request_irq’ [-Werror=implicit-function-declaration]
/home/firewall/Linux/drive/src/r8169_n.c:1041:53: erro: ‘SA_SHIRQ’ undeclared (first use in this function)
/home/firewall/Linux/drive/src/r8169_n.c:1041:53: nota: each undeclared identifier is reported only once for each function it appears in
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_hw_PHY_reset’:
/home/firewall/Linux/drive/src/r8169_n.c:1117:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_hw_PHY_config’:
/home/firewall/Linux/drive/src/r8169_n.c:1145:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_hw_start’:
/home/firewall/Linux/drive/src/r8169_n.c:1219:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_init_ring’:
/home/firewall/Linux/drive/src/r8169_n.c:1302:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c:1342:3: erro: implicit declaration of function ‘pci_dma_sync_single’ [-Werror=implicit-function-declaration]
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_tx_timeout’:
/home/firewall/Linux/drive/src/r8169_n.c:1376:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_start_xmit’:
/home/firewall/Linux/drive/src/r8169_n.c:1409:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_interrupt’:
/home/firewall/Linux/drive/src/r8169_n.c:1643:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_close’:
/home/firewall/Linux/drive/src/r8169_n.c:1703:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c:1730:2: erro: implicit declaration of function ‘synchronize_irq’ [-Werror=implicit-function-declaration]
/home/firewall/Linux/drive/src/r8169_n.c:1732:2: erro: implicit declaration of function ‘free_irq’ [-Werror=implicit-function-declaration]
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_set_rx_mode’:
/home/firewall/Linux/drive/src/r8169_n.c:1805:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c:1818:17: erro: ‘struct net_device’ has no member named ‘mc_count’
/home/firewall/Linux/drive/src/r8169_n.c:1832:27: erro: ‘struct net_device’ has no member named ‘mc_list’
/home/firewall/Linux/drive/src/r8169_n.c:1832:55: erro: ‘struct net_device’ has no member named ‘mc_count’
/home/firewall/Linux/drive/src/r8169_n.c:1832:87: erro: dereferencing pointer to incomplete type
/home/firewall/Linux/drive/src/r8169_n.c:1834:43: erro: dereferencing pointer to incomplete type
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_get_stats’:
/home/firewall/Linux/drive/src/r8169_n.c:1864:36: erro: ‘struct net_device’ has no member named ‘priv’
/home/firewall/Linux/drive/src/r8169_n.c: Na função ‘rtl8169_init_module’:
/home/firewall/Linux/drive/src/r8169_n.c:1893:2: erro: implicit declaration of function ‘pci_module_init’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: ** [/home/firewall/Linux/drive/src/r8169_n.o] Erro 1
make[2]: ** [_module_/home/firewall/Linux/drive/src] Erro 2
make[2]: Saindo do diretório `/usr/src/linux-headers-3.2.0-24-generic'
make[1]: ** [modules] Erro 2
make[1]: Saindo do diretório `/home/firewall/Linux/drive/src'
make: ** [modules] Erro 2
root@Firewall-Linux:/home/firewall/Linux/drive#

root@Firewall-Linux:/home/firewall/Linux/drive# make install
make -C src/ install
make[1]: Entrando no diretório `/home/firewall/Linux/drive/src'
install -m 644 -c r8169.o /lib/modules/3.2.0-24-generic/kernel/drivers/net/
install: impossível obter estado de "r8169.o": Arquivo ou diretório não encontrado
make[1]: ** [install] Erro 1
make[1]: Saindo do diretório `/home/firewall/Linux/drive/src'
make: ** [install] Erro 2
root@Firewall-Linux:/home/firewall/Linux/drive#



root@Firewall-Linux:/home/firewall/Linux/drive# make install
make -C src/ install
make[1]: Entrando no diretório `/home/firewall/Linux/drive/src'
install -m 644 -c r8169.o /lib/modules/3.2.0-24-generic/kernel/drivers/net/
install: impossível obter estado de "r8169.o": Arquivo ou diretório não encontrado
make[1]: ** [install] Erro 1
make[1]: Saindo do diretório `/home/firewall/Linux/drive/src'
make: ** [install] Erro 2
root@Firewall-Linux:/home/firewall/Linux/drive#


Aguardo a ajuda de voces.


  


2. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 30/05/2012 - 12:17h

posta aqui :


lspci -k



3. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 30/05/2012 - 12:37h

Se sua placa tá funcionando normalmente pode usar um dos comandos abaixo, lembrando que os mesmos tem que está instalado:

abaixo estou supondo que sua placa é eth0, mas mude para sua placa.

mii-tool -F 1000baseT-FD eth0


ou


ethtool -s eth0 speed 1000 duplex full autoneg off


veja se está operando em giga:


ethtool eth0



4. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Anderson
sentiinela

(usa Ubuntu)

Enviado em 30/05/2012 - 14:52h

eabreu escreveu:

posta aqui :


lspci -k


root@Firewall-Linux:/etc/squid3# lspci k
Usage: lspci [<switches>]

Basic display modes:
-mm Produce machine-readable output (single -m for an obsolete format)
-t Show bus tree

Display options:
-v Be verbose (-vv for very verbose)
-k Show kernel drivers handling each device
-x Show hex-dump of the standard part of the config space
-xxx Show hex-dump of the whole config space (dangerous; root only)
-xxxx Show hex-dump of the 4096-byte extended config space (root only)
-b Bus-centric view (addresses and IRQ's as seen by the bus)
-D Always show domain numbers

Resolving of device ID's to names:
-n Show numeric ID's
-nn Show both textual and numeric ID's (names & numbers)
-q Query the PCI ID database for unknown ID's via DNS
-qq As above, but re-query locally cached entries
-Q Query the PCI ID database for all ID's via DNS

Selection of devices:
-s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]] Show only devices in selected slots
-d [<vendor>]:[<device>] Show only devices with specified ID's

Other options:
-i <file> Use specified ID database instead of /usr/share/misc/pci.ids.gz
-p <file> Look up kernel modules in a given file instead of default modules.pcimap
-M Enable `bus mapping' mode (dangerous; root only)

PCI access options:
-A <method> Use the specified PCI access method (see `-A help' for a list)
-O <par>=<val> Set PCI access parameter (see `-O help' for a list)
-G Enable PCI access debugging
-H <mode> Use direct hardware access (<mode> = 1 or 2)
-F <file> Read PCI configuration dump from a given file
root@Firewall-Linux:/etc/squid3#



5. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 30/05/2012 - 14:55h

Então amigo,

não é :

 lspci k  
e sim:
 lspci -k  
como descrito no post anterior.

mas é como falei se você tá dizendo que a placa está funcionando normalmente, então tente fazer o que descrevi nos posts anteriores. caso os pacotes dos comandos não estejam instalados instale os mesmos.


6. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Anderson
sentiinela

(usa Ubuntu)

Enviado em 30/05/2012 - 15:06h

eabreu escreveu:

Se sua placa tá funcionando normalmente pode usar um dos comandos abaixo, lembrando que os mesmos tem que está instalado:

abaixo estou supondo que sua placa é eth0, mas mude para sua placa.

mii-tool -F 1000baseT-FD eth0


ou


ethtool -s eth0 speed 1000 duplex full autoneg off


veja se está operando em giga:


ethtool eth0




mii-tool -F 1000baseT-FD eth0 

root@Firewall-Linux:/# mii-tool -F 1000baseT-FD eth2
eth2: negotiated 100baseTx-FD flow-control, link ok
root@Firewall-Linux:/#

ethtool -s eth0 speed 1000 duplex full autoneg off 

root@Firewall-Linux:/# ethtool -s eth2 speed 1000 duplex full autoneg off
Cannot set new settings: Invalid argument
not setting speed
not setting duplex
not setting autoneg
root@Firewall-Linux:/#

ethtool eth0 

root@Firewall-Linux:/# ethtool eth2
Settings for eth2:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
root@Firewall-Linux:/#







7. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 30/05/2012 - 15:20h

posta aqui:


lspci -k



8. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Anderson
sentiinela

(usa Ubuntu)

Enviado em 31/05/2012 - 10:43h

eabreu escreveu:

posta aqui:


lspci -k



firewall@Firewall-Linux:~$ sudo su
[sudo] password for firewall:
root@Firewall-Linux:/home/firewall# lspci -k
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
Subsystem: Giga-byte Technology Device 5000
Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
Subsystem: Giga-byte Technology Device d000
Kernel driver in use: i915
Kernel modules: intelfb, i915
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
Subsystem: Giga-byte Technology Device a002
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
Subsystem: Giga-byte Technology Device 5006
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
Subsystem: Giga-byte Technology Device 5001
Kernel modules: leds-ss4200, iTCO_wdt, intel-rng
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
Subsystem: Giga-byte Technology Device b001
Kernel driver in use: ata_piix
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA Controller [IDE mode] (rev 01)
Subsystem: Giga-byte Technology Device b002
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
Subsystem: Giga-byte Technology GA-8I945PG-RH Mainboard
Kernel modules: i2c-i801
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC
Kernel driver in use: r8169
Kernel modules: r8169
root@Firewall-Linux:/home/firewall#


Realmente eu tinha digitado o comando errado, mas dessa vez eu acertei, desde ja amigo obrigado pelo interee em me ajudar.


9. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/05/2012 - 11:38h

Bom dia amigo,

o driver "r8169" da placa referida abaixo não é o apropriado:

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
Kernel driver in use: r8169
Kernel modules: r8169


a questão essa placa é a offboard ou onboard ? a placa que está tentando fazer trabalhar em gigabit é a onboard ou offboard ?


10. Modulo

André Canhadas
andrecanhadas

(usa Debian)

Enviado em 31/05/2012 - 12:21h

eabreu escreveu:

Bom dia amigo,

o driver "r8169" da placa referida abaixo não é o apropriado:

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
Kernel driver in use: r8169
Kernel modules: r8169


a questão essa placa é a offboard ou onboard ? a placa que está tentando fazer trabalhar em gigabit é a onboard ou offboard ?


Exato o módulo correto para a placa é este:
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&a...

Depois de compilar o novo modulo Vai precisar desativar e colocar o antigo em blacklist.

rmmod r8169
echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf



11. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/05/2012 - 12:30h

andrecanhadas escreveu:

eabreu escreveu:

Bom dia amigo,

o driver "r8169" da placa referida abaixo não é o apropriado:

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
Kernel driver in use: r8169
Kernel modules: r8169


a questão essa placa é a offboard ou onboard ? a placa que está tentando fazer trabalhar em gigabit é a onboard ou offboard ?


Exato o módulo correto para a placa é este:
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&a...

Depois de compilar o novo modulo Vai precisar desativar e colocar o antigo em blacklist.

rmmod r8169
echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf


então amigo andrecanhadas não acho uma boa ideia mandar o driver r8169 para lista negra, até por que ele é usado para outra placa que está descrita no post do amigo que solicitou a ajuda.

porém poderia compilar os módulos das duas placas realtek e instala-los


12. Re: Problema com instalação de Placa e rede 100/1000 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/05/2012 - 12:33h

Boa tarde amigo sentiinela,

você tem certeza que os dispositivos de rede que se comunicam com essa máquina trabalham em gigabit ?

roda o comando abaixo:


ethtool -s eth2 speed 1000


posta a saída do comando abaixo:


ethtool eth2







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts