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 02-24-2006, 03:50 AM   #1
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Rep: Reputation: 15
Talking How do I install the latest 2.6 kernel from the Slack FTP?


I was wondering how to install the latest kernel from the Slackware FTP? Wouldnt I have problems with the modules that my current system have? Or would it come with all the necessary hardware components detected?
 
Old 02-24-2006, 03:55 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
the kernel comes with all the modules compiled and runs them according to your hardware.

i would recommend using both the 2.4.x kernel and the 2.6. you'll need to edit /etc/lilo.conf to point to your new kerel (the run /sbin/lilo).

don't remove the line about your old kernel, in case the new one doesnt work.
if you've got the nvidia driver compiled that wont work and you'll need to run the setup script again....
 
Old 02-24-2006, 04:15 AM   #3
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
get the kernel, bzImage from where ever u like
put it in /boot and if u want rename it to "vmlinuz-2.6.15"
#mv bzImage /boot/vmlinuz-2.6.15
install modules for that
(download the package correspond to kernel, module package for kernel
#installpkg xxx.tgz, it will go to /usr/lib/mod... )

editn lilo
----------
image = /boot/vmlinuz-2.6.15
root = /dev/hda1 <-- put your / (root/boot) partition here
label = 2.6.15 <-- or lin2.6
read-only
----------
run lilo
#lilo
#shutdown -r now
if problems then we will c ;^)
enjoy
 
Old 02-24-2006, 09:54 AM   #4
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Original Poster
Rep: Reputation: 15
ok. thanks for the suggestions. ill try those later.
 
Old 02-24-2006, 01:03 PM   #5
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Newer kernel may need newer alsa driver.When will one need new kernel-headers pkg too?
 
Old 02-24-2006, 06:57 PM   #6
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
the 2.6.15.3 kernel available on the slack site is accompanied by the alsa driver, the source, the modules and the headers...
 
Old 02-25-2006, 12:21 PM   #7
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
The 2.6.13 kernel in SW10.2 uses 2.4.31 kernel headers pkg. So for 2.6.15x kernel pkg we use the 2.6.15x kernel- headers pkg? How is gcc version affected? Are there other pkgs affected?
 
Old 02-25-2006, 01:42 PM   #8
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
no 2.6.13 uses the 2.6.13 kernel headers. how would that work??

from my machine:

Quote:
root@blue:~# lspkg |grep -i kernel
kernel-generic-2.6.13-i486-1
kernel-headers-2.6.13-i386-1
kernel-modules-2.6.13-i486-1
kernel-source-2.6.13-noarch-1
i used the stock 2.6.13 kernel from /testing. i had to change the alsa packages (which are on this disc with the kernel) and i made an "initrd".

Quote:
root@blue:~/scripts# lspkg|grep -i alsa
alsa-driver-1.0.9b_2.6.13-i486-1
alsa-lib-1.0.9-i486-1
alsa-oss-1.0.9-i486-1
alsa-utils-1.0.9a-i486-2
if you're interested here is the script i used to list my packages(not written by me)

Code:
#!/bin/sh
#*******************************************************************************# Name: lspkg
#
# A Slackware tool which simply lists the currently installed packages.
#
# Originally written by CTWaley (a.k.a., thegeekster) and originally posted in
# the Slackware forum at LinuxQuestions.org,
#
#
# This program is given to the Public Domain and is free software. You can
# redistribute it and/or modify it without restriction of any kind.
#
# It distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
#*******************************************************************************
case $1 in
  -h | --help )  # If -h (--help) is given as an argument, show the usage.
    cat << __EOF__

Usage: lspkg [ ... ]

Lists the Slackware packages currently installed. If no argument is
given, it will output all packages currently installed. If an argument
is given on the command line, it will look for the package name matching
the pattern(s) supplied. More than one package name or pattern may be
given on the command line.

Use the wildcards * and ? when looking for a package name containing the
characters supplied on the command line. For example, to find a package
containing the word "lib", but does not necessarily begin with "lib",
use one of the patterns "*lib", "?lib", "??lib" or even "??lib*". To see
if you have both "bzip" and "bzip2" installed on your system, you can
use the search term "bzip?".  You may also enclose the search pattern in
single quotes (') or double quotes (") to avoid the shell interpeter from
interfering with the search term when using the wildcard characters.

__EOF__
    ;;
  * )
    [ -z $1 ] && 'ls' /var/log/packages/ | less \
    || {
      while [ ! -z $1 ]
      do
        pkg=`echo $1 | sed 's/\./\\./g; s/\*/.*/; s/\?/.?/g'`
        'ls' /var/log/packages/ | egrep -i "^$pkg\>"
        shift
      done | more
    }
esac

Last edited by satinet; 02-25-2006 at 01:44 PM.
 
Old 02-25-2006, 06:46 PM   #9
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Original Poster
Rep: Reputation: 15
I tried installing the latest kernel from the repository way back a few weeks ago and to my dissapointment even after pointing everything to the new config, bzImage and System.map, apparently the kernel is looking for the old config or modules which makes the new one unusable. Maybe that's what ye mean by the 2.6 using the 2.4 headers. Anyway, I could be wrong, just sharing my experience. Now im trying to install it again and hopefully I could do it right this time.
 
Old 02-26-2006, 04:06 AM   #10
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
hi

instructions on how to do it are on the disk along with the kernel.

it explains about installed the new packages and install alsa etc.

i think it's in /testing on disk 2
 
  


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
How to FTP online install latest SuSE jimothy05 SUSE / openSUSE 15 02-13-2005 01:38 AM
How do i install the latest kernel for suse 8.2 ginda Linux - Newbie 5 02-05-2005 03:34 AM
Latest Wine + Slack 9.1 dufferin Slackware 5 12-20-2004 01:36 AM
Howto install Woody with latest kernel? hellwoofer Debian 3 08-13-2003 12:15 PM
I would like to build/install latest kernel for mandrake. 2016 Linux - Newbie 7 01-07-2003 02:31 PM

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

All times are GMT -5. The time now is 06:46 AM.

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