Linux Support FAQ entry 13 May 2005, logged in as JanIven
LinuxSupportFAQForm
SupportProblem I want to recompile the kernel to include my XYZ driver ? Where's the config ?

SupportAnswer Kernel sources are installed from package kernel-source-VERSION-RELEASE.i386.rpm into /usr/src/linux-VERSION-RELEASE. For convenience, a symbolic link /usr/src/linux-2.4 is made; it points to most recently installed kernel source package - this has nothing to do with which kernel is currently running. The config file matching your running kernel can be found in /usr/src/linux-2.4/configs/ with name kernel-VERSION-ARCH-ADDON.config where:
  • ARCH is one of: athlon, i386, i586 or i686.
  • ADDON can be smp or hugemem.
Choose a config file matching your architecture: You can see it using uname -a (ALERT! A word of warning: athlon is reported as i686 by uname !)

Next proceed in the following way:

cd /usr/src/linux-2.4
make mrproper
cp configs/YOUR.config .config
make your changes/patches etc. (Don't forget to adjust EXTRAVERSION in top level Makefile!)
make oldconfig
(then perhaps =make config/xconfig/menuconfig= if you need to enable different options)
make dep; make ; make modules
The obtained kernel will preserve all original kernel settings that you didn't explicitly override (this is done using make oldconfig).
OsVersion SLC3
HardwareArchitecture any
ApprovedBySupport SupportApproved
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2006-05-19 - JanIven
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LinuxSupport All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback