LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-29-2004, 02:56 PM   #1
madhatter2
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 5

Rep: Reputation: 0
Question Compiling new kernel with Slackware 10


Hello world,
I want to test myself by compiling a new kernel and run it. I've downloaded the 2.4.26 sources and set the configuration using menuconfig. I only added some usb drivers as the master plan was to activate my webcam. I compiled the new kernel using make bzImage. Then I "make modules" and "make modules_install".
I copied the new image and System.mp and config to /boot.
I've modified lilo.conf and reinstall it using /sbin/lilo.
However the machine refused to boot. It froze right after the CPU checks. I tried the same with kernel 2.6.7 but the results were same as 2.4.6: a freeze right after the cpu checks. So it seems that I have a basic problems, something is missing. I thought maybe some harddisk drivers is missing but I'm using an old PII so it is hard to tell.
One fact still is true the original Slackware 10 2.4.26 image is working. So there must be a way to build a kernel that will work.

So after the long story here are my questions:

1. Where can I find the .config file which will set the kernel configuration to be the same as the original Slackware 10 2.4.26 kernel?
2. What is the System.map file?
3. Do I need to use initrd.
4. mkinitrd is using the drivers from /lib/modules/kernel-version so how can I put there all the drivers from my private kernel build?
5. I'm using the reiserfs filesystem. Why the 2.6.7 package of Slackware 10 does not include the necessary drivers to boot from this filesystem.

Any help will be appreciated.
Please reply even if you have only some of the answers.

Tanks in advance
 
Old 07-29-2004, 03:52 PM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I always run "make install" after make modules_install cause it fixes all my problems. I found out accidentily cause I had compiled some other stuff. This will take care of everything and make an entry in lilo as well with your old configuration and adds the new kernel.

And BTW a 2.4 kernel isn't really new
 
Old 07-29-2004, 04:08 PM   #3
madhatter2
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 5

Original Poster
Rep: Reputation: 0
Lightbulb

Hello again,
initrd did solve the boot problem. For all the newbies out there /boot/README.initrd was very helpful and answer all my questions regarding initrd.
The webcam is still not working but I will keep for another thread.

Any answers for the rest of my questions will be great help.

I know the 2.4 is not a new kernel but the one I tried to build was new.
 
  


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
DISCUSSION: Compiling kernel 2.6.10 on a Slackware 10.1 acidjuice LinuxAnswers Discussion 28 10-24-2006 03:10 AM
Slackware 10 error compiling kernel 2.6.7 nirvanix Slackware 3 05-29-2006 11:52 PM
Problems in Slackware w/ Network after Compiling Kernel 2.6.9 wasafiri Linux - Networking 6 12-08-2004 09:22 PM
Won't boot after compiling 2.4.26 kernel with Slackware 10 Cerbrim Linux - Laptop and Netbook 3 09-01-2004 01:00 AM
Compiling kernel 2.6.4 on Slackware 9.1 ProtoformX Linux - General 1 03-13-2004 10:41 AM

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

All times are GMT -5. The time now is 01:41 AM.

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