»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-30-2003, 10:55 PM   #1 (permalink)
Registered User
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,612
Emc2 is on a distinguished road
Send a message via AIM to Emc2
Oooh the frustration - first time kernel compile

Here's the situation:

Mandrake 9.0 on my desktop
RedHat (can't remember version) on my laptop.

RedHat has the kernel header files, but Mandrake doesn't. Wen't to Mandrake CD1, and from KDE ran the .rpm file. Supposedly they're installed now.

Trying to put 2.6.0.test9 on both systems. In RedHat, I followed the instructions, to make mrproper, xconfig, dep, bzImage, modules, modules_install, and install. Reboot (using grub), and the kernel always 'panics' while loading the file system.

In mandrake, every time I type "make" in the /usr/src/ directory, it tells me 'no makefile found'

Please, shed some light on this...

Emc2 is offline   Reply With Quote
Old 10-31-2003, 06:00 AM   #2 (permalink)
Registered User
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,125
SpookyEddy is on a distinguished road
Quote:
In RedHat, I followed the instructions, to make mrproper, xconfig, dep, bzImage, modules, modules_install, and install. Reboot (using grub), and the kernel always 'panics' while loading the file system.
Did you remember to add support for your file system (ext2, ext3, Reiser etc) to your new kernel. It needs to be compiled in and not a module.
Quote:
In mandrake, every time I type "make" in the /usr/src/ directory, it tells me 'no makefile found'
Thats because /usr/src/ shouldn't contain any Makefiles so you have nothing to make. You want to be in /usr/src/linux (the kernel source tree).

Regards

ed
SpookyEddy is offline   Reply With Quote
Old 10-31-2003, 09:00 AM   #3 (permalink)
Registered User
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,612
Emc2 is on a distinguished road
Send a message via AIM to Emc2
There's no "linux" folder, although I DID install the kernel source file RPM.

And support for the file system comes when I'm using xconfig right?
Emc2 is offline   Reply With Quote
Old 10-31-2003, 09:04 AM   #4 (permalink)
Registered User
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,125
SpookyEddy is on a distinguished road
Quote:
There's no "linux" folder, although I DID install the kernel source file RPM.
Often this is a link to another directory under /usr/src/ called something like linux-2.6.0-test9 (obviously dependant on your kernel version).
Quote:
And support for the file system comes when I'm using xconfig right?
Correct.

Regards

ed
SpookyEddy is offline   Reply With Quote
Old 10-31-2003, 03:26 PM   #5 (permalink)
Registered User
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,612
Emc2 is on a distinguished road
Send a message via AIM to Emc2
Maybe I'm just destined to never compile a kernel...

I'm forgetting about my PC for now and working only with the laptop, running RedHat, booting using Grub.

Everything in the xconfig for the file system is correct. I've gone through every setting and still nothing I even looked at an article from www.justlinux.com on configuring a kernel, but it didn't even mention file systems. I guess it just assumes everything's supposed to be intact already? I dunno...

Still gonna fight to get it working though...M$ puts out a patch a week these days it seems, and it's making my OS kinda slow...
Emc2 is offline   Reply With Quote
Old 10-31-2003, 05:52 PM   #6 (permalink)
Registered User
 
pbharris's Avatar
 
Join Date: Oct 2001
Location: Chicago, IL
Posts: 2,403
pbharris is on a distinguished road
Send a message via ICQ to pbharris Send a message via AIM to pbharris Send a message via Yahoo to pbharris
i wrote this:

kernel compiling
__________________
I don't use Linux because I hate Windows (which I do) I use Linux because I like it.
play mtrek! telnet://mtrek.com:23
Odds are very good there are several spelling mistakes in this post.
pbharris is offline   Reply With Quote
Old 10-31-2003, 09:14 PM   #7 (permalink)
Registered User
 
washe's Avatar
 
Join Date: Feb 2002
Location: Mexicali, Mexico
Posts: 1,086
washe is on a distinguished road
Send a message via ICQ to washe
ahhh I used that how to, for my first kernel compile some time ago....


Thanks Pbharris.... I realized how small the world is....
__________________
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning."

Richard Cook
washe is offline   Reply With Quote
Old 11-02-2003, 08:11 PM   #8 (permalink)
Registered User
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,612
Emc2 is on a distinguished road
Send a message via AIM to Emc2
thx pbharris, I'll try that on my laptop when I get my usb mouse back for it (the touchpad doesn't work in linux *yet* and I just d/l'ed redhat on my desktop and will install it later).

Unless you can show me a "getting around in KDE (or GNOME) without a mouse" guide, which is always nice...
Emc2 is offline   Reply With Quote
Old 11-02-2003, 11:05 PM   #9 (permalink)
Registered User
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,612
Emc2 is on a distinguished road
Send a message via AIM to Emc2
you know, I feel kinda stupid right now, but I guess alot of noobs go through this too...haven't done it yet, but I found the mistake and am downloading the *real* kernel now.

On kernel.org 's homepage, every link to a kernel is to a patch. I was trying to compile off of a patch. So what it was doing was using the 2.4 kernel on compile while in the 2.6 directory? I dunno, but the 2.6 kernel I'm d/l'ing is 40MB now, and it's in .tar.gz like described in every freakin manual I've read.

I'll post back with how it goes. I wish manuals for n00bs like me made an issue out of this, and kernel.org was more noob friendly (even though the guide above really did say something about it, I just missed the point).
Emc2 is offline   Reply With Quote
Old 11-02-2003, 11:25 PM   #10 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 868
the jester is on a distinguished road
Disclaimer #1 the 2.6.0-testx series are still under development, i.e. beta - run at your peril

Disclaimer #2 the following steps are what I needed to do to get 2.6.0-test9-mm1 working with gentoo - I cannot vouch for them 100% on other distros, but the gurus can set me straight

if you're going to compile a 2.6.0-test kernel there are a couple of gotchas that you need to be aware of

do the following as su

1. you'll need to add the dirctory /sys
mkdir /sys

2. you'll need to add the file system /dev/pts to your /etc/fstab - use your editor (nano/pico/vi, etc) to add the following
none /dev/pts devpts defaults 0 0

3. ls -l /usr/src to see which kernel source your current linux is symlinked to (if it's not there jump to next step)

4. back up your current kernel .config - type uname -a to discover what kernel you are running now, then cp /usr/src/linux-version/.config /usr/src/linux-version/.configold

5. delete the directory linux
rm -r /usr/src/linux

6. link the new sources to the directory linux
ln -s /usr/src/linux-2.6.0-test-version/ /usr/src/linux
(where -version = the numbers/letters you see)

7. cd into /usr/src/linux and make menuconfig
go through selecting the correct options based on your hardware be careful to enable /dev/pts under filesystems along with whatever fs you use for /, /boot - ext2 ext3 reiser etc

8. save your new config and then "make" it
make clean bzImage modules modules_install (watch tv/read a book)

9. make sure /boot is mounted and then
cp arch/i386/boot/bzImage /boot/bzImage-2.6.0-test (or whatever you call it) - be sure you don't wipe out the current kernel

10. cp System.map /boot/System.map-2.6.0-test
(if you already had a System.map in there then rename it - mv /boot/System.map /boot/System.maporiginal
ln -s System.map-2.6.0-test System.map

11. edit your bootloader (grub or lilo) to add a new entry

12. umount /boot

13. reboot to check out your new kernel

14. once it boots fine without complaints then recompile your nvidia drivers (if you use them) - not sure for ati, but surely similar

Hope that helps

PS - a lot of the "ready-made" distros - mandrake, red hat. etc, don't automatically install the kernel headers - you'll not get far without them if you want a new kernel - they're usually on one of the cds so check there first

Last edited by the jester; 11-03-2003 at 02:24 AM.
the jester is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 11:04 PM.