LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-22-2006, 06:30 AM   #1
sharathg786
Member
 
Registered: Sep 2005
Location: India
Distribution: Slackware, Back|track, Fedora, ubuntu
Posts: 167

Rep: Reputation: 30
Talking upgrading from 2.4.31 to 2.6.17.9


hi, i'm sort of a newbie using slackware 10.2, 2.4.31 kernel, can anyone help me with upgrading to new kernel 2.16.17.9, since this is the 1st time i'm doing this?
 
Old 08-22-2006, 07:18 AM   #2
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
That is a pretty big upgrade, so I would recommend installing the stock 2.6.16 kernel first, so you have udev/alsa/sysfs all set up. YMMV, but it would help IMHO to upgrade like that. Cheers.

<<Samoth>>
 
Old 08-22-2006, 07:36 AM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
I did a clean install with 2.6.13. If you want to upgrade to a more cutting edge kernel shilo and DaOne have two excellent kernel compile guides that are pinned at the top of this forum:-)

Last edited by hitest; 08-22-2006 at 07:37 AM.
 
Old 08-23-2006, 03:04 AM   #4
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
this topic is discussed many times since u r new i can send the tutorial once more
also i think that, "installing new kernel" is corerct word than "upgrading kernel"

this is my small how to on kernel compile
--------------
download the kernel source to ur home/build/ dir
http://kernel.org/pub/linux/kernel/v....17.10.tar.bz2
say /home/xxxx/build (u have a dir called build in home. $mkdir build ..wil do)
now u r in /home/xxxx/build$,
$wget -c http://kernel.org/pub/linux/kernel/v....17.10.tar.bz2
$tar -xvjf
(if needed, u can create a simlink as we do in /usr/src,
$ln -sf linux-2.6.17.10/ linux)
$cd linux-2.6.17.10/ directory, then issue:
Code:
$ make menuconfig (from text node) {make xconfig or gconfig, i do gconfig -both this are for xwindow} (make your changes then save the file) --->how simple!! it will take some time if doing first time, if u read the helps a day or one week .... 
$ make <---then su to root and 
# cp System.map /boot/System.map-2.6.17.10 ; ln -sf /boot/System.map-2.6.17.10 /boot/S ystem.map 
# make modules_install 
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.17.10 
# lilo <----before doing this edit lilo 
# reboot <--if u want to try this kernel
editin lilo
---------
image = /boot/vmlinuz-2.6.17.10
root = /dev/hda1 <-- put your / (root/boot) partition here
label = 2.6.17.10 <-- or lin2.6
read-only
-------------
 
Old 08-24-2006, 02:40 AM   #5
User61
LQ Newbie
 
Registered: Mar 2006
Location: Malaysia
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
make bzImage is obselete now?
 
Old 08-24-2006, 02:58 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
i think make will include make bzImage on it, but the way i do it
Code:
cp /boot/config ./.config
make oldconfig
<adjust the configuration if needed>
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.xx.yy
cp System.map /boot/System.map-2.6.xx.yy
cp .config /boot/config-2.6.xx.yy
<adjust symlink in /boot>
<edit lilo.conf>
/sbin/lilo -v (make sure no errors)
restart
 
Old 08-24-2006, 05:34 AM   #7
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Rep: Reputation: 30
What does "oldconfig" do?

I have only used "menuconfig" and "gconfig".

Only one of my Kernels has ever worked, and that is my LFS one, which is also a modified Slackware one!
 
Old 08-24-2006, 06:21 AM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
it will use the old config file (if you don't want to build another config file). I usually saved it in my other directory so that i can use it again to build the next kernel. I derived it from Slackware's default config file
 
Old 08-25-2006, 12:52 PM   #9
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Rep: Reputation: 30
I shall have to try that!

Though... if I use oldconfig, and load an old config file, will I still be able to change the config eg. processor, etc...?
 
Old 08-25-2006, 12:56 PM   #10
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by Vampirite
... if I use oldconfig, and load an old config file, will I still be able to change the config eg. processor, etc...?
yes you will. Just issue a make menuconfig when the make oldconfig had finished :P

after configuring with make menuconfig I just type
Code:
make
make modules_install
make install -- the /etc/lilo.conf file should functional at this point as the lilo command gets called here
Check for errors and reboot.
Could it be any easier I ask?

Last edited by raska; 08-25-2006 at 01:00 PM.
 
Old 08-25-2006, 01:02 PM   #11
netcrawl
Member
 
Registered: Jan 2004
Location: British Columbia
Distribution: Slackware64-current, aarch64
Posts: 220

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by raska
after make menuconfig I just type
Code:
make
make modules_install
make install -- the /etc/lilo.conf file should functional at this point as the lilo command gets called here
Check for errors and reboot.
Could it be any easier I ask?
make && make modules_install && make install
 
Old 08-25-2006, 01:09 PM   #12
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
damn you got me... ok the actual command that I type is:
Code:
date > ~/k.start && make && make modules_install && make install; date > ~/k.end; ls -lh /boot/; cat ~/k.*
The k.start and k.end files are for measuring compiling times.
the ls -lh /boot/ command is to review the sizes and files there
 
Old 08-26-2006, 05:25 AM   #13
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Rep: Reputation: 30
Makes my life much easier
 
  


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
Upgrading to Badger! Can't login anymore after upgrading? BellaSha87 Ubuntu 1 12-03-2005 12:09 PM
upgrading (or not upgrading) glibc richarde Slackware 9 09-12-2005 12:56 AM
Upgrading to 10.0 from 9.1 jrdioko Slackware 5 08-08-2005 01:34 PM
Upgrading to 9.3 craigs1987 Linux - Networking 0 07-29-2005 07:47 AM
Upgrading 2.4.21.4 to 2.6.5 vkrishn1 Linux - Newbie 4 01-22-2005 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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