LinuxQuestions.org
Visit Jeremy's Blog.
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 05-20-2004, 12:27 AM   #1
WopMaster8
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 10.1
Posts: 7

Rep: Reputation: 0
Problems updating Slackware 9.1 2.4.x kernel to 2.6.6


I'm trying to update my Slackware kernel from 2.4.22 to 2.6.6. I have the full source code downloaded and this is what I have been told to do (but I haven't done anything yet):


cd /usr/src

rm linux

tar -zxvf linux-2.6.6

ln -s /usr/src/linux-2.6.6 /usr/src/linux

cd linux

make mrproper

cp /usr/src/linux-2.4.22/.config /usr/src/linux

make menuconfig

(I guess for previous kernels you were supposed to do a "make dep" and then "make clean" here, but with 2.6.x and on you don't have to. Please correct me if this info is wrong)

make bzImage

make modules

make modules_install

rm -rf /boot/System.map

rm -rf /boot/vmlinuz

cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.6

cp /usr/src/linux/System.map /boot/System.map-2.6.6

ln -s /boot/vmlinuz-2.6.6 /boot/vmlinuz

ln -s /boot/System.map-2.6.6 /boot/System.map

rm -rf /boot/initrd.2.4.22.img

The next step is supposed to be "/sbin/mkinitrd /boot/initrd-2.6.6.img 2.6.6" but I've discovered that the mkinitrd utility doesn't even exsist for Slackware and you have to manually create the image file. Problem is, I have no idea how to do this and can't find that information anywhere.

After that I would edit the lilo.conf file to be:

image = /boot/vmlinuz-2.6.6
label = Slackware-2.6.6
root = /dev/hdc2
read-only

And then run /sbin/lilo


Some of this doesn't seem right to me, but then again I don't know jack about Slackware (or Unix/Linux in general for that matter). Currently I have Windows XP and Slackware with the 2.4.22 kernel dual booting flawlessly on a Dell 5100, but the last time I tried to use these commands I ended up with a kernel panic. Can anyone help me out? Let me know if you need more info or if there are typo's somewhere in the commands.
 
Old 05-20-2004, 12:39 AM   #2
newinlinux
Member
 
Registered: Dec 2003
Location: Next to Equator
Distribution: GNU/Linux 2.6.14
Posts: 382

Rep: Reputation: 30
I would normally do this:
cd /usr/src

rm linux

tar -zxvf linux-2.6.6

ln -s /usr/src/linux-2.6.6 /usr/src/linux

cd linux

make mrproper

make menuconfig

make && make modules_install


cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.6

cp /usr/src/linux/System.map /boot/System.map-2.6.6

In lilo , i change the original kernel from vmlinuz to vmlinuz-ide-2.4.22(you can find this in /boot) for the old kernel as back up if my new one fails. Add an identical sets of lilo lines for my new kernel, naming the right file name (vmlinuz-2.6.6) as i did on top.

Basically i use http://www.gentoo.org/doc/en/handboo...?part=1&chap=7 as my guide, it's usable on slack too.

Last edited by newinlinux; 05-20-2004 at 07:53 PM.
 
Old 05-20-2004, 10:40 AM   #3
surfinhicdude
LQ Newbie
 
Registered: May 2004
Distribution: Slackware Current - 2.6 kernel
Posts: 15

Rep: Reputation: 0
Make sure all your compilers and whatnot are up to date, thought they should be with 9.1, except for module-utils. I'm not sure what else, I think that's all i had to update...get that from slack current.
In fact, I'd recommend using swaret or something to get up to current, but i don't think that's absolutely necessary.
I'd use the guide from shilo...worked for me
http://www.linuxquestions.org/questi...=slackware+sys

Be sure to create a sys directory and mount it in fstab. It's also in the guide. Good luck!
 
Old 05-20-2004, 08:23 PM   #4
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
My 2.6 version you don't have to make modules. It does it itself when you issues make.
That was the only difference between the steps of kernels 2.4 to 2.6
install the source
cd /usr/src
ln -s /usr/src/linux-2.6.# linux
make mrproper
make clean
make your_flavor_config
make dep
nohuo make bzImage 1>kernel.out 2>modules.err &
less kernel.out #check for errors
less modules.err #check for errors
#if all is well
make modules_install

then do the standard copies to the /boot
edit /etc/lilo.conf
lilo
reboot

And cross your fingers cause building and installing 2.6.# seems to break alot of stuff...
IMO 2.6 is buggy at least to slack. To much requires recompile or re-install after a kernel upgrade to 2.6
 
Old 05-31-2004, 07:39 PM   #5
postal26
Member
 
Registered: Dec 2003
Location: north carolina
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
Use this link

Use these directions, they worked perfect for me. I'm now running slack 9.1 with kernel 2.6.6. Follow the steps exactly.

http://www.geocities.com/jtarin47/linux/

Make sure you update module-init-tools to 3.0pre4 or u wont be able to
make the modules after u compile the kernel. Good luck :-)
 
Old 06-01-2004, 09:53 AM   #6
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Re: Problems updating Slackware 9.1 2.4.x kernel to 2.6.6

Quote:
Originally posted by WopMaster8

After that I would edit the lilo.conf file to be:

image = /boot/vmlinuz-2.6.6
label = Slackware-2.6.6
root = /dev/hdc2
read-only

And then run /sbin/lilo
one suggestion - don't delete the existing kernel, and add a new entry to lilo.conf instead of editing the existing one, plus add a "prompt" option to lilo.conf if you don't have one - then lilo will give you an option of which kernel to boot, and it gives you a way out if the new kernel won't boot for some reason.

(yes, I learned this the hard way )

 
Old 06-01-2004, 11:02 AM   #7
postal26
Member
 
Registered: Dec 2003
Location: north carolina
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
Wink nvidia drivers and kernel 2.6

If youre having problems with Nvidia drivers and kernel 2.6 get your Nvidia drivers here:

http://www.sh.nu/download/nvidia/linux-2.6/

They are patched for kernel 2.6.xx
 
Old 06-01-2004, 08:32 PM   #8
feend
Member
 
Registered: Nov 2003
Location: williamsburgland
Distribution: Slackware
Posts: 61

Rep: Reputation: 16
Quote:
Originally posted by Nichole_knc
My 2.6 version you don't have to make modules. It does it itself when you issues make.
That was the only difference between the steps of kernels 2.4 to 2.6
install the source
cd /usr/src
ln -s /usr/src/linux-2.6.# linux
make mrproper
make clean
make your_flavor_config
make dep
nohuo make bzImage 1>kernel.out 2>modules.err &
less kernel.out #check for errors
less modules.err #check for errors
#if all is well
make modules_install

then do the standard copies to the /boot
edit /etc/lilo.conf
lilo
reboot

And cross your fingers cause building and installing 2.6.# seems to break alot of stuff...
IMO 2.6 is buggy at least to slack. To much requires recompile or re-install after a kernel upgrade to 2.6
I had no issues w/ Slack 9.1 & 2.6.X . All I updated is core utilities just because I got over the uname -a being wrong.
L8tr
Feend
 
  


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
help! problems after updating udev for a 2.6.14 kernel! darksmiley Linux - General 5 12-02-2005 03:14 AM
Problems with updating LILO for a kernel recompile.. SocialEngineer Slackware 10 03-08-2005 06:05 PM
slackware kernel problems iarebob Slackware 19 01-29-2005 05:29 PM
Problems with updating kernel scoughlin Linux - Newbie 1 07-30-2003 04:21 AM
RH 7.3, Kernel, upgrade problems and updating drivers!!!!!!!!!!!! admedic Linux - Newbie 5 08-18-2002 08:25 PM

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

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