Probleme carte réseau Broadcom (module tg3)

Bonjour à tous,

j’ai un gros souci…
j’ai un PC DELL optiplex 380, avec une carte mère intégrant la carte réseau

[quote]tg3-3.105h # lspci | grep -i ethernet
02:00.0 Ethernet controller: Broadcom Corporation Device 1692 (rev 01)[/quote]

j’ai fait une install avec une debian netinst, j’ai téléchargé le module tg3-3.105h , j’ai également installé les sources : linux-source-2.6.26.

Mais impossibl de compiler le module :frowning:

si quelqu’un aurait une solution s’il vous plait, merci.

Pour plus de précision je me suis inspirer de cette méthode : http://tools.akiletour.fr/2009/02/18/compiler-tg3-sur-debian-2618/

message de la compilation : [quote]pacifix tg3-3.105h # make
make -C /lib/modules/2.6.26-2-686/build SUBDIRS=/sictiam/driver/tg3-3.105h modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
CC [M] /sictiam/driver/tg3-3.105h/tg3.o
In file included from /sictiam/driver/tg3-3.105h/tg3.h:13,
from /sictiam/driver/tg3-3.105h/tg3.c:91:
/sictiam/driver/tg3-3.105h/tg3_compat.h:42: error: conflicting types for âboolâ
include/linux/types.h:33: error: previous declaration of âboolâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:48: error: redefinition of typedef â__le32â
include/linux/types.h:182: error: previous declaration of â__le32â was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:49: error: redefinition of typedef â__be32â
include/linux/types.h:183: error: previous declaration of â__be32â was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:53: error: conflicting types for âresource_size_tâ
include/linux/types.h:197: error: previous declaration of âresource_size_tâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:79: error: conflicting types for âkzallocâ
include/linux/slab.h:275: error: previous definition of âkzallocâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:102: error: static declaration of âjiffies_to_usecsâ follows non-static declaration
include/linux/jiffies.h:287: error: previous declaration of âjiffies_to_usecsâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:115: error: static declaration of âusecs_to_jiffiesâ follows non-static declaration
include/linux/jiffies.h:289: error: previous declaration of âusecs_to_jiffiesâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:130: error: static declaration of âmsecs_to_jiffiesâ follows non-static declaration
include/linux/jiffies.h:288: error: previous declaration of âmsecs_to_jiffiesâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:166: error: static declaration of âmsleepâ follows non-static declaration
include/linux/delay.h:45: error: previous declaration of âmsleepâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:178: error: static declaration of âmsleep_interruptibleâ follows non-static declaration
include/linux/delay.h:46: error: previous declaration of âmsleep_interruptibleâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:447: error: static declaration of âpci_choose_stateâ follows non-static declaration
include/linux/pci.h:619: error: previous declaration of âpci_choose_stateâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function âpci_choose_stateâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:448: error: incompatible types in return
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:473: error: static declaration of âpci_enable_wakeâ follows non-static declaration
include/linux/pci.h:620: error: previous declaration of âpci_enable_wakeâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:499: error: static declaration of âpci_set_power_stateâ follows non-static declaration
include/linux/pci.h:618: error: previous declaration of âpci_set_power_stateâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:572: error: static declaration of âpcie_set_readrqâ follows non-static declaration
include/linux/pci.h:605: error: previous declaration of âpcie_set_readrqâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:685: error: static declaration of âprint_macâ follows non-static declaration
include/linux/if_ether.h:132: error: previous declaration of âprint_macâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:752: error: redefinition of âskb_transport_offsetâ
include/linux/skbuff.h:1056: error: previous definition of âskb_transport_offsetâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function âskb_transport_offsetâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:753: error: âconst struct sk_buffâ has no member named âhâ
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:759: error: redefinition of âip_hdrâ
include/linux/ip.h:111: error: previous definition of âip_hdrâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function âip_hdrâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:760: error: âconst struct sk_buffâ has no member named ânhâ
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:766: error: redefinition of âip_hdrlenâ
include/net/ip.h:48: error: previous definition of âip_hdrlenâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:773: error: redefinition of âtcp_hdrâ
include/linux/tcp.h:182: error: previous definition of âtcp_hdrâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function âtcp_hdrâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:774: error: âconst struct sk_buffâ has no member named âhâ
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:780: error: redefinition of âtcp_optlenâ
include/linux/tcp.h:192: error: previous definition of âtcp_optlenâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:1014: error: redefinition of âskb_copy_from_linear_dataâ
include/linux/skbuff.h:1481: error: previous definition of âskb_copy_from_linear_dataâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h:1025: error: redefinition of ânetif_tx_lockâ
include/linux/netdevice.h:1410: error: previous definition of ânetif_tx_lockâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function ânetif_tx_lockâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:1026: error: âstruct net_deviceâ has no member named âxmit_lockâ
/sictiam/driver/tg3-3.105h/tg3_compat.h: At top level:
/sictiam/driver/tg3-3.105h/tg3_compat.h:1031: error: redefinition of ânetif_tx_unlockâ
include/linux/netdevice.h:1429: error: previous definition of ânetif_tx_unlockâ was here
/sictiam/driver/tg3-3.105h/tg3_compat.h: In function ânetif_tx_unlockâ:
/sictiam/driver/tg3-3.105h/tg3_compat.h:1033: error: âstruct net_deviceâ has no member named âxmit_lockâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_napi_disableâ:
/sictiam/driver/tg3-3.105h/tg3.c:767: error: implicit declaration of function ânetif_poll_disableâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_napi_enableâ:
/sictiam/driver/tg3-3.105h/tg3.c:779: error: implicit declaration of function ânetif_poll_enableâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_rxâ:
/sictiam/driver/tg3-3.105h/tg3.c:5072: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_pollâ:
/sictiam/driver/tg3-3.105h/tg3.c:5408: error: too few arguments to function ânetif_rx_completeâ
/sictiam/driver/tg3-3.105h/tg3.c:5422: error: âstruct net_deviceâ has no member named âquotaâ
/sictiam/driver/tg3-3.105h/tg3.c:5423: error: âstruct net_deviceâ has no member named âquotaâ
/sictiam/driver/tg3-3.105h/tg3.c:5428: error: âstruct net_deviceâ has no member named âquotaâ
/sictiam/driver/tg3-3.105h/tg3.c:5440: error: too few arguments to function ânetif_rx_completeâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_msi_1shotâ:
/sictiam/driver/tg3-3.105h/tg3.c:5507: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_msiâ:
/sictiam/driver/tg3-3.105h/tg3.c:5537: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_interruptâ:
/sictiam/driver/tg3-3.105h/tg3.c:5583: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_interrupt_taggedâ:
/sictiam/driver/tg3-3.105h/tg3.c:5645: error: too few arguments to function ânetif_rx_scheduleâ
/sictiam/driver/tg3-3.105h/tg3.c: In function âtg3_init_oneâ:
/sictiam/driver/tg3-3.105h/tg3.c:15551: error: âstruct net_deviceâ has no member named âpollâ
/sictiam/driver/tg3-3.105h/tg3.c:15552: error: âstruct net_deviceâ has no member named âweightâ
make[2]: *** [/sictiam/driver/tg3-3.105h/tg3.o] Erreur 1
make[1]: *** [module/sictiam/driver/tg3-3.105h] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
make: *** [default] Erreur 2
[/quote]

Salut,

Tu veux dire que pendant l’installation ta carte fonctionnait pour télécharger tous les paquets nécessaires (plus de 800 en général) et qu’après l’installation elle ne fonctionnait plus ?

non, désolé je n’ai pas été assez précis…
la machine me servira de proxy et de filtre web (squid, squidguard…)
J’ai donc rajouter une carte réseau realtek en PCI qui marche nickel mais pour la seconde, j’ai ce soucis…

Salut

Tu veux absolument installer cette version ?
Je ne sais pas sur quelle version/distro tu es (lenny, squeeze, sid), mais sur ma sid (noyau 2.6.32-3-686), j’ai un module tg3 dispo, qu’il suffit de charger avec modprobe :

:~$ sudo modinfo tg3
filename:       /lib/modules/2.6.32-3-686/kernel/drivers/net/tg3.ko
firmware:       tigon/tg3_tso5.bin
firmware:       tigon/tg3_tso.bin
firmware:       tigon/tg3.bin
version:        3.102
license:        GPL
description:    Broadcom Tigon3 ethernet driver
author:         David S. Miller (davem@redhat.com) and Jeff Garzik (jgarzik@pobox.com)
srcversion:     0BB615007B74CB5682894D1

Ca peut suffire a faire marcher ta carte ?

Voici ma version : Debian GNU/Linux 5.0.1 _Lenny

Et non je ne veux pas forcement installer cette version, peut importe tant que sa marche…

et voici ce que j’obtiens avec modinfo :

