Click to See Complete Forum and Search --> : My First Kernel


XbaxeSysAdmin
06-10-2005, 07:40 AM
Ive just created mt first kernel! At least still compiling it. Im so anxious wheter it will work.
Im doing a Gentoo install and decided to compile a new kernel while i was at it.

So how was you first kernel compliation expierience?

Hayl
06-10-2005, 09:39 AM
The "Kernels and Modules" forum is for support related questions regarding the Linux kernel. Please post off-topic tech-related threads to /dev/random.

<moved: /dev/random>

XbaxeSysAdmin
06-10-2005, 10:47 AM
Ah , im sorry , my mistake . Anyone , i forgot to add PCMCIA support into the kernel . And /root though it was a ext2 partiton while it is ext3 , however , i managed to isntall it sucessfully , but not to run yet.

MorphiusFaydal
06-10-2005, 01:15 PM
Originally posted by XbaxeSysAdmin
Ah , im sorry , my mistake . Anyone , i forgot to add PCMCIA support into the kernel . And /root though it was a ext2 partiton while it is ext3 , however , i managed to isntall it sucessfully , but not to run yet.

Adding PCMCIA support is a simple fix, and as for /root thinking its ext2 instead of ext3, check your fstab.

bwkaz
06-10-2005, 06:47 PM
Originally posted by MorphiusFaydal
as for /root thinking its ext2 instead of ext3, check your fstab. Well, that won't help, actually. ;)

The kernel can't read /etc/fstab before mounting the root FS, because /etc/fstab is on the root FS. It basically just tries to autodetect the filesystem type based on the FS drivers that are loaded when it tries to mount the FS.

So if you built ext2 support into the kernel, and built ext3 as a module, and didn't load the ext3 module in an initrd, then it'll use ext2. If you built ext2 support into the kernel, and left ext3 out, then it'll also mount it as ext2.

(I leave ext2 out, myself. ;))

Parcival
06-11-2005, 02:23 AM
Originally posted by XbaxeSysAdmin
So how was you first kernel compliation expierience?

Frustrating. It took me four attempts until I was able to have it run. :D

XiaoKJ
06-11-2005, 06:32 AM
My First Kernel compilation was on RH9

IT ended up in chaos and from then on I never tried compiling kernels on RPM-based distros.

Then I moved on to slack, and compiled successfully a kernel with all stuff built-in

However, with time, I forgot how to do it, so subsequent ones failed.

Now, on gentoo and debian, I've got no problems doing that anymore, and with modules. I've found the ? command:D

bburton
06-11-2005, 09:46 AM
Originally posted by Parcival
Frustrating. It took me four attempts until I was able to have it run. :D

I don't think I've ever got the configuration perfect on the first time when configuring a brand new kernel. Although I'm a picky bastard and I don't do modules... I build in exactly what I need and nothing else!

*sigh* Things were so much more simple with the 2.2 kernel series.

belsonc
06-11-2005, 02:02 PM
My first experience was going from 2.4.x(22, maybe?) to 2.6.9 on my Slack 10 box - and it worked without a problem, I just followed my friend's directions.

Now before you get pissed at me, let me clarify - in terms of driving, he didn't tell me to make a left onto Elm Street. He told me to push down on the stick to the left of and behind the steering wheel, make sure the arrow on my display started blinking in the direction i wanted to turn, press gently on the pedal on the left with my right foot, wait until my car comes to a stop, roll forward slowly to see if anyone was coming from either direction (and stop the car if they were), and if it was clear, turn the wheel to the left and press gently on the right pedal. When you have directions like that, it's hard to go wrong...

...and after I did the upgrade, I tried booting my SlackOld configuration - the 2.4.x one - and it kernel panic'd. :D

-CB

XiaoKJ
06-12-2005, 06:48 AM
are you sure? have you read Computer Stupidities (http://rinkworks.com/stupid/)? There are many accounts of people failing to follow those directions.