Hello,
I cannot install driver for ethernet controller Broadcom 440x on my inspiron 5150. When I attempt to build the driver with tar gzip or rpm package I have the following error before building the "bcm4400.o", using RH9.
"Makefile:18 error Linux kernel source tree not found"
I Don't know what to do, tweaking the Makefile or installing something missing ??
Please help!!
Here is the beginning of the Makefile:
Code:
#!/usr/bin/make
# Makefile for building Linux Broadcom Gigabit ethernet driver as a module.
# $id$
# PREFIX may be set by the RPM build to set the effective root.
PREFIX=
ifeq ($(shell ls /lib/modules/$(shell uname -r)/build > /dev/null 2>&1 && echo build),)
ifeq ($(shell ls /usr/src/linux > /dev/null 2>&1 && echo linux),)
LINUX=
else
LINUX=/usr/src/linux
endif
else
LINUX=/lib/modules/$(shell uname -r)/build
endif
ifeq ($(LINUX),)
$(error Linux kernel source tree not found)
endif
....
And Here are respectively the trees of
1) the /usr/src directory
/usr/src/:
total 8
drwxr-xr-x 2 root root 4096 jan 25 2003 debug
drwxr-xr-x 7 root root 4096 déc 30 20:49 redhat
/usr/src/debug:
total 0
/usr/src/redhat:
total 20
drwxr-xr-x 3 root root 4096 jan 23 04:18 BUILD
drwxr-xr-x 8 root root 4096 déc 30 20:49 RPMS
drwxr-xr-x 2 root root 4096 jan 23 04:12 SOURCES
drwxr-xr-x 2 root root 4096 jan 23 04:12 SPECS
drwxr-xr-x 2 root root 4096 fév 27 2003 SRPMS
/usr/src/redhat/BUILD:
total 4
drwxr-xr-x 2 root root 4096 jan 23 04:25 bcm4400-3.0.7
/usr/src/redhat/BUILD/bcm4400-3.0.7:
total 268
-rw-r--r-- 1 root root 38701 oct 28 19:36 b44.h
-rw-r--r-- 1 root root 64573 oct 28 19:36 b44lm.c
-rw-r--r-- 1 root root 17494 oct 28 19:36 b44lm.h
-rw-r--r-- 1 root root 8474 oct 28 19:36 b44mm.h
-rw-r--r-- 1 root root 10300 oct 28 19:36 b44proc.c
-rw-r--r-- 1 root root 11645 oct 28 19:36 b44queue.h
-rw-r--r-- 1 root root 53199 oct 28 19:36 b44um.c
-rw-r--r-- 1 root root 6047 oct 28 19:36 bcm4400.4
-rw-r--r-- 1 root root 2901 oct 28 19:36 DISTRIB.TXT
-rw-r--r-- 1 root root 15153 oct 28 19:36 LICENSE
-rw-r--r-- 1 root root 3100 oct 28 19:36 Makefile
-rw-r--r-- 1 root root 7988 oct 28 19:36 README.TXT
-rw-r--r-- 1 root root 7313 oct 28 19:36 RELEASE.TXT
/usr/src/redhat/RPMS:
total 24
drwxr-xr-x 2 root root 4096 fév 27 2003 athlon
drwxr-xr-x 2 root root 4096 fév 27 2003 i386
drwxr-xr-x 2 root root 4096 fév 27 2003 i486
drwxr-xr-x 2 root root 4096 fév 27 2003 i586
drwxr-xr-x 2 root root 4096 fév 27 2003 i686
drwxr-xr-x 2 root root 4096 fév 27 2003 noarch
/usr/src/redhat/RPMS/athlon:
total 0
/usr/src/redhat/RPMS/i386:
total 0
/usr/src/redhat/RPMS/i486:
total 0
/usr/src/redhat/RPMS/i586:
total 0
/usr/src/redhat/RPMS/i686:
total 0
/usr/src/redhat/RPMS/noarch:
total 0
/usr/src/redhat/SOURCES:
total 60
-rwxr-xr-x 1 root root 56526 oct 31 23:52 bcm4400-3.0.7.tgz
/usr/src/redhat/SPECS:
total 4
-rwxr-xr-x 1 root root 1850 oct 31 23:51 bcm4400.spec
/usr/src/redhat/SRPMS:
total 0
2) the /lib/modules/2.4.20-8 tree:
total 336
lrwxrwxrwx 1 root root 31 déc 30 20:25 build -> ../.././usr/src/linux-2.4.20-8
drwxr-xr-x 8 root root 4096 déc 30 20:25 kernel
-rw-r--r-- 1 root root 96296 jan 22 02:25 modules.dep
-rw-r--r-- 1 root root 31 jan 22 02:25 modules.generic_string
-rw-r--r-- 1 root root 147 jan 22 02:25 modules.ieee1394map
-rw-r--r-- 1 root root 8257 jan 22 02:25 modules.isapnpmap
-rw-r--r-- 1 root root 29 jan 22 02:25 modules.parportmap
-rw-r--r-- 1 root root 77029 jan 22 02:25 modules.pcimap
-rw-r--r-- 1 root root 24 jan 22 02:25 modules.pnpbiosmap
-rw-r--r-- 1 root root 121825 jan 22 02:25 modules.usbmap
/lib/modules/2.4.20-8/kernel:
total 24
drwxr-xr-x 3 root root 4096 déc 30 20:25 arch
drwxr-xr-x 4 root root 4096 déc 30 20:25 crypto
drwxr-xr-x 26 root root 4096 déc 30 20:25 drivers
drwxr-xr-x 31 root root 4096 déc 30 20:25 fs
drwxr-xr-x 3 root root 4096 déc 30 20:25 lib
drwxr-xr-x 20 root root 4096 déc 30 20:25 net
/lib/modules/2.4.20-8/kernel/arch:
total 4
drwxr-xr-x 3 root root 4096 déc 30 20:25 i386
/lib/modules/2.4.20-8/kernel/arch/i386:
total 4
.....