[quote] #modinfo tg3
filename: /lib/modules/2.6.26-2-686/kernel/drivers/net/tg3.ko
version: 3.92.1
license: GPL
description: Broadcom Tigon3 ethernet driver
author: David S. Miller (jgarzik@pobox.com)
srcversion: 459CB79E8E79EC628290703
alias: pci:v0000106Bd00001645svsdbcsci*
alias: pci:v0000173Bd000003EAsvsdbcsci*
alias: pci:v0000173Bd000003EBsvsdbcsci*
alias: pci:v0000173Bd000003E9svsdbcsci*
alias: pci:v0000173Bd000003E8svsdbcsci*
alias: pci:v00001148d00004500svsdbcsci*
alias: pci:v00001148d00004400svsdbcsci*
alias: pci:v000014E4d00001680svsdbcsci*
alias: pci:v000014E4d00001681svsdbcsci*
alias: pci:v000014E4d0000165Bsvsdbcsci*
alias: pci:v000014E4d00001684svsdbcsci*
alias: pci:v000014E4d00001698svsdbcsci*
alias: pci:v000014E4d00001713svsdbcsci*
alias: pci:v000014E4d00001712svsdbcsci*
alias: pci:v000014E4d000016DDsvsdbcsci*
alias: pci:v000014E4d0000166Bsvsdbcsci*
alias: pci:v000014E4d0000166Asvsdbcsci*
alias: pci:v000014E4d00001679svsdbcsci*
alias: pci:v000014E4d00001678svsdbcsci*
alias: pci:v000014E4d00001669svsdbcsci*
alias: pci:v000014E4d00001668svsdbcsci*
alias: pci:v000014E4d0000167Fsvsdbcsci*
alias: pci:v000014E4d00001693svsdbcsci*
alias: pci:v000014E4d0000169Bsvsdbcsci*
alias: pci:v000014E4d0000169Asvsdbcsci*
alias: pci:v000014E4d00001674svsdbcsci*
alias: pci:v000014E4d00001673svsdbcsci*
alias: pci:v000014E4d0000167Bsvsdbcsci*
alias: pci:v000014E4d00001672svsdbcsci*
alias: pci:v000014E4d0000167Asvsdbcsci*
alias: pci:v000014E4d000016FEsvsdbcsci*
alias: pci:v000014E4d000016FDsvsdbcsci*
alias: pci:v000014E4d000016F7svsdbcsci*
alias: pci:v000014E4d00001601svsdbcsci*
alias: pci:v000014E4d00001600svsdbcsci*
alias: pci:v000014E4d0000167Esvsdbcsci*
alias: pci:v000014E4d0000167Dsvsdbcsci*
alias: pci:v000014E4d0000167Csvsdbcsci*
alias: pci:v000014E4d00001677svsdbcsci*
alias: pci:v000014E4d00001676svsdbcsci*
alias: pci:v000014E4d0000165Asvsdbcsci*
alias: pci:v000014E4d00001659svsdbcsci*
alias: pci:v000014E4d00001658svsdbcsci*
alias: pci:v000014E4d0000166Esvsdbcsci*
alias: pci:v000014E4d00001649svsdbcsci*
alias: pci:v000014E4d0000170Esvsdbcsci*
alias: pci:v000014E4d0000170Dsvsdbcsci*
alias: pci:v000014E4d0000169Dsvsdbcsci*
alias: pci:v000014E4d0000169Csvsdbcsci*
alias: pci:v000014E4d00001696svsdbcsci*
alias: pci:v000014E4d000016C7svsdbcsci*
alias: pci:v000014E4d000016C6svsdbcsci*
alias: pci:v000014E4d000016A8svsdbcsci*
alias: pci:v000014E4d000016A7svsdbcsci*
alias: pci:v000014E4d000016A6svsdbcsci*
alias: pci:v000014E4d0000165Esvsdbcsci*
alias: pci:v000014E4d0000165Dsvsdbcsci*
alias: pci:v000014E4d00001654svsdbcsci*
alias: pci:v000014E4d00001653svsdbcsci*
alias: pci:v000014E4d0000164Dsvsdbcsci*
alias: pci:v000014E4d00001648svsdbcsci*
alias: pci:v000014E4d00001647svsdbcsci*
alias: pci:v000014E4d00001646svsdbcsci*
alias: pci:v000014E4d00001645svsdbcsci*
alias: pci:v000014E4d00001644svsdbcsci*
depends:
vermagic: 2.6.26-2-686 SMP mod_unload modversions 686
parm: tg3_debug:Tigon3 bitmapped debugging message enable value (int)[/quote]

Plus d’info…

j’ai rajouter tg3 dans /etc/modules,

[quote] modprobe -l | grep tg3
/lib/modules/2.6.26-2-686/kernel/drivers/net/tg3.ko[/quote]

mais toujours pas de deuxieme carte réseaux dans :
/etc/udev/rules.d/70-persistent-net.rules

Ok, tu peux donc essayer de charger ce module là puisqu’il est dispo, avec en root :

modprobe tg3

puis un toujours sous root :

lsmod|grep tg3

pour vérifier qu’il est bien chargé.

