Re: [gentoo-user] Going from P3 to Athlon XP (fwd)

2003-08-21 Thread Jason Nielsen
> >>On Wed, 2003-08-20 at 08:56, stephen wrote:
> >>
> >>>I'm replacing my P3 850/Asus CUV4X with an Athlon 2700+/Asus A7N8X-X, but 
> >>>would like to keep my gentoo intact as much as I can.
> >>>
> >>>Currently I use CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
> >>> and have things like mmx and sse in my USE flags (should I take those
> >>> out and use 3dnow instead?). I also use LVM with vgroups for usr,
> >>> usr/local, var and tmp.
> >>>
> >>>I wonder if this will even boot now. Can anyone give me some hints about the 
> >>>best way to make the transition? Any help appreciated.
> > 
> > 
> > Try this:
> > 
> > 1) Pull the HD from your old system and shove it in your new one.
> > 2) Fire up your new system with the Gentoo install CD
> > 3) Mount your old partitions under /mnt/gentoo say
> > 4) make a chroot jail like you do when installing
> 
> .. at which point, the new Athlon system starts using the P3-optimised 
> binaries, and if they don't work, starts segfaulting.  You might as well 
> just boot the system directly on the new hardware (compile yourself 
> another kernel first ;P ).
> 
> > 5) modify make.conf to your liking (athlon-xp CFLAGS and new USE stuff)
> > 6) emerge -ueD world
> > 7) when finished unmount the chroot jail 
> > 8) Rebood to your new system.
> 

Ah yes I suppose that is true... at Step 4 then you need to untar a
stage-1 1.4 tarball for Athlon-xp under /mnt/gentoo.  First, see what will
get over-written but I doubt anything that won't be getting wacked soon so
no problem...  also make a backup of /mnt/gentoo/etc, say
/mnt/gentoo/etc2.  Then follow on with instructions this also has the
nice effect that all will be compiled with a Athlon-xp comipiled GCC...
just like as if you did a bootstrap.  You won't need to compile a new
kernel as you are still using the Gentoo 1.4 CD kernel.  Does that work
better for you MAL ;-P!

Cheers,

Jason

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-21 Thread MAL
Jason Nielsen wrote:
On Wed, 20 Aug 2003, daniel wrote:


On Wed, 2003-08-20 at 08:56, stephen wrote:

I'm replacing my P3 850/Asus CUV4X with an Athlon 2700+/Asus A7N8X-X, but 
would like to keep my gentoo intact as much as I can.

Currently I use CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
and have things like mmx and sse in my USE flags (should I take those
out and use 3dnow instead?). I also use LVM with vgroups for usr,
usr/local, var and tmp.
I wonder if this will even boot now. Can anyone give me some hints about the 
best way to make the transition? Any help appreciated.


Try this:

1) Pull the HD from your old system and shove it in your new one.
2) Fire up your new system with the Gentoo install CD
3) Mount your old partitions under /mnt/gentoo say
4) make a chroot jail like you do when installing
.. at which point, the new Athlon system starts using the P3-optimised 
binaries, and if they don't work, starts segfaulting.  You might as well 
just boot the system directly on the new hardware (compile yourself 
another kernel first ;P ).

5) modify make.conf to your liking (athlon-xp CFLAGS and new USE stuff)
6) emerge -ueD world
7) when finished unmount the chroot jail 
8) Rebood to your new system.


--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread Bryce
On Wednesday 20 August 2003 12:21 pm, Jason Nielsen wrote:
> Try this:
>
> 1) Pull the HD from your old system and shove it in your new one.
> 2) Fire up your new system with the Gentoo install CD
> 3) Mount your old partitions under /mnt/gentoo say
> 4) make a chroot jail like you do when installing
> 5) modify make.conf to your liking (athlon-xp CFLAGS and new USE stuff)
> 6) emerge -ueD world
> 7) when finished unmount the chroot jail
> 8) Rebood to your new system.

Sounds very similar to a new install... but easier! Requires less personal 
overhead in getting the system built.

bryce


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread Jason Nielsen
On Wed, 20 Aug 2003, daniel wrote:

