LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-07-2006, 06:41 AM   #1
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Rep: Reputation: 30
kernel?


I'm new to slackware and I just installed Slackware 11, I went with the 2.4.x kernel on the CD, Now I'd like to get the latest kernel and get up to speed.
 
Old 10-07-2006, 07:08 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
download the full source for the latest at kernel.org to /usr/src
The steps should be something like this

cd /usr/src
wget http://kernel.org/pub/linux/kernel/v....6.#.#.tar.bz2
tar xvjf linux-2.6.#.#.tar.bz2 ./
cd linux-2.6.#.#
make menuconfig
{make the changes necessary for your hardware}
make && make modules && make modules_install
cp arch/i386/boot/bzImage /boot/kernel-2.6.#.#
vi /etc/lilo.conf
{add new kernel entry to lilo, save and exit}
lilo <- rewrites lilo to MBR
reboot
enjoy
 
Old 10-08-2006, 05:39 AM   #3
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Original Poster
Rep: Reputation: 30
Thanks Ace, But I'm not sure about this part, What do I have to do to my hardware? Never did it before or I don't have a clue.
make menuconfig
{make the changes necessary for your hardware}
make && make modules && make modules_install

Thanks
 
Old 10-08-2006, 05:42 AM   #4
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
I suggest you go and read these 2 threads on your own: http://www.linuxquestions.org/questi...d.php?t=127095 and http://www.linuxquestions.org/questi...d.php?t=174447.
 
Old 10-08-2006, 06:03 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
If you're new to kernel compiling, why don't you just try the Slackware pre-compiled 2.6.17.13 packages?
Get the kernel-generic-2.6.17.13-i486-1.tgz , kernel-modules-2.6.17.13-i486-1.tgz and kernel-source-2.6.17.13-noarch-1.tgz packages from http://slackware.osuosl.org/slackwar...nux-2.6.17.13/ or any other mirror (or the Slackware DVD) and install those. Add a section to the bottom of /etc/lilo.conf that looks like this (change the "root" device to where you actually installed your Slackware):
Code:
image = /boot/vmlinuz-generic-2.6.17.13
  root = /dev/hda1
  label = linux26
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
and run the command "lilo" to activate the changes to /etc/lilo.conf

After reboot you should have the choice to boot to "linux26" from the LILO boot menu. When you are comfortable with the new 2.6 kernel and its differences from the 2.4 kernel (and using udev on your system!!!) only then start messing around with building your own. A short article on building my own kernels is here : http://alien.slackbook.org/dokuwiki/...kernelbuilding

Eric

Eric
 
Old 10-08-2006, 07:32 AM   #6
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
Or if you really want to use the newest version try the 2.6.18 kernel packages from the /testing directory. This is the latest on kernel.org too. Mostly of what Alien Bob posted will apply here too, just a few minor diferences (version number, packages path) which shouldn't present any problems.
 
Old 10-08-2006, 07:43 AM   #7
cowyn
Member
 
Registered: Oct 2006
Location: Hangzhou, China
Distribution: Slackware
Posts: 49

Rep: Reputation: 15
u can use slack-desc & kernel-generic.SlackBuild and so to build a kernel of your own.
 
  


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
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel includes at /usr/src/linux/include do not match current kernel. blanny Red Hat 1 03-09-2006 07:53 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM

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

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