Find the answer to your Linux question:
Results 1 to 7 of 7
can i have the full steps to compile my kernel i mean the steps that i must do it in shell like Code: make dep make bzImage etc i have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Location
    Bahrain
    Posts
    12

    i want the full steps to compile the kernel


    can i have the full steps to compile my kernel
    i mean the steps that i must do it in shell
    like
    Code:
    make dep
    make bzImage
    etc
    i have mandrake 9.1 Bamboo
    i want to compile the new one 2.6.8.1
    thanks a lot

  2. #2
    Just Joined!
    Join Date
    Sep 2004
    Posts
    26
    Ive had nothing but problems trying to update a mandrake kernel but here ya go

    • first go and get the source tree and extract it
    • in the directory it just created, as root, type "make xconfig"
    • search through and make sure all your hardware is checked off as modules
    • search through and see if there is anything else you want compiled in or whatever
    • save and exit the xconfig
    • type "make bzImage && make modules && make modules_install"
    • copy the bzImage file that resides in arch/i386/ to /boot and rename it something apropriate, like vmlinuz-2.6.9-rc2 or whichever kernel you got
    • edit /etc/lilo.conf to put your new kernel in
    • IMPORTANT: be sure and run the /sbin/lilo command on your system may not boot back up
    • reboot and choose your new kernel
    • enjoy =)

  3. #3
    jzh
    jzh is offline
    Just Joined!
    Join Date
    Sep 2004
    Location
    BeiJing, China
    Posts
    3
    first change the current directory to /usr/src/linux-xxx/include

    1. if link 'asm' doesn't exist, use 'ln -s asm-i386 asm'

    //generate the kernel config file
    2. make menuconfig(config...)

    //generate the kernel image file, modules
    3. make all

    //install modules to /lib/modules/
    4. make modules_install

    //install the kernel image to /boot
    5. make install

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie zdawg's Avatar
    Join Date
    Jan 2004
    Location
    Canada
    Posts
    218
    rm -f /usr/src/linux && ln -sf /usr/src/linux-2.6.8<version if
    any>
    cd /usr/src/linux && make menuconfig
    <select all needed, pay close attention to processor and filesystems ... know your hardware (lspci can help there)
    make install && make modules modules_install
    (If /boot is already mounted then this should also copy the image there, otherwise cp it to /boot)
    Me & Myself just ganged up on I....... Now We all have problems..and none of Us are speaking!
    bash-3.00$ uname -a
    SunOS sparky 5.11 OpenSolaris-swa sun4u sparc SUNW,Ultra-Enterprise

  6. #5
    Just Joined!
    Join Date
    Sep 2004
    Posts
    7

  7. #6
    Just Joined!
    Join Date
    Oct 2004
    Posts
    4

    I can not find the /usr/src/linux-xxx/include dir

    Hi,

    I installed RH9.0.
    Now I need to compile and install the linux-wlan driver. The compilation requires the kernel to be at least configured.

    So I choose add/remove application and install kernel source from the RH9.0 installation CD. In the directory "/usr/src/linux-2.4.20-8/" I found something new, such as a Makefile, a 'Document' dir, and etc. HOWEVER, I can not find include dir, why? Ofcause, I can not config the kernel compilation without 'include' directory.

    Thanks,
    Hill

    Quote Originally Posted by jzh
    first change the current directory to /usr/src/linux-xxx/include

    1. if link 'asm' doesn't exist, use 'ln -s asm-i386 asm'

    //generate the kernel config file
    2. make menuconfig(config...)

    //generate the kernel image file, modules
    3. make all

    //install modules to /lib/modules/
    4. make modules_install

    //install the kernel image to /boot
    5. make install

  8. #7
    Linux Newbie
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    112
    I found this link preety simple and east to understand and follow.
    Red Hat Kernel Compilation
    bigunix.blogspot.com
    Registered Linux User: #476440

Posting Permissions

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