You are not logged in.

#1 2010-11-18 21:25:27

sudo make sandwich
Member
Registered: 2010-11-18
Posts: 9

[SOLVED] Problem with installing wireless driver (Boradcom)

Hi!
I am trying to install the driver for my wireless card: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02).
And I found this driver: www.broadcom.com/support/ethernet_nic/netlink.php, and I'm trying to follow the instructions included in the README, but when i run make, i get this:

[stian@stian tg3-3.110g]$ make
sh makeflags.sh  > tg3_flags.h
grep: /include/linux/kernel.h: No such file or directory
grep: /include/linux/types.h: No such file or directory
grep: /include/linux/types.h: No such file or directory
grep: /include/linux/types.h: No such file or directory
grep: /include/linux/slab.h: No such file or directory
grep: /include/linux/delay.h: No such file or directory
grep: /include/linux/delay.h: No such file or directory
grep: /include/linux/skbuff.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/pci.h: No such file or directory
grep: /include/linux/if_ether.h: No such file or directory
grep: /include/linux/ethtool.h: No such file or directory
grep: /include/linux/ethtool.h: No such file or directory
grep: /include/linux/ethtool.h: No such file or directory
grep: /include/linux/skbuff.h: No such file or directory
grep: /include/linux/skbuff.h: No such file or directory
grep: /include/linux/ip.h: No such file or directory
grep: /include/net/ip.h: No such file or directory
grep: /include/linux/tcp.h: No such file or directory
grep: /include/linux/tcp.h: No such file or directory
grep: /include/linux/netdevice.h: No such file or directory
awk: cmd. line:1: fatal: cannot open file `/include/linux/netdevice.h' for reading (No such file or directory)
makeflags.sh: line 165: [: too many arguments
grep: /include/linux/netdevice.h: No such file or directory
grep: /include/linux/netdevice.h: No such file or directory
grep: /include/linux/netdevice.h: No such file or directory
grep: /include/linux/etherdevice.h: No such file or directory
grep: /include/linux/netdevice.h: No such file or directory
grep: /include/linux/netdevice.h: No such file or directory
grep: /include/linux/netdevice.h: No such file or directory
grep: /include/linux/if_vlan.h: No such file or directory
make -C  SUBDIRS=/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g modules
make: *** SUBDIRS=/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g: No such file or directory.  Stop.
make: *** [default] Error 2

What does this mean? (Yes I am very new to Arch, and Linux in general, but I want to learn!)

All help is appreciated! smile

Last edited by sudo make sandwich (2010-11-20 20:05:34)

Offline

#2 2010-11-18 21:27:57

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] Problem with installing wireless driver (Boradcom)

Install the package called kernel26-headers

Offline

#3 2010-11-18 21:35:29

sudo make sandwich
Member
Registered: 2010-11-18
Posts: 9

Re: [SOLVED] Problem with installing wireless driver (Boradcom)

Thanks for fast reply! smile

After I installed kernel26-headers, and tried to do 'make' again i got the following:

[stian@stian tg3-3.110g]$ make
make -C /lib/modules/2.6.35-ARCH/build SUBDIRS=/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g modules
make[1]: Entering directory `/usr/src/linux-2.6.35-ARCH'
  CC [M]  /home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.o
In file included from /home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.h:13:0,
                 from /home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:94:
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:50:13: error: conflicting types for 'bool'
include/linux/types.h:34:17: note: previous declaration of 'bool' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:56:13: error: redefinition of typedef '__le32'
include/linux/types.h:170:25: note: previous declaration of '__le32' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:57:13: error: redefinition of typedef '__be32'
include/linux/types.h:171:25: note: previous declaration of '__be32' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:61:23: error: conflicting types for 'resource_size_t'
include/linux/types.h:188:21: note: previous declaration of 'resource_size_t' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:86:21: error: conflicting types for 'kzalloc'
include/linux/slab.h:319:21: note: previous definition of 'kzalloc' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:109:28: error: static declaration of 'jiffies_to_usecs' follows non-static declaration
include/linux/jiffies.h:297:21: note: previous declaration of 'jiffies_to_usecs' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:122:22: error: static declaration of 'usecs_to_jiffies' follows non-static declaration
include/linux/jiffies.h:299:22: note: previous declaration of 'usecs_to_jiffies' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:137:22: error: static declaration of 'msecs_to_jiffies' follows non-static declaration
include/linux/jiffies.h:298:22: note: previous declaration of 'msecs_to_jiffies' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:173:13: error: static declaration of 'msleep' follows non-static declaration
include/linux/delay.h:46:6: note: previous declaration of 'msleep' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:185:22: error: static declaration of 'msleep_interruptible' follows non-static declaration
include/linux/delay.h:47:15: note: previous declaration of 'msleep_interruptible' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:242:22: error: static declaration of 'pci_ioremap_bar' follows non-static declaration
include/linux/pci.h:1373:15: note: previous declaration of 'pci_ioremap_bar' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:504:0: warning: "dma_unmap_addr" redefined
include/linux/dma-mapping.h:221:0: note: this is the location of the previous definition
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:508:0: warning: "dma_unmap_addr_set" redefined
include/linux/dma-mapping.h:222:0: note: this is the location of the previous definition
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:512:27: error: static declaration of 'pci_choose_state' follows non-static declaration
include/linux/pci.h:810:13: note: previous declaration of 'pci_choose_state' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: In function 'pci_choose_state':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:515:2: error: incompatible types when returning type 'pm_message_t' but 'pci_power_t' was expected
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: At top level:
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:520:13: error: conflicting types for 'pci_pme_capable'
include/linux/pci.h:811:6: note: previous declaration of 'pci_pme_capable' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:539:12: error: conflicting types for 'pci_enable_wake'
include/linux/pci.h:821:19: note: previous definition of 'pci_enable_wake' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:565:12: error: static declaration of 'pci_set_power_state' follows non-static declaration
include/linux/pci.h:809:5: note: previous declaration of 'pci_set_power_state' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:638:19: error: static declaration of 'pcie_set_readrq' follows non-static declaration
include/linux/pci.h:791:5: note: previous declaration of 'pcie_set_readrq' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:678:1: error: conflicting types for 'pci_read_vpd'
include/linux/pci.h:838:9: note: previous declaration of 'pci_read_vpd' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:933:19: error: redefinition of 'skb_transport_offset'
include/linux/skbuff.h:1366:19: note: previous definition of 'skb_transport_offset' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: In function 'skb_transport_offset':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:935:19: error: 'const struct sk_buff' has no member named 'h'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: At top level:
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:940:29: error: redefinition of 'ip_hdr'
include/linux/ip.h:110:29: note: previous definition of 'ip_hdr' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: In function 'ip_hdr':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:942:12: error: 'const struct sk_buff' has no member named 'nh'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: At top level:
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:947:28: error: redefinition of 'ip_hdrlen'
include/net/ip.h:47:28: note: previous definition of 'ip_hdrlen' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:954:30: error: redefinition of 'tcp_hdr'
include/linux/tcp.h:213:30: note: previous definition of 'tcp_hdr' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: In function 'tcp_hdr':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:956:12: error: 'const struct sk_buff' has no member named 'h'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: At top level:
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:961:28: error: redefinition of 'tcp_optlen'
include/linux/tcp.h:223:28: note: previous definition of 'tcp_optlen' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1193:20: error: redefinition of 'skb_copy_from_linear_data'
include/linux/skbuff.h:1864:20: note: previous definition of 'skb_copy_from_linear_data' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1202:13: error: redefinition of typedef 'netdev_tx_t'
include/linux/netdevice.h:111:24: note: previous declaration of 'netdev_tx_t' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1263:20: error: redefinition of 'netif_tx_lock'
include/linux/netdevice.h:1944:20: note: previous definition of 'netif_tx_lock' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: In function 'netif_tx_lock':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1265:16: error: 'struct net_device' has no member named 'xmit_lock'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1266:5: error: 'struct net_device' has no member named 'xmit_lock_owner'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: At top level:
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1269:20: error: redefinition of 'netif_tx_unlock'
include/linux/netdevice.h:1972:20: note: previous definition of 'netif_tx_unlock' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: In function 'netif_tx_unlock':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1271:5: error: 'struct net_device' has no member named 'xmit_lock_owner'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1272:18: error: 'struct net_device' has no member named 'xmit_lock'
In file included from /home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.h:13:0,
                 from /home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:94:
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h: At top level:
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1393:8: error: redefinition of 'struct netdev_hw_addr'
include/linux/netdevice.h:222:8: note: originally defined here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1397:0: warning: "netdev_for_each_mc_addr" redefined
include/linux/netdevice.h:254:0: note: this is the location of the previous definition
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:1489:11: error: redefinition of 'mii_resolve_flowctrl_fdx'
include/linux/mii.h:265:18: note: previous definition of 'mii_resolve_flowctrl_fdx' was here
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_napi_disable':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:806:2: error: implicit declaration of function 'netif_poll_disable'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_napi_enable':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:818:2: error: implicit declaration of function 'netif_poll_enable'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_tx':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:4773:6: error: implicit declaration of function 'dma_unmap_addr'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:4773:25: error: 'mapping' undeclared (first use in this function)
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:4773:25: note: each undeclared identifier is reported only once for each function it appears in
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_rx_skb_free':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:4825:48: error: 'mapping' undeclared (first use in this function)
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_alloc_rx_skb':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:4891:2: error: implicit declaration of function 'dma_unmap_addr_set'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_recycle_rx':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:4936:31: error: 'mapping' undeclared (first use in this function)
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_rx':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:5007:34: error: 'mapping' undeclared (first use in this function)
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:5175:4: error: implicit declaration of function 'netif_rx_schedule'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_poll':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:5502:4: error: implicit declaration of function 'netif_rx_complete'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:5516:27: error: 'struct net_device' has no member named 'quota'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:5517:24: error: 'struct net_device' has no member named 'quota'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:5522:9: error: 'struct net_device' has no member named 'quota'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tigon3_dma_hwbug_workaround':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:5993:7: error: 'mapping' undeclared (first use in this function)
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_free_rings':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:6782:27: error: 'mapping' undeclared (first use in this function)
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function '__tg3_set_rx_mode':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:9885:3: error: 'struct net_device' has no member named 'mc_list'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:9885:3: error: dereferencing pointer to incomplete type
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:9885:3: error: dereferencing pointer to incomplete type
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_run_loopback':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:11373:55: error: 'mapping' undeclared (first use in this function)
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tg3_init_one':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:15363:5: error: 'struct net_device' has no member named 'poll'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c:15364:5: error: 'struct net_device' has no member named 'weight'
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'pci_choose_state':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:516:1: warning: control reaches end of non-void function
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'ip_hdr':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:943:1: warning: control reaches end of non-void function
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.c: In function 'tcp_hdr':
/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3_compat.h:957:1: warning: control reaches end of non-void function
make[2]: *** [/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g/tg3.o] Error 1
make[1]: *** [_module_/home/stian/Desktop/Downloads/Server/Linux/Driver/tg3-3.110g] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35-ARCH'
make: *** [default] Error 2

Leaves me blank :S

Offline

#4 2010-11-18 21:35:38

Dogmeat
Member
From: Slovak Republic
Registered: 2009-02-24
Posts: 193

Re: [SOLVED] Problem with installing wireless driver (Boradcom)

1) It's not a wireless card, but an ethernet (wired) one.
2) tg3 module is already present in the arch stock kernel

Just rmmod tg3, then modprobe broadcom and tg3 again and edit MODULES array in /etc/rc.conf.

MODULES=(... broadcom tg3 ...)

Offline

#5 2010-11-18 22:03:32

sudo make sandwich
Member
Registered: 2010-11-18
Posts: 9

Re: [SOLVED] Problem with installing wireless driver (Boradcom)

Hmm, ok. So how do i proceed to get the wireless connection up and running, now?

Offline

#6 2010-11-18 23:33:00

peqmd5
Member
Registered: 2010-11-16
Posts: 1

Re: [SOLVED] Problem with installing wireless driver (Boradcom)

I had a terribly fun time configuring my Broadcom device. This seemed to work pretty well for me https://wiki.archlinux.org/index.php/Netcfg.

Offline

#7 2010-11-19 18:39:21

sudo make sandwich
Member
Registered: 2010-11-18
Posts: 9

Re: [SOLVED] Problem with installing wireless driver (Boradcom)

Thanks, I'll try that!
I have one more question: When I run 'iwconfig' I get the following:

[root@stian stian]# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

Does this mean that I've failed to set up my wireless driver properly?

Offline

#8 2010-11-20 01:50:22

Snowknight
Member
Registered: 2009-06-11
Posts: 55
Website

Re: [SOLVED] Problem with installing wireless driver (Boradcom)

You missed a critical piece of information that Dogmeat posted. This Broadcom chip is not a wireless chip—it's a wired ethernet chip. Post the output of lspci -v here, please.

Offline

#9 2010-11-20 18:41:37

sudo make sandwich
Member
Registered: 2010-11-18
Posts: 9

Re: [SOLVED] Problem with installing wireless driver (Boradcom)

I got it. Just discovered that I have to reset BIOS to 'factory default' each time I boot, to make Arch and 'lspci -vnn | grep 14e4' discover my wireless card, of some strange reason.

EDIT:
Got it up and running now, thanks for all help! Specially Netcfg helped a lot, thanks smile

Last edited by sudo make sandwich (2010-11-20 20:04:40)

Offline

Board footer

Powered by FluxBB