> On Wed, 2003-08-20 at 08:56, stephen wrote:
> > I'm replacing my P3 850/Asus CUV4X with an Athlon 2700+/Asus A7N8X-X, but 
> > would like to keep my gentoo intact as much as I can.
> > 
> > Currently I use CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
> >  and have things like mmx and sse in my USE flags (should I take those
> >  out and use 3dnow instead?). I also use LVM with vgroups for usr,
> >  usr/local, var and tmp.
> > 
> > I wonder if this will even boot now. Can anyone give me some hints about the 
> > best way to make the transition? Any help appreciated.

Try this:

1) Pull the HD from your old system and shove it in your new one.
2) Fire up your new system with the Gentoo install CD
3) Mount your old partitions under /mnt/gentoo say
4) make a chroot jail like you do when installing
5) modify make.conf to your liking (athlon-xp CFLAGS and new USE stuff)
6) emerge -ueD world
7) when finished unmount the chroot jail 
8) Rebood to your new system.

Cheerio,

Jason


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread MAL
stephen wrote:
By the way, is there any reason to avoid the fomit-frame-pointer flag for the
athlon?
It improves very little and breaks some packages, (even though those I 
know about mask it, like courier).  Plus, debugging is apparently then 
impossible on some platforms, (maybe x86 maybe not :)

MAL

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread stephen
On 20 Aug 2003 15:43:40 +0200, Stefan Hildebrandt wrote 
> And SSE, too. Only add 3dnow (after install the athlon)
> (Normaly the athlon xp should work with all the p3 binarys)
> 
> Set CFLAGS="-mcpu=i686 -O3 -pipe"
> install the drive on your P3.
> 
> emerge -eD system (base system and compiler need to be on a "save"
> level)
> 
> Change to Athlon.
> CFLAGS="-mcpu=athlon-xp -O3 -pipe"
> and add 3dnow to USE-Flags
> 
> emerge -eD world
> 
> mfg
> 
> Stefan Hildebrandt

Thanks to all who responded. I was not looking forward to doing "emerge -eD
world" on the P3 again, so only doing "emerge -eD system" will be *much* less
painful.

By the way, is there any reason to avoid the fomit-frame-pointer flag for the
athlon?
_
Stephen

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread MAL
Stefan Hildebrandt wrote:
The Athlon XP supports MMX.

And SSE, too. Only add 3dnow (after install the athlon)
(Normaly the athlon xp should work with all the p3 binarys)
Set CFLAGS="-mcpu=i686 -O3 -pipe"
install the drive on your P3.
emerge -eD system (base system and compiler need to be on a "save"
level)
Change to Athlon.
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
and add 3dnow to USE-Flags
or -march=athlon-xp ;)

emerge -eD world
Maybe qpkg should be used to find the installed packages. I'm not sure 
that emerge -eD finds all installed packages, (from postings I have 
read, etc.).

MAL

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread Stefan Hildebrandt
On Mit, 2003-08-20 at 15:32, MAL wrote:
> daniel wrote:
> > On Wed, 2003-08-20 at 08:56, stephen wrote:
> > 
> >>I'm replacing my P3 850/Asus CUV4X with an Athlon 2700+/Asus A7N8X-X, but 
> >>would like to keep my gentoo intact as much as I can.
> >>
> >>Currently I use CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
> >> and have things like mmx and sse in my USE flags (should I take those
> >> out and use 3dnow instead?). I also use LVM with vgroups for usr,
> >> usr/local, var and tmp.
> >>
> >>I wonder if this will even boot now. Can anyone give me some hints about the 
> >>best way to make the transition? Any help appreciated.
> > 
> > 
> > 
> > as i understand it, pretty much all of your binaries shouldn't work on
> > your new machine since you chose to use -march=pentium3.  my best
> > suggestion would be to do the following (yes, it will take a very long
> > time):
> > 
> >   1. edit make.conf to have the following:
> >CFLAGS="-mcpu=i686 -O3 -pipe"
> >
> 
> The Athlon XP supports MMX.
> 

And SSE, too. Only add 3dnow (after install the athlon)
(Normaly the athlon xp should work with all the p3 binarys)

