Results 1 to 10 of 10

Thread: Custom kernel using kernel-source

  1. #1

    Default Custom kernel using kernel-source

    Could anybody tell me how can i build a kernel rpm package using a bit modified config file? The only things i want to change is the preemption, cpu and Hz settings. I want it to stay as a 3 parts kernel package (base, extra etc. )

    Anyone knows how i can accomplish this?

    P.S. Using the kernel-source packages i understand i'll keep all the apparmor patches right?
    P.S.2 I managed to create custom kernels etc. but checkinstall doesn't seem to work with that one.
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

  2. #2

    Default Re: Custom kernel using kernel-source

    I understand that i need to copy kernel source directory to other directory and customize it there, after that i'd want to create a kernel-source and kernel-default packages.
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,487
    Blog Entries
    14

    Default Re: Custom kernel using kernel-source

    You posted this is in Applications. I cannot help you out on this one, but don't you think you'be better of putting this in Programming and Scripting?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4

    Default Re: Custom kernel using kernel-source

    What does it have to do with programming or scripting ?? There is no "kernel" section in these forums so i had to choose one
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,487
    Blog Entries
    14

    Default Re: Custom kernel using kernel-source

    Customizing a kernel to me has to do with programming and scripting. Editing sources or compiler scripts

    I doubted when I wrote it, it's just that customizing kernels is not a daily routine amongst users. It was meant as the gentlest suggestion to maybe get more attention for your matters.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6

    Default Re: Custom kernel using kernel-source

    If you say so
    Well i got around that problem, but i couldn't change it's identification name from default since it was bombing out

    The answer was stupid simple
    make cloneconfig (after that customize it with make menuconfig or make xconfig (GUI) )

    make rpm (create kernel-xxx and kernel-source-xxx)

    P.S.Right now i'm tuning it to have all needed modules built-in and the rest as modules
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,116
    Blog Entries
    15

    Default Re: Custom kernel using kernel-source

    Quote Originally Posted by BenderBendingRodriguez
    What does it have to do with programming or scripting ?? There is no
    "kernel" section in these forums so i had to choose one
    Hi
    If you grab the kernel src rpm then unpack it and add a patch, then
    move all the unpacked files and your patch to
    the /usr/src/packages/SOURCES directory then build it from there with
    rpmbuild -ba <name_of_spec_file>

    What are the config changes and what kernel?

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.21-0.1-default
    up 8 days 12:24, 2 users, load average: 0.23, 0.24, 0.19
    GPU GeForce 8600 GTS Silent - Driver Version: 180.51


  8. #8

    Default Re: Custom kernel using kernel-source

    What i did is that i used the default kernel-source package from oss repo (not the src.rpm), copied to a folder /home/<user>/build , customized it there (set preemptive, Hz to 1000, CPU arch to Core 2 and unticked some hardware i don't have and which is safe to not build (ISDN, RF, and some other). The only drawback was that i couldn't change the local version string and had to leave it as default (i installed the trace kernel to be able to install my custom one )

    I used the 2.7.27.23 (latest one for 11.1)

    P.S. By the way, the ext4 patches introduced in this kernel make the ext4 reliable as in 2.6.29 (are the patches backported or something?) ?
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,116
    Blog Entries
    15

    Default Re: Custom kernel using kernel-source

    Quote Originally Posted by BenderBendingRodriguez
    What i did is that i used the default kernel-source package from oss
    repo (not the src.rpm), copied to a folder /home/<user>/build ,
    customized it there (set preemptive, Hz to 1000, CPU arch to Core 2 and
    unticked some hardware i don't have and which is safe to not build
    (ISDN, RF, and some other). The only drawback was that i couldn't change
    the local version string and had to leave it as default (i installed the
    trace kernel to be able to install my custom one )

    I used the 2.7.27.23 (latest one for 11.1)

    P.S. By the way, the ext4 patches introduced in this kernel make the
    ext4 reliable as in 2.6.29 (are the patches backported or something?) ?

    Hi
    Have a read here;
    How To Compile A
    Kernel - The SuSE Way


    Not sure about the ext4 patches, I'm using ext4 on 11.2 m2 though.

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.21-0.1-default
    up 8 days 20:10, 3 users, load average: 0.00, 0.04, 0.00
    GPU GeForce 8600 GTS Silent - Driver Version: 180.51


  10. Default Re: Custom kernel using kernel-source

    Compile Kernel and Patch Kernel
    http://www.susethailand.com/index.php/en/compile-kernel


    Compile Kernel for Ext4 support on OpenSUSE 11.1
    http://www.susethailand.com/index.ph...le-kernel-ext4

Tags for this Thread

Posting Permissions

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