LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-22-2004, 10:21 PM   #1
xround
Member
 
Registered: Oct 2003
Location: France
Distribution: RH9
Posts: 84

Rep: Reputation: 15
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

.....
 
Old 01-23-2004, 01:37 AM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
You need to install the kernel source rpm that matches your running kernel.
 
Old 01-23-2004, 02:00 PM   #3
xround
Member
 
Registered: Oct 2003
Location: France
Distribution: RH9
Posts: 84

Original Poster
Rep: Reputation: 15
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.
 
Old 01-23-2004, 03:42 PM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Do "man ifconfig" and "man route", and read up on those two commands.
 
Old 08-10-2004, 10:23 AM   #5
xround
Member
 
Registered: Oct 2003
Location: France
Distribution: RH9
Posts: 84

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE 9.1 on Dell Inspiron 5150? glsen_az Linux - Laptop and Netbook 2 09-27-2004 10:09 PM
Dell Inspiron 5150 Modem saklay Linux - Laptop and Netbook 47 08-08-2004 09:21 PM
Inspiron 5150 - No Modem Found JustMe5551212 Linux - Laptop and Netbook 0 12-22-2003 11:08 AM
RedHat 9 on an Inspiron 5150 darthczyz Linux - Networking 2 12-17-2003 09:35 AM
RH9.0 on Dell Inspiron 5150 TCDnewbie Linux - Laptop and Netbook 3 10-08-2003 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration