LinuxQuestions.org
Visit Jeremy's Blog.
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-06-2004, 09:46 AM   #1
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
compiling a new kernel


i compiled a new 2.6.1 kernel on a slackware box.

here were my steps;

edit lilo and makefile accordly.
make dep
make clean
make menuconfig
make bzImage
make
make install
make modules
make modules_install
then i ran a script to grab the first 512 bytes of my root partiion, and copied it to my c:\ of winXP so, i can dual boot between xp and slackware.

When i loaded my old kernel it loads fine, but when i run the new 2.6.1 kernel, it goes through a scan and say BIOS check successful; then it goes to uncompress kernel image and just hangs there, It doesn't go anywhere further. My question is why is it hanging there? Thanks in advance
 
Old 07-06-2004, 10:33 AM   #2
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
I'm not sure, I've haven't ran into the need to recompile my kernel yet. (Thank the powers that be) Do you have any way of getting back to your old kernel?
 
Old 07-06-2004, 11:37 AM   #3
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Original Poster
Rep: Reputation: 30
I have both kernels in lilo, and i can load the 2.4.22 kernel, but when i ran the 2.6.1 one, its hangs there and doesn't do anything.
 
Old 07-06-2004, 12:48 PM   #4
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
Oh, well thats a good thing. Are you sure theres nothing special you need to pass to the kernel? Do you pass anything to your old kernel?
 
Old 07-07-2004, 09:38 AM   #5
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Original Poster
Rep: Reputation: 30
no i don't pass anything to the old kernel. When the kernel tries to uncompress it just hangs. Is there anything i can do to see why it is hanging? or should i just try to compile another kernel?
 
Old 07-07-2004, 09:50 AM   #6
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
in slackware 9.1
i allways did this

***edit my .config file for the kernel with # make menuconfig

make dep
make clean
make bzImage
make modules
make modules_install
rm /boot/System.map
cp /usr/linux/arch/i386/boot/bzImage /boot/bzImage-newkernel
cp /usr/linux/System.map /boot/System.map
****then edit the lilo.conf file accordinlly
***then run
lilo
reboot

works great for me

just make sure you select the right things in your .config file like filesystem types sound card modem/network driver etc....

Last edited by citrus; 07-07-2004 at 09:52 AM.
 
Old 07-07-2004, 10:21 AM   #7
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Original Poster
Rep: Reputation: 30
hey thanks, i'm gonna try your method when i get home from work. too bad my work doesn't use linux. I will let you know how it goes. thanks again, everyone is really helpful at this website.


Another question what is System.map?

Last edited by djgerbavore; 07-07-2004 at 10:23 AM.
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 07:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

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

All times are GMT -5. The time now is 01:17 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