Set CFLAGS="-mcpu=i686 -O3 -pipe"
install the drive on your P3.

emerge -eD system (base system and compiler need to be on a "save"
level)

Change to Athlon.
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
and add 3dnow to USE-Flags

emerge -eD world

mfg

Stefan Hildebrandt


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread MAL
Mike Williams wrote:
On Wednesday 20 August 2003 14:19, MAL wrote:


The main problem will be pentium3 specific instructions used because of
the -march switch.  Unless someone can state for certain that the Athlon
XP is backward compatible with the pentium3, (unlikely), you will need
to recompile your entire system.
In theory, emerge -eD world, should do this.  However this poses a
problem in itself, because if you compile it on the old motherboard,
with -march=athlon-xp, it will break when a newly compiled utility tries
to use athlon-xp instructions on the P3.
It may be possible to untar the i386 stage1 tarball over the top of your
existing system, which would mean your base system, (bare bones boot,
glibc and compiler), will run on the new motherboard.
You should then be able to 'emerge -eD world'.  Don't take this for
gospel :)


How about recompiling everything with -mcpu=athlon-xp on the P3, will work on 
both then. Could change to -march=athlon-xp at a later date, if so wanted.
Good idea, but VERY lengthy compiling a large system twice.. guess it 
depends how much of an optimisation junkie our subject is :)

MAL

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread Mike Williams
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 20 August 2003 14:25, daniel wrote:

>   1. edit make.conf to have the following:
>CFLAGS="-mcpu=i686 -O3 -pipe"
>

Not questioning your knowledge, rather my own.
Isn't there a -mcpu=athlon-xp ? I suspect your later use (step 4) is a typo.

- -- 
Mike Williams
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Q3icInuLMrk7bIwRAnZcAJ4kjvOsOiGm/jF0Isl+RA0caWaa0wCcCuOb
AqVAO3STxmtlo7nZFpYWrsM=
=iwKH
-END PGP SIGNATURE-

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread MAL
daniel wrote:
On Wed, 2003-08-20 at 08:56, stephen wrote:

I'm replacing my P3 850/Asus CUV4X with an Athlon 2700+/Asus A7N8X-X, but 
would like to keep my gentoo intact as much as I can.

Currently I use CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
and have things like mmx and sse in my USE flags (should I take those
out and use 3dnow instead?). I also use LVM with vgroups for usr,
usr/local, var and tmp.
I wonder if this will even boot now. Can anyone give me some hints about the 
best way to make the transition? Any help appreciated.


as i understand it, pretty much all of your binaries shouldn't work on
your new machine since you chose to use -march=pentium3.  my best
suggestion would be to do the following (yes, it will take a very long
time):
  1. edit make.conf to have the following:
   CFLAGS="-mcpu=i686 -O3 -pipe"
   
The Athlon XP supports MMX.

  2. # emerge --emptytree world
What about packages not in the world file?

emerge --emptytree --deep world

is needed to recompile those too, although I doubt they're necessary for 
this intermediate step.

  3. install the new cpu

  4. edit make.conf to have the following:
   CFLAGS="-mcpu=athlon-xp -O3 -pipe"
Why -mcpu?  In case he moves back? :)

  5. # emerge --emptytree world
emerge -eD world here, definitely.

to me, this seems like a bit of a sledgehammer approach, but it's the
only way i would think you can be sure you'll be able to boot your
system after installing the new cpu.  someone please correct me if they
know of a better solution.
I could only think of unpacking a i386 (or i686) stage1 over his system, 
which should give enough of a base system to boot and compile with.  Not 
guaranteed though.  Maybe stage2?

MAL

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread Mike Williams
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 20 August 2003 14:19, MAL wrote:

> The main problem will be pentium3 specific instructions used because of
> the -march switch.  Unless someone can state for certain that the Athlon
> XP is backward compatible with the pentium3, (unlikely), you will need
> to recompile your entire system.
>
> In theory, emerge -eD world, should do this.  However this poses a
> problem in itself, because if you compile it on the old motherboard,
> with -march=athlon-xp, it will break when a newly compiled utility tries
> to use athlon-xp instructions on the P3.
>
> It may be possible to untar the i386 stage1 tarball over the top of your
> existing system, which would mean your base system, (bare bones boot,
> glibc and compiler), will run on the new motherboard.
>
> You should then be able to 'emerge -eD world'.  Don't take this for
> gospel :)

How about recompiling everything with -mcpu=athlon-xp on the P3, will work on 
both then. Could change to -march=athlon-xp at a later date, if so wanted.

- -- 
Mike Williams
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Q3fDInuLMrk7bIwRArk3AJ9rzs9ctNkzcJMWxHCQpsJB+vVJOgCfRbhQ
BQbfGbekhLo7DIrQPo3sNvk=
=CZh1
-END PGP SIGNATURE-

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread daniel
On Wed, 2003-08-20 at 08:56, stephen wrote:
> I'm replacing my P3 850/Asus CUV4X with an Athlon 2700+/Asus A7N8X-X, but 
> would like to keep my gentoo intact as much as I can.
> 
> Currently I use CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
>  and have things like mmx and sse in my USE flags (should I take those
>  out and use 3dnow instead?). I also use LVM with vgroups for usr,
>  usr/local, var and tmp.
> 
> I wonder if this will even boot now. Can anyone give me some hints about the 
> best way to make the transition? Any help appreciated.


as i understand it, pretty much all of your binaries shouldn't work on
your new machine since you chose to use -march=pentium3.  my best
suggestion would be to do the following (yes, it will take a very long
time):

  1. edit make.conf to have the following:
   CFLAGS="-mcpu=i686 -O3 -pipe"
   

  2. # emerge --emptytree world

  3. install the new cpu

  4. edit make.conf to have the following:
   CFLAGS="-mcpu=athlon-xp -O3 -pipe"

  5. # emerge --emptytree world


to me, this seems like a bit of a sledgehammer approach, but it's the
only way i would think you can be sure you'll be able to boot your
system after installing the new cpu.  someone please correct me if they
know of a better solution.


-- 
i do not feel obliged to believe that the same god who has endowed us
with sense, reason, and intellect has intended us to forgo their use.
  - galileo


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread MAL
stephen wrote:
I'm replacing my P3 850/Asus CUV4X with an Athlon 2700+/Asus A7N8X-X, but 
would like to keep my gentoo intact as much as I can.

Currently I use CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" and 
have things like mmx and sse in my USE flags (should I take those out and use 
3dnow instead?). I also use LVM with vgroups for usr, usr/local, var and tmp.
>
I wonder if this will even boot now. Can anyone give me some hints about the 
best way to make the transition? Any help appreciated.
The Athlon XP supports MMX and MMX2 as well as 3DNow and 3DNow2, so that 
in itself isn't a problem, (assuming this is indeed an Athlon XP... you 
only state Athlon in your description, but I don't think there is an 
Athlon 2700+).

The main problem will be pentium3 specific instructions used because of 
the -march switch.  Unless someone can state for certain that the Athlon 
XP is backward compatible with the pentium3, (unlikely), you will need 
to recompile your entire system.

In theory, emerge -eD world, should do this.  However this poses a 
problem in itself, because if you compile it on the old motherboard, 
with -march=athlon-xp, it will break when a newly compiled utility tries 
to use athlon-xp instructions on the P3.

It may be possible to untar the i386 stage1 tarball over the top of your 
existing system, which would mean your base system, (bare bones boot, 
glibc and compiler), will run on the new motherboard.

You should then be able to 'emerge -eD world'.  Don't take this for 
gospel :)

MAL

--
[EMAIL PROTECTED] mailing list


[gentoo-user] Going from P3 to Athlon XP

2003-08-20 Thread stephen
I'm replacing my P3 850/Asus CUV4X with an Athlon 2700+/Asus A7N8X-X, but 
would like to keep my gentoo intact as much as I can.

Currently I use CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" and 
have things like mmx and sse in my USE flags (should I take those out and use 
3dnow instead?). I also use LVM with vgroups for usr, usr/local, var and tmp.

I wonder if this will even boot now. Can anyone give me some hints about the 
best way to make the transition? Any help appreciated.

_
Stephen

--
[EMAIL PROTECTED] mailing list