Results 1 to 8 of 8

Thread: build custom kernel

  1. #1
    kipytkov NNTP User

    Default build custom kernel

    When I build the kernel 2.6.30 source, the rpm package is very big and needed or root filesystem 800-900 Mb. I use "make rpm" as described in Configure, Build and Install a Custom Linux Kernel - openSUSE.

    Help to understand why this is happening.

  2. #2
    Join Date
    Jun 2009
    Location
    South Carolina, US
    Posts
    25

    Default Re: build custom kernel

    I'm afraid I don't understand the question. What exactly IS the problem?
    Box: 790GX Chipset, AMD Phenom II 940 CPU OC'd @ 3.2GHz, 12 GB 1333 MHz RAM, RAID 5 @ 4,096 GB, ATI Radeon HD 4890 x 2, Thermaltake liquid-cooling, 1700w power supply. RamSLED x64 + KDE4 (Custom studio built SLED 11 base). Kernel 2.6.31rc-4.4.1

  3. #3

    Default Re: build custom kernel

    I made custom compiled kernel on OpenSuSE 11, but using classical method (make bzImage && make modules && make modules_install). Same thing happened to me. I investigated a little bit and found out that huge amount of hard disk space was took by freshly compiled modules (I believe it was arround 500 megs). Funny thing is that I tried to strip down kernel max.

    Don't know why is that happening, but I believe some more experienced OpenSuSE (when it comes to kernels) user could explain.

  4. #4
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: build custom kernel

    Usually, the SUSE kernel is split in different packages like -default, -base, -devel, -extra and -source. If you build it as a whole, (ie, no splitting) it's possible you'll get a large filesize

  5. #5
    Join Date
    Jun 2009
    Location
    South Carolina, US
    Posts
    25

    Default Re: build custom kernel

    If you're asking WHY it's so big, I've found that when I did an old fashioned kernel compilation, when I was building all the modules and whatnot, it ended up bloating to like 700-800 megs. Once it's finished, built, and running, and you clean up the source, it'll go back down to normal.
    Box: 790GX Chipset, AMD Phenom II 940 CPU OC'd @ 3.2GHz, 12 GB 1333 MHz RAM, RAID 5 @ 4,096 GB, ATI Radeon HD 4890 x 2, Thermaltake liquid-cooling, 1700w power supply. RamSLED x64 + KDE4 (Custom studio built SLED 11 base). Kernel 2.6.31rc-4.4.1

  6. #6
    kipytkov NNTP User

    Default Re: build custom kernel

    I build kernel with the same configuration on Debian, and got modules ~70 mb.
    What 800 MB???

  7. #7
    Join Date
    Jun 2008
    Location
    "Dickes D"
    Posts
    94

    Default Re: build custom kernel

    Hi there,

    have the same problem, searched for solution and found this thread. Build a custom kernel :

    - openSuSE 11.2 x86_64 (up-to-date)
    - openSuSE 11.2 Kernel Sources
    - Cloned Config fromm openSUSE default kernel
    - just some minor changes via menuconfig

    Everything's fine, BUT:

    All modules are approx. 10 times bigger .

    E.g.:

    All modules in /lib/modules/2.6.31.12-0.1-default/kernel/drivers/acpi = 350 KB [origin openSuSE Kernel]

    SAME modules in /lib/modules/2.6.31.12-0.1-default-nb-100317/kernel/drivers/acpi = 3.7 MB [my custom build]

    This sums up to ~ 120 MB vs. ~ 1 GB (all modules). What did I wrong ?

    Regards, pepun

  8. #8
    Join Date
    Jun 2008
    Location
    "Dickes D"
    Posts
    94

    Default [SOLVED] Re: build custom kernel

    Well, replying to myself:

    Disabled "> Kernel hacking > Compile the kernel with debug info (CONFIG_DEBUG_INFO)" and modules are as small as they should be

    I'm not sure why this was enabled, cause i simply cloned the original openSuSE-kernel-config and made some minor changes.

    Regards, pepun.

Posting Permissions

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