LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2004, 10:16 PM   #1
Eklipz
Member
 
Registered: Sep 2004
Posts: 85

Rep: Reputation: 15
Compiling a kernel


For compiling kernel v2.6.9 on slackware 10, would this method work correctly?

tar -xzvf linux-2.6.9
cd linux-2.6.9
make clean && make mrproper
make menuconfig
make
make modules_install
make install
cp System.map /boot/System.map-2.6.9
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.9
cp .config /boot/config-2.6.9
cd /boot
mkinitrd -c -k 2.6.9 -m reiserfs
<edit lilo file>
/sbin/lilo

I havent compiled a kernel in quite some time, or used linux for that matter - Ive been working on a software project for a professor in visual basic (blech), so I had put windows on my laptop. Now Im trying to reinstall slackware and update the kernel, and I am trying to do it all just from memory. Im wondering, though, before I go ahead and do it, if this will work correctly.
 
Old 11-05-2004, 10:49 PM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
This is how i do it and it works fine for me...here
 
Old 11-05-2004, 10:57 PM   #3
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
it's better to make a symlink to the kernel directory and work from there:

tar -zxvf linux-xyz.tar.gz
ln -s linux-xyz linux
cd linux

sometimes other things won't compile right if you do it the other way (e.g., radeon drivers).

Last edited by synaptical; 11-05-2004 at 10:59 PM.
 
Old 11-05-2004, 11:25 PM   #4
cinchel
LQ Newbie
 
Registered: Aug 2003
Posts: 10

Rep: Reputation: 0
in response to the edit lilo part is there more that should be added then the following:
Code:
image = /boot/vmlinuz-generic-2.6.7
  initrd = /boot/initrd.gz
  root = /dev/hda1
  label = Linux2.6
  read-only
  append="acpi=off apm=on"
will it be able to find the system.map and .config file that go with the new kernel...what i have been doing is sym linking the system.map-linux2.6.7 with system.map...but then i feel that makes it so that i have to boot only the 2.6.7 kernel


thanks for any help in advance...
cinchel
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 07:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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