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 01-27-2005, 04:51 PM   #1
artistikone
Member
 
Registered: Jul 2003
Distribution: slackware-current
Posts: 76

Rep: Reputation: 15
Howto - 2.6.10


I'm assuming you have a working system, and are in X. You should also know somethings about your hardware. Preferably the type of hardware you will be using (IDE,SCSI,ISA,PCI etc) and any specific chipsets (motherboard and soundcard etc).

Open up a console. Goto your 'downloads' folder, or where ever you want to download the kernel source to. su to root.

[Download the source]
- wget http://www.kernel.org/pub/linux/kern...2.6.10.tar.bz2

[Extract the source]
- tar jxf linux-2.6.10.tar.bz2

[Move the source]
- mv linux-2.6.10 /usr/src/

[Change directories]
- cd /usr/src/

[Remove old symlink]
- rm -f linux

[Create new symlink]
- ln -s linux-2.6.10 linux

[Change into source directory]
- cd linux

[Setup lilo for the new kernel]
- vi /etc/lilo.conf

Add this above your current boot entry(changing /dev/hda1 to your root partition):

image = /boot/2.6.10/vmlinuz
root = /dev/hda1
label = 2.6.10
read-only
append="hdd=ide-cd"

Note: The "append=" line is only needed if you have a IDE CD/DVD Burner. If you do, change 'hdd' to it's location (hdb,hdc etc.).

[Make your boot directory]
- mkdir /boot/2.6.10

[Edit the Makefile]
- vi Makefile

Goto line 546. You should see "#export INSTALL_PATH=/boot". If not, search for "boot". Uncomment this line and edit it so it looks like this:

export INSTALL_PATH=/boot/2.6.10

[Make your kernel config file in X]
- make xconfig

Take your time here. Read over everything and make sure you have what you need selected. If you're not sure about something, google it. Here are some notes:

To get OSS Emulation working properly with ALSA, you need to set "Sound System Support" (soundcore) as BUILT-IN.

To get lm_sensors working, you need to build I2C as BUILT-IN. Be sure and select your chipset modules.

To use Power Mangagement (power saving modes), enable ACPI.

Disable anything that you obviously don't need, such as PCMCIA, RAID and SCSI if you don't have those devices.

If you want Frame Buffering support (nice looking boot up console), be sure and build it as BUILT-IN, as well as VESA and others in this tree.

If you're going to use SAMBA, enable SMBFS support. It's disabled by default.

If you're using ReiserFS, enable it. It's disabled by default, build it as BUILT-IN.

Disable LEGACY PTY (BSD) support. It breaks things(less & man) and isn't really needed. **If you have udev-050 or newer, you can leave Legacy PTY support enabled**


Once you're sure you have everything you need set, save the file and close the window.

[Make the kernel]
- make

[Install the kernel]
- make install

[Make the modules]
- make modules

[Install the modules]
- make modules_install

[Uh..reboot]
- reboot

If everything goes well, you should be running 2.6.10. If you receive any errors, or it fails, reboot back into your old kernel from the lilo prompt.

Don't forget to reinstall your graphics drivers before starting X. You only need to reinstall the kernel module if it's Nvidia, use the -anK options.

[Edit - Thanks for the lilo tip, forgot make install does it.]
[Edit - The append line was needed for my burner to work, remove it if you don't need it.]
[Edit - Removed 'make mrproper' as it's only needed on recompile]
[Edit - Added note about udev & Legacy PTY.]

Last edited by artistikone; 01-27-2005 at 05:56 PM.
 
Old 01-27-2005, 05:11 PM   #2
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
Quote:
append="hdd=ide-cd"
Surely this isn't needed? My DVD-ROM and DVD burner work fine without any such line.

What does need to be done though is to make sure any line that says 'append="hdc=ide-scsi"' or some such is removed or at least commented out, otherwise people scratch their heads and ask "Where has my drive gone?"

Quote:
Disable LEGACY PTY (BSD) support. It breaks things(less & man) and isn't really needed.
It breaks them because the udev rules in the 10.0 package are wrong/broken and need fixing (or upgrading to a newer udev package, such as one in -current)

Quote:
Nvidia drivers
ATi drivers also require rebuilding, but they are extremely fussy. Therefore, remove the fglrx package and remove the directory /lib/modules/fglrx, then reinstall the fglrx package, patch it for 2.6.10 then rebuild and load the module.
 
Old 01-27-2005, 05:29 PM   #3
eelriver
Member
 
Registered: May 2004
Location: san francisco
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165

Rep: Reputation: 30
This part isn't needed for a 2.6.* kernel

Quote:
[Make the modules]
- make modules
Doing "make" makes the boot images and the modules at the same time.
 
Old 01-27-2005, 05:33 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
...also...this is not needed :

---------------
[Remove old symlink]
- rm -f linux

[Create new symlink]
- ln -s linux-2.6.10 linux
----------------

that link is never used.

edit : also ...why issue " mkmrproper " on a fresh kernel-source ?

and.....you should run " lilo " after the new kernel-image is in place

egag

Last edited by egag; 01-27-2005 at 05:38 PM.
 
  


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
Routing Howto? pratheep_inn Linux - Networking 1 03-04-2005 11:38 AM
Telnet - HOWTO koodoo Linux - Newbie 9 02-22-2005 07:37 PM
VPN Howto lobo78 Linux - Networking 2 05-28-2004 02:18 PM
Howto update KDE and howto switch off kdm/gdm Canaris Linux - Software 1 06-15-2003 08:40 PM
hOwtO autOmOunt fadain Linux - Newbie 5 03-23-2003 01:56 AM

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

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