LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-14-2005, 05:37 AM   #1
Mr. Asdf
LQ Newbie
 
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27

Rep: Reputation: 15
no eth0 in 'ifconfig' on CRUX 2.1


Hi, I've just installed CRUX 2.1, following the exact instructions in the CRUX Handbook 2.1 found on crux.nu, step by step.
when I got to the Kernel compilation (which is a thing I never did before). I did what I've been told here:

Quote:
Go to /usr/src/linux-2.6.11.7, configure and compile a new kernel.

$ cd /usr/src/linux-2.6.11.7
$ make menuconfig
$ make all
$ make modules_install
$ cp arch/i386/boot/bzImage /vmlinuz
$ cp System.map /

Remember to enable the following kernel options:

Code maturity level options --->[*] Prompt for development and/or incomplete code/drivers

File systems --->
Pseudo filesystems --->[*] /dev file system support[*] Automatically mount at boot
and when `make menuconfig` I was making sure those kernel options were enabled. I made no other changes in the kernel options except enabling ALSA. then when I loaded up CRUX, running `ifconfig` showed only 'lo'. then I tried to compile the kernel again, this time enabling PPP and making sure that Realtek PCI Ethernet Adapter is included there (as a module). again ifconfig only shows lo.
I have no clew what to do, maybe it's because I never compiled a kernel before, maybe because the kernel won't recognize my Ethernet network card, Maybe because I'm not doing what I need to do with the module (but what DO I need to do??... )... I don't know...

anyway, my Network card is "Realtek RTL8139 PCI Fast Ethernet Adapter", kernel version is 2.6.11.7, and Modem is ECI ADSL B-FOCuS 312+ .

any help?

Last edited by Mr. Asdf; 07-14-2005 at 08:41 AM.
 
Old 07-14-2005, 07:45 AM   #2
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
You either need to modprobe the module

Code:
modprobe module-name
or build the module into the kernel
 
Old 07-14-2005, 08:19 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
The module should be called 8139too

so do modprobe 8139too
and dmesg to watch the result..

You will need to look at Crux's documentation to work out how to have it load at boot time.
Usually there is a file /etc/modules.conf or something similar with a line
alias eth0 8139too
 
Old 07-15-2005, 11:12 AM   #4
Mr. Asdf
LQ Newbie
 
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by peter_robb
You will need to look at Crux's documentation to work out how to have it load at boot time.
Usually there is a file /etc/modules.conf or something similar with a line
alias eth0 8139too
first of all, I can get a working connection here!
did it with adsl-setup and some editions of config files. thanks!
but, there is a problem. I need to `modprobe 8139too` everytime I boot.
I tried adding the line:
alias eth0 8139too
and the line:
alias /dev/eth0 8139too
to /etc/modules.conf
and it doesn't seem to work.
I've looked at the documentation and if I understood it correctly it should be in /etc/modules.conf, I don't know why it isn't working. also, the file /etc/rc.modules is mentioned there, I also treid adding those lines to that file but it doesn't seem that this file is the right place for aliases. also looking at /etc/modules.devfs shows that it should be in /etc/modules.conf (and there is an include for that file there), but it still doesn't work.
any ideas??
 
Old 07-18-2005, 09:29 AM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
What else is in the /etc/rc.modules file?
 
Old 07-19-2005, 05:48 AM   #6
Mr. Asdf
LQ Newbie
 
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27

Original Poster
Rep: Reputation: 15
Code:
$ cat /etc/rc.modules
#!/bin/bash
#
# /etc/rc.modules: module initialization script
#

/sbin/depmod -a

# End of file
$
 
Old 07-19-2005, 07:44 AM   #7
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Ok, looks like you need to add a command in the rc.modules file.. which is good..

Add modprobe 8139too before the depmod line..

And in modules.conf only have the alias eth0 8139too line..
 
Old 07-19-2005, 08:51 AM   #8
Mr. Asdf
LQ Newbie
 
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27

Original Poster
Rep: Reputation: 15
works!
thank you for your help
 
  


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
Linux (CRUX 2.1) won't recognize/load my Network device on eth0 Mr. Asdf Linux - Networking 1 07-14-2005 08:16 AM
ifconfig eth0 drdarkman Linux - Networking 2 01-30-2005 11:16 AM
ifconfig eth0 drdarkman Linux - Networking 1 01-24-2005 10:40 PM
ifconfig eth0 up Thorkyl Linux - Networking 6 06-29-2004 02:43 AM
eth0 removed from ifconfig after dhcpcd eth0 johnklvr Linux - Networking 3 01-15-2004 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 02:02 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