Puis tu regardes si ta carte Ethernet fonctionne, après un redémarrage de la machine éventuellement.

après un redémarrage toujours rien…

Est ce que tu as le paquet firmware-linux-nonfree installé ?
Je vois qu’il contient des bouts de codes pour les cartes Broadcom.

non je l’ai pas.

Je peux le rajouter comment stp?

Tu peux regarder dans ton gestionnaire de paquet. Mais comme tu es en Lenny, je ne sais pas si tu vas le voir…

De plus j’ai un doute car sur le site de broadcom :
1692 = Netlink = BMC57780, qui n’apparait pas dans la liste des firmware inclus dans ce paquet. :neutral_face:

On n’est peut être pas sur la bonne piste…

bon ok merci à tous en tout cas,…
je crois que je vais opter pour la simplicité je vais encore rajouter une carte réseau supplémentaire…

A plus tard ,

même soucis avec une BCM5709…
le pacquet du firmware est downloadable sur le ftp debian fr. tu ajoutes
nano /etc/apt/sources.list

pis un

apt-update

pis un

apt-get install firmware-tg3[?suite inconnue?]

si ca marche pour toi c bien…

ok je vais essayer, merci

avec un kernel plus récent tu peux regarder si cette solution au bug #553024 fonctionne pour toi :

The workaround is to do this:
add tg3 to /etc/modprobe.d/blacklist
run update-initramfs to copy that into the initramfs to prevent early
loading of tg3.
Add tg3 to /etc/modules so it gets explicitly loaded later
Add /etc/modprobe.d/tg3.conf containing:
install tg3 /sbin/modprobe broadcom; /sbin/modprobe --ignore-install tg3

Voir :
bugs.debian.org/cgi-bin/bugrepor … g=553024#5

Perso, j’ai tous les dépôts activés (stable, testing unstable, main, non free, contrib…) et les seules traces de firmware Broadcom, je les trouve dans firmware-linux-nonfree :open_mouth:

Tu es sur du nom de ton paquet firmware-tg3-xxx :question:

je n’ai pas trouver le paquet firmware-tg3…

j’ai sa mais sa ne marche pas non plus, moi c’est une Netlink et pas NetXtreme :

[quote]apt-cache search firmware | grep Broadcom
firmware-bnx2 - Binary firmware for Broadcom NetXtremeII
firmware-bnx2x - Binary firmware for Broadcom NetXtremeII 10Gb
[/quote]

bha non moi c’est “firmware-bnx2_0.14+lenny2_all” alors le tiens je ne sait pas.
pour info j’ai aussi téléchargé le driver de chez broadcom… mais il est prévu pour la SUSE…alors ca morche po pak y va pas chercher les sources au bon endrois…

moi mon lspci marche bien
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)

lsmod:
bnx2 53544 0 <- je ne sais pas a quoi ca correspond
button 6096 0
firmware_class 6816 1 bnx2 <-c’est depuis l’ajout du module dans “/etc/modules”

modinfo bnx2:
filename: /lib/modules/2.6.26-2-686/kernel/drivers/net/bnx2.ko
firmware: bnx2-09-4.0.5.fw
firmware: bnx2-06-4.0.5.fw
version: 1.7.5
license: GPL
description: Broadcom NetXtreme II BCM5706/5708 Driver
author: Michael Chan mchan@broadcom.com
srcversion: AA4F7411285F32C5C55775A
alias: pci:v000014E4d0000163Asvsdbcsci*
alias: pci:v000014E4d00001639svsdbcsci*
alias: pci:v000014E4d000016ACsvsdbcsci*
alias: pci:v000014E4d000016AAsvsdbcsci*
alias: pci:v000014E4d000016AAsv0000103Csd00003102bcsci*
alias: pci:v000014E4d0000164Csvsdbcsci*
alias: pci:v000014E4d0000164Asvsdbcsci*
alias: pci:v000014E4d0000164Asv0000103Csd00003106bcsci*
alias: pci:v000014E4d0000164Asv0000103Csd00003101bcsci*
depends: firmware_class
vermagic: 2.6.26-2-686 SMP mod_unload modversions 686
parm: disable_msi:Disable Message Signaled Interrupt (MSI) (int)

ca fait 4 ans que j’ai pas touché à mon vieux serveur debian qui a ronronné comme un chat sans besoin de maintenance, et me vla a en faire un tout neuf… j’ai tout perdu du nunux… Bref avec broadcom on est dans la même galère apparement…

oui, c’est pas gagné avec Broadcom et linux…

Pour télécharger les composants de ta carte broadcom…dans synaptic tu tape Brmc43 ainsi que broadcom dtmk et pour finir intel wimax …tu redemarre ton pc et ca devrait fonctionner