Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 09 November 2024, 07:50:14 am

Login with username, password and session length

Download the latest community FREE version  HERE
14250 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  Hardware Support
| | |-+  Broadcom Issue
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Broadcom Issue  (Read 20283 times)
kurodachi
Jr. Member
*
Offline Offline

Posts: 3


« on: Thursday 28 October 2010, 02:42:07 am »

Hi everyone, I installed the Endian Community ISO in a new machine, it comes with the latest broadcom ethernet card, so I downloaded all the development files, installed them and then download the sources of the Broadcom from the page.

When I do
Code:
rpmbuild -bb SPECS/tg3.spec
everything goes without trouble, I don't have any failure signal.

The problem comes when Endian starts to load the module, it comes with the next message:

Code:
FATAL: Error inserting tg3 (/lib/modules/2.6.27.19-72.e25/updates/tg3.ko): Invalid module format

If I try to make the module from the source I receive the next message:

Quote
make -C /lib/modules/2.6.27.19-72.e25/build SUBDIRS=/root/tg3-3.110g modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.19-72.e25-PAE-i686'
  CC [M]  /root/tg3-3.110g/tg3.o
In file included from /root/tg3-3.110g/tg3.h:13,
                 from /root/tg3-3.110g/tg3.c:94:
/root/tg3-3.110g/tg3_compat.h:50: error: conflicting types for ‘bool’
include/linux/types.h:33: error: previous declaration of ‘bool’ was here
/root/tg3-3.110g/tg3_compat.h:56: error: redefinition of typedef ‘__le32’
include/linux/types.h:182: error: previous declaration of ‘__le32’ was here
/root/tg3-3.110g/tg3_compat.h:57: error: redefinition of typedef ‘__be32’
include/linux/types.h:183: error: previous declaration of ‘__be32’ was here
/root/tg3-3.110g/tg3_compat.h:61: error: conflicting types for ‘resource_size_t’
include/linux/types.h:195: error: previous declaration of ‘resource_size_t’ was here
/root/tg3-3.110g/tg3_compat.h:87: error: conflicting types for ‘kzalloc’
include/linux/slab.h:276: error: previous definition of ‘kzalloc’ was here
/root/tg3-3.110g/tg3_compat.h:110: 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
/root/tg3-3.110g/tg3_compat.h:123: 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
/root/tg3-3.110g/tg3_compat.h:138: 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
/root/tg3-3.110g/tg3_compat.h:174: error: static declaration of ‘msleep’ follows non-static declaration
include/linux/delay.h:46: error: previous declaration of ‘msleep’ was here
/root/tg3-3.110g/tg3_compat.h:186: error: static declaration of ‘msleep_interruptible’ follows non-static declaration
include/linux/delay.h:47: error: previous declaration of ‘msleep_interruptible’ was here
/root/tg3-3.110g/tg3_compat.h:514: error: static declaration of ‘pci_choose_state’ follows non-static declaration
include/linux/pci.h:648: error: previous declaration of ‘pci_choose_state’ was here
/root/tg3-3.110g/tg3_compat.h: In function ‘pci_choose_state’:
/root/tg3-3.110g/tg3_compat.h:515: error: incompatible types in return
/root/tg3-3.110g/tg3_compat.h: At top level:
/root/tg3-3.110g/tg3_compat.h:521: error: conflicting types for ‘pci_pme_capable’
include/linux/pci.h:649: error: previous declaration of ‘pci_pme_capable’ was here
/root/tg3-3.110g/tg3_compat.h:540: error: static declaration of ‘pci_enable_wake’ follows non-static declaration
include/linux/pci.h:651: error: previous declaration of ‘pci_enable_wake’ was here
/root/tg3-3.110g/tg3_compat.h:566: error: static declaration of ‘pci_set_power_state’ follows non-static declaration
include/linux/pci.h:647: error: previous declaration of ‘pci_set_power_state’ was here
/root/tg3-3.110g/tg3_compat.h:639: error: static declaration of ‘pcie_set_readrq’ follows non-static declaration
include/linux/pci.h:634: error: previous declaration of ‘pcie_set_readrq’ was here
/root/tg3-3.110g/tg3_compat.h:867: error: static declaration of ‘print_mac’ follows non-static declaration
include/linux/if_ether.h:132: error: previous declaration of ‘print_mac’ was here
/root/tg3-3.110g/tg3_compat.h:934: error: redefinition of ‘skb_transport_offset’
include/linux/skbuff.h:1079: error: previous definition of ‘skb_transport_offset’ was here
/root/tg3-3.110g/tg3_compat.h: In function ‘skb_transport_offset’:
/root/tg3-3.110g/tg3_compat.h:935: error: ‘const struct sk_buff’ has no member named ‘h’
/root/tg3-3.110g/tg3_compat.h: At top level:
/root/tg3-3.110g/tg3_compat.h:941: error: redefinition of ‘ip_hdr’
include/linux/ip.h:111: error: previous definition of ‘ip_hdr’ was here
/root/tg3-3.110g/tg3_compat.h: In function ‘ip_hdr’:
/root/tg3-3.110g/tg3_compat.h:942: error: ‘const struct sk_buff’ has no member named ‘nh’
/root/tg3-3.110g/tg3_compat.h: At top level:
/root/tg3-3.110g/tg3_compat.h:948: error: redefinition of ‘ip_hdrlen’
include/net/ip.h:48: error: previous definition of ‘ip_hdrlen’ was here
/root/tg3-3.110g/tg3_compat.h:955: error: redefinition of ‘tcp_hdr’
include/linux/tcp.h:182: error: previous definition of ‘tcp_hdr’ was here
/root/tg3-3.110g/tg3_compat.h: In function ‘tcp_hdr’:
/root/tg3-3.110g/tg3_compat.h:956: error: ‘const struct sk_buff’ has no member named ‘h’
/root/tg3-3.110g/tg3_compat.h: At top level:
/root/tg3-3.110g/tg3_compat.h:962: error: redefinition of ‘tcp_optlen’
include/linux/tcp.h:192: error: previous definition of ‘tcp_optlen’ was here
/root/tg3-3.110g/tg3_compat.h:1196: error: redefinition of ‘skb_copy_from_linear_data’
include/linux/skbuff.h:1508: error: previous definition of ‘skb_copy_from_linear_data’ was here
/root/tg3-3.110g/tg3_compat.h:1264: error: redefinition of ‘netif_tx_lock’
include/linux/netdevice.h:1519: error: previous definition of ‘netif_tx_lock’ was here
/root/tg3-3.110g/tg3_compat.h: In function ‘netif_tx_lock’:
/root/tg3-3.110g/tg3_compat.h:1265: error: ‘struct net_device’ has no member named ‘xmit_lock’
/root/tg3-3.110g/tg3_compat.h:1266: error: ‘struct net_device’ has no member named ‘xmit_lock_owner’
/root/tg3-3.110g/tg3_compat.h: At top level:
/root/tg3-3.110g/tg3_compat.h:1270: error: redefinition of ‘netif_tx_unlock’
include/linux/netdevice.h:1547: error: previous definition of ‘netif_tx_unlock’ was here
/root/tg3-3.110g/tg3_compat.h: In function ‘netif_tx_unlock’:
/root/tg3-3.110g/tg3_compat.h:1271: error: ‘struct net_device’ has no member named ‘xmit_lock_owner’
/root/tg3-3.110g/tg3_compat.h:1272: error: ‘struct net_device’ has no member named ‘xmit_lock’
/root/tg3-3.110g/tg3.c: In function ‘tg3_napi_disable’:
/root/tg3-3.110g/tg3.c:806: error: implicit declaration of function ‘netif_poll_disable’
/root/tg3-3.110g/tg3.c: In function ‘tg3_napi_enable’:
/root/tg3-3.110g/tg3.c:818: error: implicit declaration of function ‘netif_poll_enable’
/root/tg3-3.110g/tg3.c: In function ‘tg3_rx’:
/root/tg3-3.110g/tg3.c:5175: error: too few arguments to function ‘netif_rx_schedule’
/root/tg3-3.110g/tg3.c: In function ‘tg3_poll’:
/root/tg3-3.110g/tg3.c:5502: error: too few arguments to function ‘netif_rx_complete’
/root/tg3-3.110g/tg3.c:5516: error: ‘struct net_device’ has no member named ‘quota’
/root/tg3-3.110g/tg3.c:5517: error: ‘struct net_device’ has no member named ‘quota’
/root/tg3-3.110g/tg3.c:5522: error: ‘struct net_device’ has no member named ‘quota’
/root/tg3-3.110g/tg3.c:5534: error: too few arguments to function ‘netif_rx_complete’
/root/tg3-3.110g/tg3.c: In function ‘tg3_msi_1shot’:
/root/tg3-3.110g/tg3.c:5601: error: too few arguments to function ‘netif_rx_schedule’
/root/tg3-3.110g/tg3.c: In function ‘tg3_msi’:
/root/tg3-3.110g/tg3.c:5631: error: too few arguments to function ‘netif_rx_schedule’
/root/tg3-3.110g/tg3.c: In function ‘tg3_interrupt’:
/root/tg3-3.110g/tg3.c:5677: error: too few arguments to function ‘netif_rx_schedule’
/root/tg3-3.110g/tg3.c: In function ‘tg3_interrupt_tagged’:
/root/tg3-3.110g/tg3.c:5739: error: too few arguments to function ‘netif_rx_schedule’
/root/tg3-3.110g/tg3.c: In function ‘tg3_init_one’:
/root/tg3-3.110g/tg3.c:15363: error: ‘struct net_device’ has no member named ‘poll’
/root/tg3-3.110g/tg3.c:15364: error: ‘struct net_device’ has no member named ‘weight’
make[2]: *** [/root/tg3-3.110g/tg3.o] Error 1
make[1]: *** [_module_/root/tg3-3.110g] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.19-72.e25-PAE-i686'
make: *** [default] Error 2

PD. I downloaded and installed the latest EFW-COMMUNITY-2.4-devel-srpms.tar.gz so I don't know what to do next. Help me please
Logged
kurodachi
Jr. Member
*
Offline Offline

Posts: 3


« Reply #1 on: Thursday 28 October 2010, 10:31:25 am »

I have to thank for all the posts in the forum. I found a way to resolve my issue and the driver is working pretty fine right now.

Thanks to mrkroket I find his post very helpul
Code:
efw-upgrade
smart install kernel-PAE
reboot

thanks to wheelz his post help me to figure out what I configured wrong in my development session

Code:
echo "Installing kernel dev package..."
rpm -Uvh devtools/RPMs/kernel-PAE-devel-2.6.27.19-72.e25.i686.rpm

echo "Creating links..."
ln -s /usr/src/kernels/`uname -r`-`uname -m` /usr/src/linux
ln -s /usr/src/kernels/`uname -r`-`uname -m` /usr/src/endian

echo "Installing additional dev packages..."
rpm -Uvh devtools/RPMs/binutils-2.15.92.0.2-25.endian2.i586.rpm
rpm -Uvh devtools/RPMs/glibc-kernheaders-2.4-9.1.103.EL.endian1.i586.rpm
rpm -Uvh devtools/RPMs/glibc-headers-2.3.4-2.41.endian8.i386.rpm
rpm -Uvh devtools/RPMs/glibc-extras-2.3.4-2.41.endian8.i386.rpm
rpm -Uvh devtools/RPMs/glibc-devel-2.3.4-2.41.endian8.i386.rpm
rpm -Uvh devtools/RPMs/libgomp-4.1.2-14.endian1.i586.rpm
rpm -Uvh devtools/RPMs/gcc4-4.1.2-14.endian1.i586.rpm
rpm -Uvh devtools/RPMs/cpp-3.4.6-10.endian8.i586.rpm
rpm -Uvh devtools/RPMs/gcc-3.4.6-10.endian8.i586.rpm
rpm -Uvh devtools/RPMs/libstdc++-devel-3.4.6-10.endian8.i586.rpm
rpm -Uvh devtools/RPMs/gcc-c++-3.4.6-10.endian8.i586.rpm
rpm -Uvh devtools/RPMs/make-3.81-3.endian0.i586.rpm
rpm -Uvh devtools/SRPMs/kernel-2.6.27.19-72.e25.src.rpm

echo "Setting up paths that vmtools installer expects..."
export CC=/usr/bin/gcc4

Thanks to them finally compile the source was easy. By the way, maybe the forum need a FAQ section where someone like me can check what are the principal tools you need to install in order to compile something in Endian.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.04 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com