Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-13 Thread Stefan G. Weichinger
Neil Bothwick schrieb:
> On Tue, 13 Nov 2007 23:34:40 +0100, Stefan G. Weichinger wrote:
> 
 I found some notes on the net "amd64 is for x86_64", unsure about
 that ...  
>>> That's right, the architecture was originally for the AMD 64-bit
>>> chips.  
>> Thanks for clearing that, not very intuitive  :)
> 
> It was when the only x86_64 chips were AMD, and changing the name now
> would be almost as confusing.

Ok, I understand that fact, but it wouldn't hurt to have some info or
even a HOWTO on gentoo.org or the gentoo-Wiki for current CPUs, listing
some kind of table like

CPU |   target system   |
Core2Duo|   32bit   |   64bit   |
livecd/arch |   i686|   amd64   |

or similar.

I tried to find something like that for quite some time, I assume not to
be the most stupid guy out there, but wasn't able to find something
telling me explicitly how to start and which media to use.

Just a minor note ...

Thanks again, Stefan

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-13 Thread Neil Bothwick
On Tue, 13 Nov 2007 23:34:40 +0100, Stefan G. Weichinger wrote:

> >> I found some notes on the net "amd64 is for x86_64", unsure about
> >> that ...  
> > 
> > That's right, the architecture was originally for the AMD 64-bit
> > chips.  
> 
> Thanks for clearing that, not very intuitive  :)

It was when the only x86_64 chips were AMD, and changing the name now
would be almost as confusing.


-- 
Neil Bothwick

Light travels faster than sound. This is why some people appear bright
until you hear them speak.


signature.asc
Description: PGP signature


Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-13 Thread Stefan G. Weichinger
Neil Bothwick schrieb:
> On Tue, 13 Nov 2007 23:16:37 +0100, Stefan G. Weichinger wrote:
> 
>> Would I have to start with the amd64-live-cd when I want to install from
>> scratch, getting a 64-bit-system with the Core2Duo E6600?
> 
> Yes.
>  
>> I found some notes on the net "amd64 is for x86_64", unsure about
>> that ...
> 
> That's right, the architecture was originally for the AMD 64-bit chips.

Thanks for clearing that, not very intuitive  :)

Stefan

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-13 Thread Neil Bothwick
On Tue, 13 Nov 2007 23:16:37 +0100, Stefan G. Weichinger wrote:

> Would I have to start with the amd64-live-cd when I want to install from
> scratch, getting a 64-bit-system with the Core2Duo E6600?

Yes.
 
> I found some notes on the net "amd64 is for x86_64", unsure about
> that ...

That's right, the architecture was originally for the AMD 64-bit chips.


-- 
Neil Bothwick

I know corn oil comes from corn, where does baby oil come from?


signature.asc
Description: PGP signature


Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-13 Thread Stefan G. Weichinger
Stefan G. Weichinger schrieb:

> Maybe I will give it a try on another hdd and try to do a fresh install
> of x86_64 on that E2160, if the winter is long and boring ;-)

Additional question here:

Would I have to start with the amd64-live-cd when I want to install from
scratch, getting a 64-bit-system with the Core2Duo E6600?

I found some notes on the net "amd64 is for x86_64", unsure about that ...

Thanks, Stefan
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-10 Thread David W Noon
On Saturday 10 Nov 2007 19:20 in article <[EMAIL PROTECTED]>
of linux.gentoo.user, Bo Ørsted Andresen([EMAIL PROTECTED]) wrote:

> On Sat, Nov 10, 2007 at 02:18:46PM +, David W Noon wrote:
>> If you change the CHOST, CFLAGS and CXXFLAGS variables, then do:
>>emerge -e system
>>emerge -e world
>> you will have converted everything except your kernel to 64-bit.
> 
> Clearly you are completely clueless. Do *NOT* do this. It will break
> your system.

Whenever I need to rebuild everything, I do it from a recovery CD. This
means I don't need to run the kernel and glibc that are on the hard
drive.

One can rebuild the kernel on the hard drive either before or after one
has rebuilt the other system and application software. I would usually
rebuild the kernel after the toolchain has been rebuilt, simply so that
I build it using a 64-bit toolchain. The kernel only needs to be
rebuilt before rebooting the system from the hard drive.

This way the entire system can be rebuilt while running under a kernel
and glibc [on the CD] that match the hardware architecture of the box.

Indeed, I have just such an operation planned for next week.
-- 
Regards

