LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-25-2008, 12:17 PM   #1
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
kernel compilation and installation


i have never compiled a kernel, this is my first time i am doing it, please help me step by step i wanted my kernel to be compiled in such a manner that it should support 32 bit with all available features.
my first step is

wget ftp://ftp.kernel.org/pub/linux/kerne...2.6.28.tar.bz2

please explain me what should i do next.

Last edited by hasanatizaz; 12-25-2008 at 12:23 PM.
 
Old 12-25-2008, 12:56 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at
http://www.cyberciti.biz/tips/compil...kernel-26.html

Last edited by repo; 12-25-2008 at 01:01 PM.
 
Old 12-25-2008, 01:01 PM   #3
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
wew i am already watching this page, but previously when i tried to do it i left my pc unbootable. i am not sure which options to select once i reach, make menuconfig
 
Old 12-25-2008, 01:08 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
for that, you need to know all the hardware of your computer, in order to make the right choices.
Was the computer unbootable with the new kernel or...
Make sure to change lilo or grub in order to boot from the old kernel in case the new kernel doesn't work.
 
Old 12-25-2008, 01:17 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <Linux-Kernel> and has been moved at the OPs request to help the thread/question get the exposure it deserves.
 
Old 12-25-2008, 01:24 PM   #6
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
yes the machine was left unbootable with the new kernel, i don't use grub.conf i use to mount everything manually once the pc starts, let me do it again, if i don't know or stuck somewhere i will ask.
thanks.
 
Old 12-25-2008, 01:26 PM   #7
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
its asking me
Choose SLAB allocator
> 1. SLAB (SLAB)
2. SLUB (Unqueued Allocator) (SLUB) (NEW)
choice[1-2?]:

which one to select ?
 
Old 12-25-2008, 02:11 PM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by hasanatizaz View Post
its asking me
Choose SLAB allocator
> 1. SLAB (SLAB)
2. SLUB (Unqueued Allocator) (SLUB) (NEW)
choice[1-2?]:

which one to select ?
Normally you would just press enter to take the default; in this case, 1.
 
Old 12-25-2008, 02:16 PM   #9
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
* Processor type and features
*
Tickless System (Dynamic Ticks) (NO_HZ) [N/y/?] (NEW)

this machine is Quad Core Q6600. with 2 GB ram.
 
Old 12-25-2008, 02:17 PM   #10
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
High Resolution Timer Support (HIGH_RES_TIMERS) [N/y/?] (NEW)
Symmetric multi-processing support (SMP) [Y/n/?]
Enable MPS table (X86_MPPARSE) [Y/n/?]
Subarchitecture Type
1. PC-compatible (X86_PC)
2. AMD Elan (X86_ELAN)
> 3. Generic architecture (X86_GENERICARCH)
choice[1-3]:
NUMAQ (IBM/Sequent) (X86_NUMAQ) [N/y/?] n
Summit/EXA (IBM x440) (X86_SUMMIT) [N/y/?] n
Support for Unisys ES7000 IA32 series (X86_ES7000) [N/y/?]
Support for big SMP systems with more than 8 CPUs (X86_BIGSMP) [N/y/?] n
RDC R-321x SoC (X86_RDC321X) [N/y/?] (NEW)
Single-depth WCHAN output (SCHED_NO_NO_OMIT_FRAME_POINTER) [Y/n/?] (NEW)

Last edited by hasanatizaz; 12-25-2008 at 02:18 PM.
 
Old 12-25-2008, 02:19 PM   #11
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Check for low memory corruption (X86_CHECK_BIOS_CORRUPTION) [N/y/?] (NEW)

Reserve low 64K of RAM on AMI/Phoenix BIOSen (X86_RESERVE_LOW_64K) [Y/n/?] (NEW)

MTRR cleanup support (MTRR_SANITIZER) [Y/n/?] (NEW)

x86 PAT support (X86_PAT) [N/y/?] (NEW)

Last edited by hasanatizaz; 12-25-2008 at 02:20 PM.
 
Old 12-25-2008, 02:21 PM   #12
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Enable seccomp to safely compute untrusted bytecode (SECCOMP) [N/y/?] n
Timer frequency
1. 100 HZ (HZ_100)
2. 250 HZ (HZ_250)
3. 300 HZ (HZ_300) (NEW)
> 4. 1000 HZ (HZ_1000)
choice[1-4?]:
 
Old 12-25-2008, 02:22 PM   #13
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Physical address where the kernel is loaded (PHYSICAL_START) [0x100000] (NEW)
Build a relocatable kernel (EXPERIMENTAL) (RELOCATABLE) [Y/n/?] y
Alignment value to which kernel should be aligned (PHYSICAL_ALIGN) [0x400000] 0x400000
Support for hot-pluggable CPUs (HOTPLUG_CPU) [Y/?]
Compat VDSO support (COMPAT_VDSO) [N/y/?]
Built-in kernel command line (CMDLINE_BOOL) [N/y/?] (NEW)
 
Old 12-25-2008, 02:25 PM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Hi,

In general the default values are OK
You only need to change things if you want something special for your hardware.
 
Old 12-25-2008, 02:25 PM   #15
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
* Power management and ACPI options
*
Power Management support (PM) [Y/n/?]
Power Management Debug Support (PM_DEBUG) [N/y/?]
Suspend to RAM and standby (SUSPEND) [Y/n/?] (NEW)
Hibernation (aka 'suspend to disk') (HIBERNATION) [N/y/?] (NEW)
*
* ACPI (Advanced Configuration and Power Interface) Support
*
ACPI (Advanced Configuration and Power Interface) Support (ACPI) [Y/n/?]
Deprecated /proc/acpi files (ACPI_PROCFS) [N/y/?] (NEW)
Deprecated power /proc/acpi directories (ACPI_PROCFS_POWER) [Y/n/?] (NEW)
Future power /sys interface (ACPI_SYSFS_POWER) [Y/n/?] (NEW)
Deprecated /proc/acpi/event support (ACPI_PROC_EVENT) [Y/n/?] (NEW)
AC Adapter (ACPI_AC) [M/n/y/?]
Battery (ACPI_BATTERY) [M/n/y/?]
Button (ACPI_BUTTON) [M/n/y/?]
Fan (ACPI_FAN) [Y/n/m/?]
Dock (ACPI_DOCK) [Y/n/?]
Processor (ACPI_PROCESSOR) [Y/n/m/?]
Thermal Zone (ACPI_THERMAL) [Y/n/m/?]
WMI (EXPERIMENTAL) (ACPI_WMI) [N/m/y/?] (NEW)

ASUS/Medion Laptop Extras (ACPI_ASUS) [M/n/y/?]
Toshiba Laptop Extras (ACPI_TOSHIBA) [M/n/y/?]
Disable ACPI for systems before Jan 1st this year (ACPI_BLACKLIST_YEAR) [1999]
Debug Statements (ACPI_DEBUG) [N/y/?]
PCI slot detection driver (ACPI_PCI_SLOT) [N/m/y/?] (NEW)
 
  


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
NO /usr/src/kernel directory & Kernel Compilation PankajDS Linux - Kernel 5 01-24-2008 01:48 AM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
Kernel Compilation and Installation help for 2.6.8 kallan Linux - Newbie 6 08-25-2004 01:26 PM
kernel compilation/installation Robert0380 Linux - Software 1 06-15-2003 08:28 AM
Kernel compilation & installation phyrenees Linux - General 3 05-18-2002 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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