LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   probme when building driver broadcom on inspiron 5150 (https://www.linuxquestions.org/questions/linux-hardware-18/probme-when-building-driver-broadcom-on-inspiron-5150-a-137667/)

xround 01-22-2004 10:21 PM

probme when building driver broadcom on inspiron 5150
 
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

.....

Aussie 01-23-2004 01:37 AM

You need to install the kernel source rpm that matches your running kernel.

xround 01-23-2004 02:00 PM

Thanks, aussie. I must admit I didn't read carefully the installation requirements.
This is done now and the Broadcom is now correctly installed.

A problem I would like to solve now is the eventual ability to set multiple configurations for the card. As I would like to connect my laptop to to my desktop so that I get a local network and an internet connection via my desktop, can I configure multiple configurations ? One when I use my laptop alone with a direct internet connection, and one as a computer on a local network ! As I am not an expert, I don't know if I am clear. Let me know!

Thank you, X.

Aussie 01-23-2004 03:42 PM

Do "man ifconfig" and "man route", and read up on those two commands.

xround 08-10-2004 10:23 AM

Hello,

Sorry for the long time without news, I am back again.
Let me recall my config and then the problems!

I have configured an usb connection to internet. Before using usb, I had a connection via ethernet, and I changed in order to install the local network.
Now I have :
Internet via my modem, and my modem is connected to my desktop using an usb port. I have a 3COM network card on my desktop and a broadcom network card on my laptop, and my 2 computers are connected via these cards.

Let me recall that I was using my ethernet card before
I checked, ifconfig and route, and here is what I get:

Code:

# /sbin/ifconfig
eth0      Lien encap:Ethernet  HWaddr 00:07:CB:00:00:FF
          inet adr:82.67.xxx.xxx  Bcast:82.67.xxx.255  Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24453 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19379 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:100
          RX bytes:20827285 (19.8 Mb)  TX bytes:1855815 (1.7 Mb)
 
lo        Lien encap:Boucle locale
          inet adr:127.0.0.1  Masque:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:35461 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35461 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:2238919 (2.1 Mb)  TX bytes:2238919 (2.1 Mb)
# /sbin/route
Table de routage IP du noyau
Destination    Passerelle      Genmask        Indic Metric Ref    Use Iface
82.67.xxx.0    *              255.255.255.0            U        0      0        0 eth0
169.254.0.0    *              255.255.0.0                U        0      0        0 eth0
default        gambetta-2-82-6 0.0.0.0                UG    0      0        0 eth0

What means the address "169.254.0.0" ?

Finally I tried lspci and I found my ethernet card well installed :
Code:

# /sbin/lspci
...
00:03.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:03.1 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:03.2 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:03.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01)
00:03.4 FireWire (IEEE 1394): ALi Corporation M5253 P1394 OHCI 1.1 Controller
00:04.0 Ethernet controller: 3Com Corporation 3c900 Combo 
...

Does anybody know what eth0 mean in "ifconfig" ? Downlaoding a 1MB file, I obtained the following for "ifconfig eth0"

RX bytes:20827285 (20.9 Mb) TX bytes:1855815 (1.7 Mb)

Regarding that test, it seems to correspond with the usb interface.
So how can I configure my ethernet card ? Can somebody help me ?

Cheers, X.


All times are GMT -5. The time now is 05:05 AM.