LinuxQuestions.org
Review your favorite Linux distribution.
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 02-08-2006, 11:44 PM   #1
n0dl
LQ Newbie
 
Registered: Feb 2006
Location: @sh0u
Distribution: The linux one
Posts: 11

Rep: Reputation: 0
2.6.x kernel


Hello, I have some issues when I try to compile a new 2.6.12 kernel. I cant seem to get dhcp to work correctly (thus no internet). I know that dhcpcd is not related directly to the compilation of the kernel (although under one of the networking options there is a "dhcp" option). I have two ethernet devices one that is onboard and the other is an external (an ethernet card: linksys 10/100 LAN card (instant etherfast LNE100TX ver 5.1)) which i use. Anyway, here are my main question points:
1.) Do Ethernet cards constitute as a PCMCIA card?
2.) If I have two ethernet devices how can I tell the kernel compiler of the second device and give it the ability to decide which device to use?.
One thing i notice whenever I try to boot the new kernel is that when dhcpcd is called a MAC address is given (the MAC address of the onboard ethernet device) and even after boot whenever I try to run dhcpcd as root nothing happens and the internet does not work. Im sorry if this seems unclear, If you have any questions before answering my question (hehe) please feel free to do so. Thanx for your help.
 
Old 02-09-2006, 12:04 AM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
You just compile in the drivers for both ethernet devices, and then choose what you want to do with each in the network configuration. That's not really a kernal issue. Same as dhcp... more likely a config issue - as long as you have the modules for the ethernet devices and they are working...

And since you are compiling a kernel, why not a recent one? Like 2.6.15.3?

Just check what dmesg tells you about the ethernet devices on boot...

dmesg | grep eth

And look at ifconfig. What is that saying...

And does it work if you use a static IP?
 
Old 02-09-2006, 12:04 AM   #3
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
HEY MAN CAN U TELL ME HOW U COMPILED UR KERNEL ???...... i m a newbie
 
Old 02-09-2006, 12:26 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
How I do it... Well, I download the latest patch from kernel.org, but if you are starting from scratch, then download the whole source.

use tar xfvz or tar xfvj to untar the source somewhere.

cd into the directory.

Now in my case going from say 2.6.15.2 to 2.6.15.3 I would just get the patch and put that in the current source directory and patch -Rp1 < patchXXX to reverse out the .2 patch and then patch -p1 < patchXXX to patch in the new one, though in the case of .3 the .2 to .3 patch was tiny and come over email and, well, that's a whole other story...

In your case it's likely you'd download the entire 2.6.15.3 source, untar it, and cd in to the directory.

Make xconfig is a nice easy config system. This is the hard part and there are no easy instructions. You need to select the options and drivers you need for your hardware. It may take a few goes to get right first time. To make things easy you compile your root filesystem into the kernel and not as a module... but this is a nice gui app and you can read what a lot of the stuff is... You need to know your hardware well tho...

After that, you just:

make bzImage will compile the kernel

make modules will compile the modules.

make modules_install will install them

Then you just copy the kernel (it will be in a place like arch/i386/boot or whatever depending on the hardware) to /boot

add the new kernel to your grub or lilo. Leave the old kernel there as well in case the new one don't work (which is usually the case on the first few tries.

run lilo or grub...

reboot

crash and burn.



So how do you compile a kernel... Well, seriously, it's just practice and experience... Play around and try a few things and keep at it. WE are all blind when we start. Compiling a kernel seems dead easy to me these days, but then I've been doing it for 10 years...

And yet I still screw up. A lot.
 
Old 02-09-2006, 05:54 PM   #5
n0dl
LQ Newbie
 
Registered: Feb 2006
Location: @sh0u
Distribution: The linux one
Posts: 11

Original Poster
Rep: Reputation: 0
Yes i would like to but how would i run the patch for 2.6.15.3 kernel?
As a side note, Yes i agree with asomf on kernel the blind analogy often seen in kernel compilation how-tos. Thats one of the reasons why they're kernel hackers out there (because apparently there is no right way to compile a kernel and plenty of kernel script does not exactly make sense why the way it is). Compiling kernels are fun in a frustrating sort of way (yes I am very sleep deprived)

Last edited by n0dl; 02-09-2006 at 05:58 PM.
 
Old 02-09-2006, 06:24 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
If you use Debian, google for "compiling debian way". Debian has some packages that (arguably) make it a bit easier on a newbie to compile with.
 
Old 02-10-2006, 11:55 PM   #7
n0dl
LQ Newbie
 
Registered: Feb 2006
Location: @sh0u
Distribution: The linux one
Posts: 11

Original Poster
Rep: Reputation: 0
I dont use debian hehe... I use slackware
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM

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

All times are GMT -5. The time now is 02:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration