Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] CPU upgrade and LVM questions.
Date: Fri, 07 Dec 2018 05:11:06
Message-Id: cc3d3018-71ee-bcdb-4144-d9f676b003a6@gmail.com
In Reply to: Re: [gentoo-user] CPU upgrade and LVM questions. by Dale
1 Dale wrote:
2 > Corbin Bird wrote:
3 >> I don't think a straight 'drop-in/replacement' will boot.
4 >>
5 >> The CPU scheduler does change from 'fam10h' to 'fam15h'.
6 >> The '3DNow!' && 'enhanced 3DNow!' ( used in fam10h ) instructions are
7 >> dropped / removed in fam15h.
8 >>
9 >> Doing the 'emerge -e @world' with '-march=generic' is probably the only
10 >> guaranteed to work solution.
11 >>
12 >> If you take this route set the CPU_FLAGS_X86= to MMX, SSE, SSE2 with no
13 >> 3DNow!, enhanced 3DNow! ( gcc flags / CFLAGS -mno-3dnow, -mno-3dnowa )
14 >>
15 >> Just remember to change the kernel configuration also.
16 >>
17 >> Reference Links :
18 >> https://en.wikipedia.org/wiki/Phenom_II
19 >> https://en.wikipedia.org/wiki/List_of_AMD_FX_microprocessors
20 >>
21 > That's what I was curious about.  From my understanding, while a CPU
22 > made by the same maker and has the same pin out, they are different
23 > inside as far as what instructions they run.  I think I'll go the
24 > generic route, which is what I was looking for really, and change the
25 > CPU flags as well.  I'll at least do a -e @system run which should get
26 > me a bootable OS.  Once I install the CPU, I can reset back to old march
27 > setting and update the CPU flags to whatever cpuid2cpuflags shows for
28 > the new CPU and rebuild again. 
29 >
30 > Sounds like I need to build a new kernel as well. I guess I could name
31 > one with FX in it to be able to tell it from the old one.  I do mine
32 > manually anyway, except for the dracut thingy. 
33 >
34 > Thanks much.
35 >
36 > Dale
37 >
38 > :-)  :-)
39 >
40
41
42 Now this is odd.  I changed the settings and ran emerge.  I decided to
43 use -UDNa options to see if it would catch the changes.  It did.  Thing
44 is, outside a few video type packages, there were no packages to be
45 rebuilt.  It seems very few packages actually notice those settings. 
46 Given that, I just canceled the emerge since I can rebuild that after I
47 swap CPUs.  I can deal with ffmpeg being recompiled after I swap CPUs. 
48
49 My only question left, will those flags affect the kernel image itself? 
50 I may just have to make sure my USB stick works. 
51
52 Dale
53
54 :-)  :-) 

Replies

Subject Author
[gentoo-user] Re: CPU upgrade and LVM questions. Nikos Chantziaras <realnc@×××××.com>