Home page of this blog

Friday, September 6, 2013

Custom 64bit Kernel 3.11 optimized for i7

Introduction


After long time, I am using Ubuntu 12.04.3 for a weeks time. Was stuck in different OS and back to Ubuntu and using Kernel 3.10 optimized for i7

Kernel 3.11

Hearing some driver improvements for open source radeon driver. Could not test it as I dont own AMD Radeon card anymore. But here I have built the kernel for someone to give it a try

For more changes about kernel 3.11 see here

I based my kernel compilation based on my earlier article with some modifications

Here is the script I used as a text file

Here are the binaries for testing 



Here is the SHA256SUMS of the above

68415b5dc7d07897dc742b84d286071b7798ea14e9a612ad7232f0515d93f467  linux-headers-3.11.0-031100_3.11.0-031100.201309021735_all.deb
f75e109a856bcbc14710dcf5fcb5d97d7018f72e0915342ac26a3e2e808197e5  linux-headers-3.11.0-031100-i7_3.11.0-031100.201309021735_amd64.deb
9ed16a8dfba297c30b5d4bd46d351bc8c31fa5f0bcbac1edd5cd4a2a90f6f7a5  linux-image-3.11.0-031100-i7_3.11.0-031100.201309021735_amd64.deb
c7afa0bae884231b114a517838dd1699815a478c4e6aa5fe99427aee121f2bfb  Kernel3.11Build.txt

The script is self explanatory (and boring to explain)

Screenshot


7 comments:

  1. The script was not uploaded, so I reuploaded it

    ReplyDelete
  2. Hi! Thank you so much for answering my request.

    Unfortunately I couldn't put the graphics to work, so I'm back to 3.8. Even with the proprietary drivers Catalyst 13.8 beta it doesn't work, since it only has support to kernel 3.10. It manages to go into the log in screen but then the screen just goes black with the arrow of mouse (moving)

    If I follow your script making the "obvious" modification for the 3.10 kernel, would I be able to compile the 3.* kernel or is it trickier than that? I've never compiled a kernel myself, so I'm bit worried that I mess it up.

    ReplyDelete
    Replies
    1. I am using Kernel 3.10.11, I will upload its script and its binaries (I compiled with -march=native and I have i7 920, so it should work with later i7 processors)

      It is simple, you can try, even if it fails you wont get the binary to install. We feel scared until we get our feet wet with coding/building

      Try it, it will be fun

      Delete
    2. Follow the script as follows, copy each line, paste it and execute it, leave those lines starting with hash symbol #

      Once you are done with a single line in the script, proceed to the next line, this way you can execute it with confidence

      Delete
  3. hi, thanks for posting this guide/script. I followed step by step (3.11) but after some compiling i get the following error. Perhaps you know what i'm doing wrong? TIA:

    CC [M] drivers/scsi/ses.o
    CC [M] drivers/scsi/scsi_debug.o
    LD drivers/scsi/scsi_mod.o
    LD [M] drivers/scsi/scsi_tgt.o
    LD drivers/scsi/built-in.o
    In file included from /home/none/linux-3.11/include/linux/swab.h:4:0,
    from /home/none/linux-3.11/include/uapi/linux/byteorder/little_endian.h:12,
    from /home/none/linux-3.11/include/linux/byteorder/little_endian.h:4,
    from /home/none/linux-3.11/arch/x86/include/uapi/asm/byteorder.h:4,
    from /home/none/linux-3.11/include/asm-generic/bitops/le.h:5,
    from /home/none/linux-3.11/arch/x86/include/asm/bitops.h:516,
    from /home/none/linux-3.11/include/linux/bitops.h:22,
    from /home/none/linux-3.11/include/linux/kernel.h:10,
    from /home/none/linux-3.11/include/linux/cache.h:4,
    from /home/none/linux-3.11/include/linux/time.h:4,
    from /home/none/linux-3.11/include/linux/stat.h:18,
    from /home/none/linux-3.11/include/linux/module.h:10,
    from /home/none/linux-3.11/drivers/scsi/scsi_debug.c:28:
    /home/none/linux-3.11/drivers/scsi/scsi_debug.c: In function ‘dif_verify’:
    /home/none/linux-3.11/include/uapi/linux/swab.h:106:23: warning: ‘csum’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    (__builtin_constant_p((__u16)(x)) ? \
    ^
    /home/none/linux-3.11/drivers/scsi/scsi_debug.c:1736:6: note: ‘csum’ was declared here
    u16 csum;
    ^
    make[2]: *** [drivers] Error 2
    make[1]: *** [sub-make] Error 2
    make[1]: Leaving directory `/home/none/linux-3.11'
    make: *** [/home/none/linux-3.11/debian/stamps/stamp-build-i7] Error 2

    real 15m18.398s
    user 110m19.612s
    sys 3m19.740s

    ReplyDelete
    Replies
    1. I will try to check, it could vary due to the kernel configuration you have chosen

      Delete