Dave  [RLU#314465]
==
[EMAIL PROTECTED] (David W Noon)
==


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-10 Thread Qian Qiao
On Nov 10, 2007 2:18 PM, David W Noon <[EMAIL PROTECTED]> wrote:
>
> If you change the CHOST, CFLAGS and CXXFLAGS variables, then do:
>emerge -e system
>emerge -e world
> you will have converted everything except your kernel to 64-bit. This
> was what you were planning anyway, but the change of CHOST as well will
> give you a 64-bit toolchain. The only problems will be packages that
> are stable on x86 but still unstable on amd64 or causing similar
> problems during rebuild. But these can be skipped by doing:
>emerge --resume --skipfirst
>
> A quick rebuild of the kernel and your system will be wall-to-wall
> 64-bit and running at maximum speed.
>
> I don't see it as a major task, other than waiting for the re-emerge of
> world to complete, which could take a couple of days.

I don't believe you can do that. You can't build a 64bit system from a
32bit by simply changing the CHOST afaik. If you absolutely want a
64bit system, backup and reinstall.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-10 Thread Stefan G. Weichinger
Bo Ørsted Andresen schrieb:
> On Sat, Nov 10, 2007 at 02:18:46PM +, David W Noon wrote:
>> If you change the CHOST, CFLAGS and CXXFLAGS variables, then do:
>>emerge -e system
>>emerge -e world
>> you will have converted everything except your kernel to 64-bit.
> 
> Clearly you are completely clueless. Do *NOT* do this. It will break your
> system. It is not possible to run any 64 bit code with a 32 bit kernel. There
> is a guide [1] you must follow very carefully if you ever need to change your
> CHOST between two x86 CHOSTs. Even that has potential to break your system if
> you are not careful. If you need to switch from an x86 CHOST to an x86_64 
> CHOST
> there is no sane method short of a reinstall.

Yup, this is why I will leave CHOST untouched for now.

Maybe I will give it a try on another hdd and try to do a fresh install
of x86_64 on that E2160, if the winter is long and boring ;-)

I also still don't think if running 64 Bit makes any sense at all when
it comes to running a mythtv-box ... it would *maybe* make some sense on
my workhorse, a E6600 with 4 gigs of RAM.

A minor q related to E2160:

Should I choose "Core2" in my kernel-configuration for that processor?
Where do I find out these things? In the kernel-sources?

I noticed along the way that I still have "Pentium 4" in there, due to
the fact of having migrated from a P4-board.

Thanks, Stefan
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-10 Thread Bo Ørsted Andresen
On Sat, Nov 10, 2007 at 02:18:46PM +, David W Noon wrote:
> If you change the CHOST, CFLAGS and CXXFLAGS variables, then do:
>emerge -e system
>emerge -e world
> you will have converted everything except your kernel to 64-bit.

Clearly you are completely clueless. Do *NOT* do this. It will break your
system. It is not possible to run any 64 bit code with a 32 bit kernel. There
is a guide [1] you must follow very carefully if you ever need to change your
CHOST between two x86 CHOSTs. Even that has potential to break your system if
you are not careful. If you need to switch from an x86 CHOST to an x86_64 CHOST
there is no sane method short of a reinstall.

[1] http://www.gentoo.org/doc/en/change-chost.xml

-- 
Bo Andresen
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-10 Thread Dirk Heinrichs
Am Samstag, 10. November 2007 schrieb David W Noon:

> If you change the CHOST, CFLAGS and CXXFLAGS variables, then do:
>emerge -e system
>emerge -e world

Since -e means "emptytree" (as in dependency tree), the latter would be 
enough, right?

Bye...

Dirk



signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-10 Thread David W Noon
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 10 Nov 2007 09:30 in article <[EMAIL PROTECTED]>
of linux.gentoo.user, Stefan G. Weichinger([EMAIL PROTECTED]) wrote:

> David W Noon schrieb:
> 
>> You need to consider CHOST as well, to ensure you make the most of
>> the newer CPUs.
>> 
>> Here is what I use on an E6600 machine:
>> 
>> CHOST="x86_64-pc-linux-gnu"
>> CFLAGS="-march=nocona -mmmx -m3dnow -msse -msse2 -msse3
>> -mfpmath=sse,387 -O2 -pipe"
[snip]
> Phew, this scares me ;)
> 
> I use
> CHOST="i686-pc-linux-gnu"
> 
> now, and don't want to go 64bit anyway (at least not in the near
> future), so I think will just edit the CFLAGS for a start and
> re-emerge system, then world?

I don't understand why one would want to run a 64-bit CPU in 32-bit
mode.

If you change the CHOST, CFLAGS and CXXFLAGS variables, then do:
   emerge -e system
   emerge -e world
you will have converted everything except your kernel to 64-bit. This
was what you were planning anyway, but the change of CHOST as well will
give you a 64-bit toolchain. The only problems will be packages that
are stable on x86 but still unstable on amd64 or causing similar
problems during rebuild. But these can be skipped by doing:
   emerge --resume --skipfirst

A quick rebuild of the kernel and your system will be wall-to-wall
64-bit and running at maximum speed.

I don't see it as a major task, other than waiting for the re-emerge of
world to complete, which could take a couple of days.
- - -- 
Regards

