Find the answer to your Linux question:
Results 1 to 3 of 3
Hi folks, LFS 6.1 FC3 Host I'm prepared to recompile kernel on chroot environment to select some modules/options. @localhost.localdomain : /root@localhost:/sources/wvstreams-4.0.1# find / -name linux -type d Code: ... ... ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,790

    Recompile kernel question


    Hi folks,

    LFS 6.1
    FC3 Host

    I'm prepared to recompile kernel on chroot environment to select some modules/options.

    @localhost.localdomain : /root@localhost:/sources/wvstreams-4.0.1# find / -name linux -type d
    Code:
    ...
    ...
    /tools/include/linux
    /usr/include/linux
    ...
    I suppose /usr/include/linux is the kernel source.

    @localhost.localdomain : /root@localhost:/sources/wvstreams-4.0.1# ls /usr/include/linux/
    Code:
    8250_pci.h         cyclades.h              icmp.h               keyboard.h          parport_pc.h       smb_mount.h
    acct.h             cycx_cfm.h              icmpv6.h             keyctl.h            parser.h           smbno.h
    After "cd /usr/include/linux/" I suppose to run following commands

    -make menuconfig
    -make
    -make modules_install

    "make mrproper" can be left out. Is it "make menuconfig" bringing up the small window for selecting modules/options???

    Please advise if I'm wrong. TIA

    B.R.
    satimis

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    I'm not sure if it's wrong by LFS standards, but usually one downloads and unpacks the kernel to /usr/src/ and then make a symlink from /usr/src/linux to /usr/src/linux-2.6.12.1 (or whatever the downloaded kernel is). Make the symlink with
    Code:
    ln -s /usr/src/linux-2.6.12.1 /usr/src/linux
    and then cd into /usr/src/linux and then make menuconfig etc...
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4
    Dylunio is right.
    But in RHEL4 I found sourses in /usr/src/kernels

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •