LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Help me ! How to config eth0 on LFS ??? (http://www.linuxquestions.org/questions/linux-from-scratch-13/help-me-how-to-config-eth0-on-lfs-390036/)

tritong 12-06-2005 10:50 PM

Help me ! How to config eth0 on LFS ???
 
This is my configure (eth on board)
-------------------------
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=10.0.0.200
NETMASK=255.255.255.0
BROADCAST=10.0.0.255
-------------------------
Mainboard Asus A8V
CPU AMD 3000+
512MB DDR 400
HDD 80Gb

LFS kernel 2.6.14

I have installed eth0's driver.

When booting the LFS, it doesn't recognize eth0.

Why ??? What's wrong ???

Please help me !!! Thanks

shotokan 12-07-2005 01:23 AM

Did you compile it as a module, or as part of the kernel?

tritong 12-07-2005 01:40 AM

I compiled it as a module.

Help me !

mr_demilord 12-07-2005 03:42 AM

Quote:

Originally Posted by tritong
I compiled it as a module.

Help me !

Did you compiled mii also as module as it should?
/etc/resolv and /etc/hosts configured properly?

muppski 12-07-2005 08:51 AM

Quote:

Originally Posted by tritong
I compiled it as a module.

Help me !

Does it load the module at bootup?
Whats the name of your NIC and what it's module name?

tritong 12-07-2005 08:07 PM

Quote:

Originally Posted by mr_demilord
Did you compiled mii also as module as it should?
/etc/resolv and /etc/hosts configured properly?

/etc/resolv.conf
#Begin /etc/resolv.conf
domain localhost.localdomain
nameserver 203.162.4.190
nameserver 203.162.4.191
#End /etc/resolv.conf

/etc/hosts
#Begin /etc/hosts
127.0.0.1 localhost
#End /etc/hosts

Quote:

Originally Posted by muppski
Does it load the module at bootup?
Whats the name of your NIC and what it's module name?

I used driver for eth0 on the CD (main board)
Name of my NIC is Marvell SysKonnect 1Gb on board
I installed its driver - sklin98 (as a module).

tritong 12-08-2005 03:14 AM

help me !!!

How can i solve my problem, please ???

mr_demilord 12-08-2005 10:20 AM

Quote:

Originally Posted by tritong
help me !!!

How can i solve my problem, please ???

Did you compiled mii also as module as it should?

whats the output of
Code:

/sbin/ifconfig

tritong 12-08-2005 07:47 PM

Quote:

Did you compiled mii also as module as it should?
Yes, i did.

# ifconfig
Code:

lo  Link encap: Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACJ RUNNING MTU:16436 Metric:1
    RX packet:0 errors:0 dropped:0 overruns:0 frame:0
    TX packet:0 errors:0 dropped:0 overruns:0 carrier:0
    cllisons:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


piratePenguin 12-08-2005 10:56 PM

As root, run:

/sbin/modprobe mii
/etc/rc.d/init.d/network start

And it should work.

SPo2 12-09-2005 09:49 AM

Hi guys,

Not as if i can solve the tread's question...so sorry...i know this is not the right tread to start but i think u guys are e best person to answer my puzzleless mind.

i am a newbie in linux using RH 9 juz 2mths,

i hv this question: since Linux can change//compile//add modules//source from scratch & all,

Y is there the need for users to upgrade distro till FC4?
Understanding its a better version...with better capabilities.

Isn't it that we can compile, write files & we get the same results or are there any OS propietory restriction or difficulties in itself?
Understanding its open source too.

Is'nt recompiling's the fun part of linux, something like doing a(creating a <LFS> Linux From Scratch).

Or it takes someone//super smart with a strong C language to write it & set the OS up?
Or i got the LFS meaning wrong?

pls advise.............
thanks

piratePenguin 12-09-2005 10:17 AM

Quote:

Originally Posted by SPo2
i hv this question: since Linux can change//compile//add modules//source from scratch & all,

Y is there the need for users to upgrade distro till FC4?
Understanding its a better version...with better capabilities.

Sure, you could checkout the latest, cutting edge version of Xorg from SVN and compile and install it. You can do that on any distribution if you have the balls. However, the benefits of doing so are close to nil, and alot of the time the disadvantages (instability, insecurity) outweigh the advantages.

I think that's what you wanted to know.
Quote:

Isn't it that we can compile, write files & we get the same results or are there any OS propietory restriction or difficulties in itself?
No restrictions, your distribution can't prevent you from compiling something.
Quote:

Is'nt recompiling's the fun part of linux, something like doing a(creating a <LFS> Linux From Scratch).
Some people think so. But most people don't. Compiling is sometimes pretty damn annoying. Sometimes I wish I could just 'apt-get blah' (and I could if I really wanted to).
Quote:

Or it takes someone//super smart with a strong C language to write it & set the OS up?
You don't need to know any C to compile things (unless there's an error in the source code, which there very rarely is), or to set things up.
Quote:

Or i got the LFS meaning wrong?
The LFS meaning.

Hope this helps.

SPo2 12-10-2005 12:19 PM

Hi,

thanks for your time answering my questions.

Gives me a better ideas esp the Web page on LFS...........thats really helpful to a newbie like me.......


thanks

mr_demilord 12-10-2005 02:09 PM

add the following to /etc/modprobe.conf
alias eth0 modulename

tritong 12-11-2005 07:34 PM

Thanks for your answers. It worked OK.
-------------------------------------------------------------------
Now I want to insert a PCI eth card Intel. Can I config it with the same ???


All times are GMT -5. The time now is 02:12 PM.