Dave  [RLU#314465]
==
[EMAIL PROTECTED] (David W Noon)
==

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHNb3G9MqaUJQw2MkRAslaAJ9CFAg4waeBPcGIK9tr1HAMVenuRACgpzG/
bFQFgn0ON9FcA8AywEqpoMg=
=j25L
-END PGP SIGNATURE-

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-10 Thread Stefan G. Weichinger
David W Noon schrieb:

> You need to consider CHOST as well, to ensure you make the most of the
> newer CPUs.
> 
> Here is what I use on an E6600 machine:
> 
> CHOST="x86_64-pc-linux-gnu"
> CFLAGS="-march=nocona -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse,387 -O2 
> -pipe"
> 
> Note that -fomit-frame-pointer is not applicable on AMD64/EM64T hardware
> platforms; it will be silently ignored by GCC. Most of the additional
> processor features I have specified (MMX, SSE/2/3, 3DNow!) are actually
> implied by the -march=nocona, but I specify as a mnemonic to myself
> that these are [potentially] in use on this box.
> 
> If you simply restored from a Pentium 4 system you will need to take the
> steps to change the CHOST. This is documented on the Gentoo web site.

Phew, this scares me ;)

I use
CHOST="i686-pc-linux-gnu"

now, and don't want to go 64bit anyway (at least not in the near
future), so I think will just edit the CFLAGS for a start and re-emerge
system, then world?

Or is it preferable to really change that CHOST even when running a
32bit system? (I have a E6600 as well as my main workstation ... this
would apply there also)

Thanks for any tips on this, I am rather defensive when it comes to
change these essential settings.

Stefan
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-09 Thread David W Noon
On Saturday 10 Nov 2007 00:30 in article <[EMAIL PROTECTED]>
of linux.gentoo.user, Stefan G. Weichinger([EMAIL PROTECTED]) wrote:

> Greets, I recently bought a new CPU for my mythtv-box, it's a Pentium
> Dual E2160 
> 
> Currently I use
> 
> CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
> 
> as I moved the system over from a Pentium 4 (which just crashed).

You need to consider CHOST as well, to ensure you make the most of the
newer CPUs.

Here is what I use on an E6600 machine:

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse,387 -O2 
-pipe"

Note that -fomit-frame-pointer is not applicable on AMD64/EM64T hardware
platforms; it will be silently ignored by GCC. Most of the additional
processor features I have specified (MMX, SSE/2/3, 3DNow!) are actually
implied by the -march=nocona, but I specify as a mnemonic to myself
that these are [potentially] in use on this box.

If you simply restored from a Pentium 4 system you will need to take the
steps to change the CHOST. This is documented on the Gentoo web site.
-- 
Regards

Dave  [RLU#314465]
==
[EMAIL PROTECTED] (David W Noon)
==


-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-09 Thread Qian Qiao
On Nov 10, 2007 12:19 AM, Stefan G. Weichinger <[EMAIL PROTECTED]> wrote:
>
> Greets, I recently bought a new CPU for my mythtv-box, it's a Pentium
> Dual E2160 
>
> Currently I use
>
> CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
>
> as I moved the system over from a Pentium 4 (which just crashed).
>
> Things work fine so far, I checked google and
> http://gentoo-wiki.com/Safe_Cflags for a hint, also browsed the
> GCC-docs, but haven't yet found anything specific.
>
> It's not really important, I don't face any problems, but as I just
> think of it again I thought I just post a request, as that CPU isn't
> mentioned in that Wiki-page.
>
> Any recommended "-march" for that CPU? Maybe it helps with mythtv.
>
> Thanks in advance, Stefan.
>
> ===> (the following shows 1200 MHz because of cpufreqd ...)
>
> # cat /proc/cpuinfo
> processor   : 0
> vendor_id   : GenuineIntel
> cpu family  : 6
> model   : 15
> model name  : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
> stepping: 13
> cpu MHz : 1200.000
> cache size  : 1024 KB
> physical id : 0
> siblings: 2
> core id : 0
> cpu cores   : 2
> fdiv_bug: no
> hlt_bug : no
> f00f_bug: no
> coma_bug: no
> fpu : yes
> fpu_exception   : yes
> cpuid level : 10
> wp  : yes
> flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
> constant_tsc pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
> bogomips: 3601.80
> clflush size: 64

-march=nocona is what you are looking for.


-- 
There are 3 kinds of people in the world:
Those who can count, and those who can't.
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] CFLAGS for Pentium Dual Core E2160 ?

2007-11-09 Thread Stefan G. Weichinger

Greets, I recently bought a new CPU for my mythtv-box, it's a Pentium
Dual E2160 

Currently I use

CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"

as I moved the system over from a Pentium 4 (which just crashed).

Things work fine so far, I checked google and
http://gentoo-wiki.com/Safe_Cflags for a hint, also browsed the
GCC-docs, but haven't yet found anything specific.

It's not really important, I don't face any problems, but as I just
think of it again I thought I just post a request, as that CPU isn't
mentioned in that Wiki-page.

Any recommended "-march" for that CPU? Maybe it helps with mythtv.

Thanks in advance, Stefan.

===> (the following shows 1200 MHz because of cpufreqd ...)

# cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 15
model name  : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
stepping: 13
cpu MHz : 1200.000
cache size  : 1024 KB
physical id : 0
siblings: 2
core id : 0
cpu cores   : 2
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 10
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
bogomips: 3601.80
clflush size: 64

-- 
[EMAIL PROTECTED] mailing list