Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Processor type is not in the kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Wed Mar 05, 2014 7:02 pm    Post subject: Processor type is not in the kernel Reply with quote

Hi, in the kernel config there isn't my processor type. The option that would be for my kernel is core2/newer xeon, but isn't this too much "generic"? Is there a way to select my processor or even compile with native option?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Mar 05, 2014 7:08 pm    Post subject: Reply with quote

The kernel has always included only broad architecture types like that. If you're feeling adventurous, though, see Kernel patch for additional CPU for GCC optimizations.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Wed Mar 05, 2014 7:16 pm    Post subject: Reply with quote

Thank you, could you tell me also how to apply that patch. Excuse me but I'm still a noob
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Mar 05, 2014 7:52 pm    Post subject: Reply with quote

This is well documented elsewhere. (As you might imagine, you're not the first one to want to learn how to apply a kernel patch.) Google around and, if you have a specific question about what you find, let me know. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Thu Mar 06, 2014 3:15 pm    Post subject: Reply with quote

I copied the content of the patch in a text file then applied it with patch p1 < filename but I have these errors
Code:
patching file arch/x86/include/asm/module.h
patching file arch/x86/Kconfig.cpu
Hunk #1 FAILED at 139.
Hunk #2 FAILED at 147.
Hunk #3 FAILED at 155.
Hunk #4 FAILED at 251.
Hunk #5 FAILED at 260.
Hunk #6 succeeded at 276 with fuzz 2.
Hunk #7 FAILED at 313.
Hunk #8 FAILED at 344.
Hunk #9 FAILED at 376.
8 out of 9 hunks FAILED -- saving rejects to file arch/x86/Kconfig.cpu.rej
patching file arch/x86/Makefile
Hunk #1 FAILED at 61.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/Makefile.rej
patching file arch/x86/Makefile_32.cpu
Hunk #1 FAILED at 23.
Hunk #2 FAILED at 32.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/Makefile_32.cpu.rej
Back to top
View user's profile Send private message
emc
Guru
Guru


Joined: 02 Jul 2004
Posts: 543
Location: Cracow, Poland

PostPosted: Fri Mar 07, 2014 2:20 pm    Post subject: Reply with quote

just:
Code:
cd /usr/src/linux
wget https://raw.github.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc.patch
patch -p1 < enable_additional_cpu_optimizations_for_gcc.patch

I suggest choose in kernel config:
    Processor type and features -->
    Processor family -->
    Native optimizations autodetected by GCC

CONFIG_MNATIVE=Y
for best results, most of times GCC is smarter then you ;)
Back to top
View user's profile Send private message
SirRobin2318
Apprentice
Apprentice


Joined: 24 Apr 2004
Posts: 241
Location: Strasbourg, france.

PostPosted: Fri Mar 07, 2014 2:29 pm    Post subject: Reply with quote

You should use gentoo-sources with the experimental flag, it'll patch the kernel for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum