Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Copying system to another computer?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
threadbare
n00b
n00b


Joined: 07 Nov 2004
Posts: 3
Location: Poland

PostPosted: Wed Mar 30, 2005 6:45 pm    Post subject: Copying system to another computer? Reply with quote

Is it possible to copy files from my gentoo partition to another computer [and modify fstab, compile new kernel, install grub etc.] and have working system? In other words, are packages compiled for one x86 processor just OPTIMIZED for it, or are they using some specific processor instructions that won't work on another? I'd then change my CFLAGS and recompile the packages.
(I want to copy my system from AthlonXP to Pentium III).
Back to top
View user's profile Send private message
Volt3r
n00b
n00b


Joined: 30 Jan 2004
Posts: 61
Location: Poland -> Jaworzno

PostPosted: Wed Mar 30, 2005 6:47 pm    Post subject: Reply with quote

You must firstly recompile all packages for PIII, becouse if you dont do this, you will propably have a lot of segv or even crashes on new machine.
Back to top
View user's profile Send private message
iamlarryboy
Guru
Guru


Joined: 25 Jan 2003
Posts: 480
Location: Prince George, BC, Canada

PostPosted: Wed Mar 30, 2005 7:42 pm    Post subject: Reply with quote

check your make.conf. If it has this line:
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
it will not run on the p3. However, if it looks like this:
CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
there is a good chance it will run albet not very optimized.
_________________
Esteem : Essays, Fiction, and News Commentary.
Back to top
View user's profile Send private message
dohko
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2004
Posts: 112
Location: São Paulo - Brasil

PostPosted: Wed Mar 30, 2005 8:23 pm    Post subject: Reply with quote

If you have optmized your system to an Athlon processor using the march flag, some things may have been (they certainly have) compiled using AMD's specific instruction set, which will certainly fail on a pentiumIII.

Even if you had optmized it using mcpu=athlon-xp instead of march, I'd still wonder if it would work perfectly. I know that mcpu keeps backward compatibility by not using instructions that are specific to a newer family of processors. However, I wonder if mcpu=pentium3 and mcpu=athlon-xp are 100% compatible. I think they are since AMD's instruction set is compatible with intel's, but I'm not entirely sure.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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