LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   New Kernel (https://www.linuxquestions.org/questions/slackware-14/new-kernel-501578/)

tamtam 11-14-2006 02:33 PM

New Kernel
 
I am thinking of a new kernel. I would like to know what would be easier to install the 2.6.17.13 kernel from /extra on the installation disk or download the kernel and follow Shilos how i do it post.

Does using the tgz package do all the configuration itself or does it merely install the kernel for configuration manually. And which one should I use. Why would I use one over another.

Forgive my ignorance, I have installed a kernel before using shilos excellent post but on another machine with slack 10.2.

Vincent_Vega 11-14-2006 03:19 PM

The packaged one on the CD is easier but you would eventually want to streamline your kernel to suit your system.
If you do the package, make sure you install both the kernel and the modules. NOT the headers, based on my own experiences.
You might also want to edit your lilo.conf so that you could boot into the other 2.4.xxx kernel, as the package installation process will not do that for you.

Frank Soranno 11-14-2006 04:01 PM

How do you install from CD? What are the steps?

Crushing Belial 11-14-2006 04:16 PM

Quote:

Originally Posted by Frank Soranno
How do you install from CD? What are the steps?

Unless you have no network connectivity, I recommend downloading slackpkg from here, and using that to install official packages, and to keep a system in sync.

do "installpkg slackpkg-2.09-noarch-1.tgz", and then open up your favorite text editor and uncomment ONE mirror from the list in "/etc/slackpkg/mirrors".

Then do "slackpkg update", and "slackpkg upgrade-all"

and then do "slackpkg search kernel" pick whatever kernel you need, and install it with "slackpkg install kernel-generic-2.6.17.13-i486-1" for an example. Once installed just edit Lilo or GRUB and add the new kernel. It will automatically set everything else up for you. You should also install the corresponding modules, headers, and source packages.

allend 11-14-2006 05:59 PM

I found the upgrade from 2.4.33.3 kernel to the 2.6.17.13 kernel was relatively straight forward.

1. Locate and print off a copy of README.initrd.
2. Install 2.6.17.13 kernel and kernel module packages. (Pat V. recommends that the 2.4.33.3 kernel headers be retained, unless you find a pressing need to do otherwise.)
3. Follow the instructions in README.initrd.
4. Check that the symlink /etc/rc.d/rc.modules points to your rc.modules-2.6.17.13 (Not necessary for booting, but is a convenience for editing)
5. Edit the rc.modules to suit your hardware if required.
6. Make sure that you have udev-0.97 installed.
7. Make /etc/rc.d/rc.hotplug non-executable.
8. Make /etc/rc.d/rc.udev executable.

A couple of finer points that I came across were:
a) I have a PS2 mouse. I needed to comment out the mouse setup in my Xorg.conf and change to Auto for correct mouse operation in X.
b) I needed to add my users to the tty group so that they had appropriate permissions for some basic system operations (such as opening a shell).
c) Where I had append="hdc=ide-scsi" in /etc/lilo.conf I changed to append="hdc=ide-cd" to support my CD-RW.

tamtam 11-15-2006 01:36 PM

allend says
Quote:

2. Install 2.6.17.13 kernel and kernel module packages. (Pat V. recommends that the 2.4.33.3 kernel headers be retained, unless you find a pressing need to do otherwise.)
Okay, how do I retain the headers, exactly.

BCarey 11-15-2006 03:18 PM

Quote:

Originally Posted by tamtam
allend says


Okay, how do I retain the headers, exactly.

By not installing the 2.6.17.13 headers.

tamtam 11-15-2006 03:51 PM

okay, stuck here, choose to install kernel from /extra on the cd, following the instructions as per README.initrd.

Quote:

The easiest way to make the initrd is to use the mkinitrd script included
in Slackware's mkinitrd package. We'll walk through the process of
upgrading to the 2.6.17.13 Linux kernel using the packages found in
Slackware's extra/linux-2.6.17.13/ directory.

First, make sure the kernel, kernel modules, and mkinitrd package are
installed (the current version numbers might be a little different, so
this is just an example):

installpkg kernel-generic-2.6.17.13-i486-1.tgz
installpkg kernel-modules-2.6.17.13-i486-1.tgz
installpkg mkinitrd-1.0.1-i486-1.tgz

Change into the /boot directory:
Where do I get mkinitrd-1.0.1-i486-1.tgz package or equivalent..cant find it in /extra or sclackware disc 2.

run the following in the shell...
Quote:

root@home:/home/tam# slackpkg search mkinitrd

The list below shows all packages with the selected pattern.

[ installed ] - mkinitrd-1.0.1-i486-3

root@home:/home/tam# slocate mkinitrd
/var/log/packages/mkinitrd-1.0.1-i486-3
/var/log/scripts/mkinitrd-1.0.1-i486-3
/usr/doc/mkinitrd-1.0.1
/usr/doc/mkinitrd-1.0.1/README.initrd
/usr/man/man8/mkinitrd.8.gz
/usr/sbin/mkinitrd
/usr/share/mkinitrd
/usr/share/mkinitrd/initrd-tree.tar.gz
root@home:/home/tam#
any ideas?

xflow7 11-15-2006 04:00 PM

What is your question? It appears you have mkinitrd installed (albeit a newer build) and should be good to go making your initrd file per the instructions in the README.

tamtam 11-15-2006 04:03 PM

Got mkinitrd-1.0.1-i486-3 from disk 1...:)

Vincent_Vega 11-15-2006 08:34 PM

Just install the kernel and the modules. Reboot and you should be fine. I was.

tamtam 11-16-2006 12:34 PM

okay, installed the packages except headers :)

Edited lilo.conf to include both kernels.

run /sbin/lilo

On reboot still only getting the choice of one kernel, 2.4.33.3

tamtam 11-16-2006 12:51 PM

Contents of lilo...
Quote:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda1
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz-ide-2.4.33.3
root = /dev/hda1
label = Linux24333
read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.17.13
initrd = /boot/initrd.gz
root = /dev/hda1
label = Lnx261713
read-only
# Linux bootable partition config ends
Anybody any idea why I am getting only the 2.4.33.3 Kernel as a choice on reboot...

capn_hector 11-16-2006 01:14 PM

whats the output when you run lilo, you should get
added linux2433 *
added lnx262723

if not something is not happening right when you run lilo

tamtam 11-16-2006 01:19 PM

I get...

/sbin/lilo
Added Linux24333 *
Added Lnx261713

Still only getting the one choice (:


All times are GMT -5. The time now is 10:39 PM.