LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2006, 07:22 AM   #1
mika27
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
Cannot see eth0 on LFS 6.2


I have a xircom 10/100 cardbus but eth0 does not appear when i run ifconfig.

I can see the device when i do lspci and I've compiled network device support in to the kernel.

Code:
-bash-3.1# lspci
...
...
02:00.1 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)

So what gives?
 
Old 09-29-2006, 11:05 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
ifconfig only displays NICs that have been configured. lspci shows NICs that have been installed.

You need to configure your eth0 (assuming LFS does eth0 - not sure what LFS is).

On one system I have 4 NICs but only configured 1 so ifconfig shows only eth0 and lo (the loopback which should always be present).
 
Old 09-29-2006, 12:50 PM   #3
mika27
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the reply. LFS is Linux From Scratch.

How do I configure eth0? I can see the lo interface ok.

(I must say as well that I was doing this on a work laptop so since i'm off for the weekend I won't be able to go back to it until monday.)
 
Old 09-29-2006, 03:59 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
lspci shows the devices detected, not the ones that have drivers loaded. Have you compiled the driver inside the kernel or as module? If as module, try to load it manually. If it's in the kernel, look into the logs /var/log/messages and see if there are any related messages from the last boot (I expect an error).
 
Old 09-29-2006, 04:05 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
OK eating my words. "ifconfig" by itself only shows active interfaces. "ifconfig -a" should show even the unconfigured interfaces.

Anyway "ifconfig" itself is the utility that will configure the interface manually but that may not survive a reboot.

On RedHat and Fedora the config files that will survive a reboot are in /etc/sysconfig/network-scripts (e.g. ifcfg-eth0 for eth0). I don't have this on Debian but I'm using dhcp there so am not sure where one would hardcode the interface. I did find files that contain this information under /sys/class/net/eth1 for my eth1 NIC but am not sure what put that there. It may be ifconfig is sufficient.
 
Old 10-03-2006, 06:41 AM   #6
mika27
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, the driver is compiled inside the kernel. I believe xirc2ps_cs is the correct driver, but it doesn't seem to attach itself to my card. How do I get it to do this?
 
Old 10-03-2006, 02:52 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
When a driver is compiled inside the kernel, it attaches itself to the device at boot (well, closely to that). In your case it means there had been an attempt, but it has failed for some reason. Your /var/log/messages may have the error message. Do you have any messages from that driver inside?
 
Old 10-04-2006, 07:18 AM   #8
mika27
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
I found the following lines in /var/log/kern.log

Code:
kernel: kobject_register failed for xirc2ps_cs (-17)
kernel:  [pg0+270565391/1067361280] init_xirc2ps_cs+0xf/0x13 [xirc2ps_cs]
So I guess this is the problem. Will I have to recompile the driver in to the kernel?
 
Old 10-05-2006, 03:26 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
-17 is EEXIST, what means that the symbol (a good guess: the module) already exits. I don't know why you get such thing when it'scompiled in the kernel, where should be one copy only, but check carefully if versions of everything fit. It may be a good idea to compile the kernel once again, from fresh sources, install everything and then see if it works - some strange linking between differnet versions of the kernel has a chance to result in such an error.
 
Old 10-06-2006, 09:14 AM   #10
mika27
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
I recompiled the kernel from fresh sources but I still can't get it to work. There aren't errors relating to the driver in the logs now either.

This is really frustrating, I spent so much time building my LFS system and now I can't get it networked!!

I am now thinking maybe I'll buy a different PCMCIA card but then I am not sure which one will work. Any suggestions would be welcome.
 
Old 10-06-2006, 02:16 PM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Try compiling the driver as module. See if it changes the behaviour.
 
  


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
LFS question - lack of activity in LFS Forum nykey Slackware 4 06-05-2006 05:54 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS livecd 6.1.1-3 eth0 setup (static ipv4) gregben Linux From Scratch 1 02-14-2006 07:20 AM
Help me ! How to config eth0 on LFS ??? tritong Linux From Scratch 14 12-11-2005 07:34 PM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:47 PM.

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