Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-20-2004, 12:27 AM
|
#1
|
|
LQ Newbie
Registered: May 2004
Distribution: Slackware 10.1
Posts: 7
Rep:
|
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.
|
|
|
|
05-20-2004, 12:39 AM
|
#2
|
|
Member
Registered: Dec 2003
Location: Next to Equator
Distribution: GNU/Linux 2.6.14
Posts: 382
Rep:
|
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.
|
|
|
|
05-20-2004, 10:40 AM
|
#3
|
|
LQ Newbie
Registered: May 2004
Distribution: Slackware Current - 2.6 kernel
Posts: 15
Rep:
|
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!
|
|
|
|
05-20-2004, 08:23 PM
|
#4
|
|
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:
|
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
|
|
|
|
05-31-2004, 07:39 PM
|
#5
|
|
Member
Registered: Dec 2003
Location: north carolina
Distribution: Slackware
Posts: 33
Rep:
|
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 :-)
|
|
|
|
06-01-2004, 09:53 AM
|
#6
|
|
Member
Registered: Dec 2002
Distribution: Slackware
Posts: 927
Rep:
|
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  )

|
|
|
|
06-01-2004, 11:02 AM
|
#7
|
|
Member
Registered: Dec 2003
Location: north carolina
Distribution: Slackware
Posts: 33
Rep:
|
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
|
|
|
|
06-01-2004, 08:32 PM
|
#8
|
|
Member
Registered: Nov 2003
Location: williamsburgland
Distribution: Slackware
Posts: 61
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:34 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|