Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Switching from intel to amd
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
aditya3098
n00b
n00b


Joined: 05 Nov 2014
Posts: 19
Location: India

PostPosted: Sun Nov 16, 2014 11:59 am    Post subject: [SOLVED]Switching from intel to amd Reply with quote

I had an intel core-i3 based system, and I setup my gentoo install using march=native and sse, sse2, ssse3 and mmx use flags(in make.conf). Now I got an AMD FX-6300 and it gave me a KP on boot (I did not use genkernel). When I booted the install cd and tried chrooting, it gave me an "illegal instruction" error. I still have my intel computer, and the hdd boots fine on it. What will I have to do to make my system compatible with the amd processor?
_________________
The day microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
https://forums.gentoo.org/viewtopic-t-1002264.html systemd-kerneld is comming...(dramatic pause)...soon


Last edited by aditya3098 on Tue Nov 18, 2014 11:00 am; edited 1 time in total
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Sun Nov 16, 2014 2:08 pm    Post subject: Reply with quote

Rebuild the whole system using the appropriate -march= setting. I'm sorry :(
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2540
Location: Near Toronto

PostPosted: Sun Nov 16, 2014 2:08 pm    Post subject: Reply with quote

might find some help here:

http://wiki.gentoo.org/wiki/Safe_CFLAGS#FX-XXXX
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42838
Location: 56N 3W

PostPosted: Sun Nov 16, 2014 3:07 pm    Post subject: Reply with quote

aditya3098,

Back on the intel box, set -mtune=generic and no -march al all
Fix your USE flags so that they will work on both CPUs.
Run
Code:
emerge -e @system

Rebuild your kernel and boot loader and reinstall the bootloader to the MBR.

When you rebuild your kernel, include all the bits and pieces for both motherboards.
Choose the generic CPU option in the kernel.

You now have a kernel, boot loader and @system, but not yet @world, that will run on AMD or Intel CPUs.
Move back to the AMD and it should boot.

On the AMD, you can go back to -march=native, fix your USE flags for your new processor, and do emerge -e @world to make the install AMD specific.

The above assumes you can boot to the command tine to do what you need.
If you use a graphical login, you should disable it for the transisition unless you want to rebuild @world just to get something to boot on the AMD CPU.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
aditya3098
n00b
n00b


Joined: 05 Nov 2014
Posts: 19
Location: India

PostPosted: Tue Nov 18, 2014 10:59 am    Post subject: Reply with quote

Thanks everyone. It worked. I have a ALMOST fully functional system now. But that's for another 2 threads....
_________________
The day microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
https://forums.gentoo.org/viewtopic-t-1002264.html systemd-kerneld is comming...(dramatic pause)...soon
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