PDA

View Full Version : Compile new Broadcom 4401 driver



willbrown
09-02-2008, 02:00 PM
Hello all,

I am trying to compile a BCM4401 driver directly from Broadcoms source found here:
http://www.broadcom.com/support/ethernet_nic/4401.php
, as I am having problems with the one in V5..3.1 and terminal servixes
- my note here: http://www.knoppix.net/forum/viewtopic.php?t=29145
The Broadcom readme gives instructions for two installation methods
1- Installing Source RPM Package
2 - Building Driver From TAR File
Following the first instruction set :

rpm -ivh b44-1.00g-1.src.rpm works fine, but
rpmbuild -bb SPECS/b44.spec (after a cd /usr/src/rpm) fails with:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.10500
+ umask 022
+ cd /usr/src/rpm/BUILD
+ cd /usr/src/rpm/BUILD
+ rm -rf b44-1.00g
+ /bin/gzip -dc /usr/src/rpm/SOURCES/b44-1.00g.tar.gz
+ tar -xvvf -
drwxr-xr-x root/root 0 2006-06-07 09:21 b44-1.00g/
-rw-r--r-- root/root 3990 2006-06-07 09:21 b44-1.00g/Makefile
-rw-r--r-- root/root 64037 2006-06-07 09:29 b44-1.00g/b44.c
-rwxr-xr-x root/root 15153 2006-06-07 09:21 b44-1.00g/LICENSE
-rw-r--r-- root/root 23272 2006-06-07 09:21 b44-1.00g/b44.h
-rw-r--r-- root/root 2076 2006-06-07 09:21 b44-1.00g/b44.4
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd b44-1.00g
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.10500
+ umask 022
+ cd /usr/src/rpm/BUILD
+ cd b44-1.00g
+ make
make -C /lib/modules/2.6.24.4/build SUBDIRS=/usr/src/rpm/BUILD/b44-1.00g modules
make[1]: Entering directory `/usr/src/linux-2.6.24'
scripts/Makefile.build:46: *** CFLAGS was changed in "/usr/src/rpm/BUILD/b44-1.0 0g/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/usr/src/rpm/BUILD/b44-1.00g] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24'
make: *** [default] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.10500 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.10500 (%build)


The second method fails in a similar fashion. Any ideas what Error 2 is and what I can do about it?

I have tried booted from DVD and from HDD install via the DVD of V5.3.1

Regards,

Will