LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-19-2011, 08:26 AM   #1
mtz
LQ Newbie
 
Registered: Nov 2011
Posts: 8

Rep: Reputation: Disabled
kernel 3.1.1 stable on Slackware


ok mates, I have a really big problem..
I upgraded kernel million times on debian based linux, both tarball and .deb installers, but can someone help me with step by step installing on slackware. did it few times, but it got a kernel panic :P couldn't even start.
keywords: slackware 13.37 amd64, kernel is version 3.1.1 packed in tar.bz2 from kernel.org
thanks!
 
Old 11-19-2011, 08:31 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Have a look here:
http://alien.slackbook.org/dokuwiki/...kernelbuilding
 
Old 11-22-2011, 06:39 AM   #3
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
Hey champ,

I just did an upgrade about an hour ago from the 2.6.37.6 kernel to the 3.2.0-rc2 kernel on Slackware 13.37 64bit edition in VMware. These are the steps that I took, hopefully you'll find them useful.

In the terminal:

Code:
#Downloads the file into /tmp and extracts it to /usr/src/
cd /tmp/
wget [kerneldotorg]/pub/linux/kernel/v3.0/testing/linux-3.2-rc2.tar.bz2
tar -C /usr/src -jxvf linux-3.2-rc2.tar.bz2
cd /usr/src/

#removes sym link and sets it to new path

rm linux
ln -s linux-3.2-rc2 linux

#I decided to copy my old config settings across, you don't need to do this. If you choose this option, it'll then present you with new options now available in the new kernel.

zcat /proc/config.gz > /usr/src/linux/.config
cd linux
make oldconfig

#Make any last changes here before compiling

make menuconfig
make
make modules_install

#Copies the files to /boot and makes a backup of your old System.map and vmlinuz files to System.old and vmlinuz.old

make install
#Simply restart and you're in your new kernel!
Let us know how you go!
 
Old 11-22-2011, 09:29 AM   #4
new_ink2001
LQ Newbie
 
Registered: Nov 2011
Location: Oklahoma
Distribution: Mandrake, SuSE, Slackware, Fedora, Mandriva....
Posts: 8

Rep: Reputation: Disabled
Wink Compiling kernel

Mtz,

The readme in the kernel's source directory will tell you _not_ to use the /usr/src directory for the build, because it messes with the compiler. Otherwise, Basica has the steps there below for some one that can get it right on the first try. Leave the old stuff alone until you get the new one working for sure, is my recommendation.

Getting the configuration right took me about 15 tries when I did it, mostly because I didn't include module support and the configuration tools wouldn't take my changes properly. I strongly recommend setting the 'Alt-Print Screen' switch to true, so you can get some debug information from those kernel panics. And keep a boot disk handy so you can set up your boot loader when it's time to take a break from kernel building.

Best Regards,

New Ink -- Henry
 
Old 11-22-2011, 12:29 PM   #5
mtz
LQ Newbie
 
Registered: Nov 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by new_ink2001 View Post
Mtz,

The readme in the kernel's source directory will tell you _not_ to use the /usr/src directory for the build, because it messes with the compiler. Otherwise, Basica has the steps there below for some one that can get it right on the first try. Leave the old stuff alone until you get the new one working for sure, is my recommendation.

Getting the configuration right took me about 15 tries when I did it, mostly because I didn't include module support and the configuration tools wouldn't take my changes properly. I strongly recommend setting the 'Alt-Print Screen' switch to true, so you can get some debug information from those kernel panics. And keep a boot disk handy so you can set up your boot loader when it's time to take a break from kernel building.

Best Regards,

New Ink -- Henry

Thanks Basica for code, I will maybe get some balls to do it

Henry, for your 15 tries I got on my sixth try and lost some nerves.. last time I killed lilo, and now I made a fine dualboot with w7(because games and family needs - retards don't know how to use slackware or even ubuntu, blah blah blah)
but thank you. I will try it six times more and 3 more times to get your highscore even if next time it will work, just for pleasure hahaha
 
Old 11-22-2011, 02:54 PM   #6
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
No problem, hopefully it works out for you. I won't argue with the compilation directory location as I was simply following steps from a couple of different places (including the one linked before my initial post) and they all did the work in the /usr/src directory. It worked fine for me but YMMV.

I was quite happy as this was my first successful compile. The last time I tried to do it was back in Ubuntu 4.10 (I've been playing with Linux on and off for a while, more off than on though) and I couldn't get it to boot afterwards either, I tried 3 times before giving up, especially since I had an old computer at the time, the compile times were pretty long. Now, even inside a VM, it took ~30mins which isn't too bad as I can still use my PC and do other things to pass the time

What I find useful, especially if you're feeling a little bit defeated is to try and take as many variables out of the equation as possible. In other words, use your old config file that you obviously know works, use the default settings and then go from there. It'll most likely work off the bat and will give you a little bit of a mental and positive boost From there, just keep upping the ante. Also, I'm doing this in a VM environment so if I screw anything up majorly, I'm just a few seconds aware from my restore point to have at it again which makes it easier to experiment and use trial and error with things when you don't have to worry about spending an hour or so (maybe more) getting everything working again, or simply reinstalling the system.

Best of luck!
 
  


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
What is more stable: Slackware or Debian Stable ? Xeratul Slackware 100 11-14-2015 10:07 PM
[SOLVED] Kernel hang during boot process (Slack 13.1 stable w/ kernel 2.6.33.4-smp) lpallard Slackware 10 06-27-2010 01:53 PM
Stable 13 kernel vs Current kernel in Stable system linus72 Slackware 6 04-01-2010 07:45 AM
stable:2.6.32.7 from kernel.org is really stable? miros84 Linux - Software 2 02-02-2010 01:44 AM
kernel 2.6.17-rc5 with Slackware-stable? uselpa Slackware 10 06-04-2006 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:55 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
Open Source Consulting | Domain Registration