LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-21-2003, 01:23 PM   #1
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Rep: Reputation: 30
New Kernel Trouble


Ok i know this questions has been answered a hell of alot of time but i serioulsy dont know why its not working and what im doing wrong? These are the steps i used to compile the new 2.6.0 kernel:

step 1: rm /usr/src/linux

step 2 : ln -s /usr/src/linux-2.6.0 /usr/src/linux

step 3: cd /usr/src/linux

step 4: make mrproper

step 5: make oldconfig

step 6:make clean

step 7: make bzImage

step8: make modules

step9: mv /boot/vmlinuz /boot/vmlinuz.old

step10: cat arch/i386/boot/bzImage > /vmlinuz

step11: mv /boot/System.map /boot/System.map.old

step12: cp System.map /boot/System.map.old

step 13: Edit lilo

step14: make modules_install



Is there anything im missing?? I heard that you dont need to do make or make install?? so i didnt when i try to reboot the new kernel its starts off fine then all of a sudden its reboots im not too sure whats going on and why this is happending Please HELP me!!!!

Thanx

Matt3333
 
Old 12-21-2003, 01:45 PM   #2
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
First, when you run make mrproper, you've erased the existing .config if there was one.

Try this...

First edit /usr/src/Makefile and uncomment line #450 to be sure that the new image is copied to /boot. If you want to keep the existing kernel, be sure to add the entries in /etc/lilo.conf for vmlinuz.old, etc.

cd /usr/src/linux
make mrproper
cp /path to old config file/.config /usr/src/linux
make oldconfig
make
make modules_install
make install


That should do it.

EDIT: By the way, make does make bzImage and makes the modules. Also, make install, copies vmlinuz and System.map to /boot, and runs lilo.

Last edited by DaOne; 12-21-2003 at 01:51 PM.
 
Old 12-21-2003, 09:24 PM   #3
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Original Poster
Rep: Reputation: 30
Ok thanc DaOne, I'd like to jump up and start yelling YAYAYAYYA it works!!!! But it doenst work it still just reboots?? Know why?? Because i sure as hell dont!!!!!


Matt3333
 
Old 12-21-2003, 09:41 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
Re: New Kernel Trouble

Quote:
Originally posted by matt3333
step11: mv /boot/System.map /boot/System.map.old
step12: cp System.map /boot/System.map.old
don't know if that was a typo, but from that you are overwriting your "old" system map. also, imho you should do the modules install with the rest:

make clean && make bzImage && make modules && make modules_install

then:

mv /boot/vmlinuz /boot/vmlinuz.old
mv /boot/System.map /boot/System.map.old

cp System.map /boot
cp (or the cat method) arch/i386/boot/vmlinuz /boot/vmlinuz-2.6.0 (or however you name it)

etc.
 
Old 12-21-2003, 10:09 PM   #5
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Original Poster
Rep: Reputation: 30
Ya that was a typo Thanx! But i did what DaOne told me to do so should I like recompile it again???? I dunno what to do from here im soo confused i dont know why this isent working?????
 
Old 12-22-2003, 07:46 AM   #6
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Re: New Kernel Trouble

Quote:
Originally posted by matt3333
Ok i know this questions has been answered a hell of alot of time but i serioulsy dont know why its not working and what im doing wrong? These are the steps i used to compile the new 2.6.0 kernel:

step 1: rm /usr/src/linux

step 2 : ln -s /usr/src/linux-2.6.0 /usr/src/linux

step 3: cd /usr/src/linux

step 4: make mrproper
As others pointed out add here:
cp /path/to/your/old/.config .config

Quote:
step 5: make oldconfig

step 6:make clean

step 7: make bzImage

step8: make modules
Again, as DaOne already told you just do:

make

Quote:
(snip)
when i try to reboot the new kernel its starts off fine then all of a sudden its reboots im not too sure whats going on and why this is happending Please HELP me!!!!
Can you read some of the lines of your start-up process? Does it always reboot at the same point?

Try to read your /var/log/sysconfig (as root):

su -c "more /var/log/sysconfig"

Scroll down to the lines referring to current date and hour referring to the last boot process and paste those lines here, in order to let us help you figure out where the boot process stops.
 
Old 12-22-2003, 11:03 AM   #7
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
As kc00l stated, if the system will stay up long enough to paste to info when you...
su -c "more /var/log/sysconfig", this would be a big help. I remember having a similar issue some time ago, and it was a certain module that was loading that was the cause. In my case though, the system stayed up long enough for me to troubleshoot. Keep us informed...
 
Old 12-22-2003, 06:28 PM   #8
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Original Poster
Rep: Reputation: 30
Ok thank-you kc001 for that, But it doesnt stay up long enought for anything to load like this is as far as it gets: loading linux.........................................................
Then it reboots

im using kernel 2.4.20 to write this so would the sysconfig be just want booted up during this kernel??? If not then ill post it. Also i dunno where my .config file is i dont think i have the kernel source for this kernel installed?? should i install it?? it does Make oldconfig fine like it opens it and goes thu all the old ones and just askes me for the onces that are new?? that what its suppose to do right?? Well then kc001 i just tried it the way DaOne pointed out and the same thing happend THANX!

Matt3333
 
  


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 trouble linuxmandrake Debian 2 09-24-2005 07:43 AM
kernel trouble UBERSKiB Linux - Newbie 4 05-22-2005 12:36 AM
Trouble with new kernel jza Debian 11 06-02-2004 04:42 AM
kernel trouble Calcutec Linux - General 4 03-17-2003 07:04 PM
Kernel Trouble (Not actually trouble though) chem1 Linux - General 4 10-01-2002 02:10 AM


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