Re: SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX

2007-03-16 Thread George
On Fri, Mar 16, 2007 at 04:33:15PM +, RW wrote:
> On Thu, 15 Mar 2007 14:39:00 -0500
> Jeffrey Goldberg <[EMAIL PROTECTED]> wrote:
> 
> > I've had two responses telling me that the make.conf defaults are
> > just fine, and two (one off list) recommending i686/pentiumpro.  One
> > for pentiumpro and the other for i686, but as Andreas Rudish
> > helpfully pointed out, those two are probably the same thing.  No
> > one suggested using c3.  In fact, cpghost emphatically stated not to
> > use C3 in make.conf
> 
> From: /usr/share/mk/bsd.cpu.mk 
> 
> .  elif ${CPUTYPE} == "c3"
> MACHINE_CPU = 3dnow mmx i586 i486 i386
> .  elif ${CPUTYPE} == "c3-2"
> MACHINE_CPU = sse mmx i586 i486 i386
> 
> If you look at the screenshot of the CPUID window from the review
> linked by Garrett, it says the Nehemiah has sse but not 3dnow, which
> matches the c3-2 settings above. 
> 
> I would recommend that you comment out C[XX]FLAGS and try again
> with CPUTYPE=c3-2
> 
> FreeBSD isn't Gentoo, and using Gentoo's settings may cause trouble in
> the long-term. If you set CPUTYPE properly, FreeBSD will normally
> come-up with sensible optimizations.

The above is good advice, but I personally don't recall there ever being
a c3 CPUTYPE designation.  For example: 

$ grep -i c3 /usr/share/mk/bsd.cpu.mk

$ sed q /usr/share/mk/bsd.cpu.mk ; uname -r
# $FreeBSD: src/share/mk/bsd.cpu.mk,v 1.48 2005/05/24 21:24:40 cognet Exp $
6.1-RELEASE

On other hand, from reading your headers:

X-Mailer: Claws Mail 2.8.0 (GTK+ 2.10.11; i386-portbld-freebsd6.2)

suggests to me that it may have been added to 6.2.  If that's the case,
then it merits being pointed out.

Cheers.

-- 
George
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX

2007-03-16 Thread RW
On Thu, 15 Mar 2007 14:39:00 -0500
Jeffrey Goldberg <[EMAIL PROTECTED]> wrote:

> I've had two responses telling me that the make.conf defaults are  
> just fine, and two (one off list) recommending i686/pentiumpro.  One  
> for pentiumpro and the other for i686, but as Andreas Rudish  
> helpfully pointed out, those two are probably the same thing.  No
> one suggested using c3.  In fact, cpghost emphatically stated not to
> use C3 in make.conf
> 
> Adbullah Ibn Hamad Al-Marri also helpfully directed me for  
> information about safe CFLAGS to
> 
>http://gentoo-wiki.com/Safe_Cflags
> 
> where the entry for the Via Nehemiah says:
> 
> ==
> Nehemiah (C5XL)/C5P (Via)
> 
> CHOST="i686-pc-linux-gnu"
> CFLAGS="-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer"
> CXXFLAGS="${CFLAGS}"
> 
> note: The more recent versions of the C3 do support the cmov  
> instruction and hence -march=i686. If you must be compatible with
> all VIA C3 versions, do not use the settings in this section.
> 
> note: it is also possible to use "-march=c3-2". <-- Comment to this:  
> I got a problem "compiler can't create executables" with this setting.

From: /usr/share/mk/bsd.cpu.mk 

.  elif ${CPUTYPE} == "c3"
MACHINE_CPU = 3dnow mmx i586 i486 i386
.  elif ${CPUTYPE} == "c3-2"
MACHINE_CPU = sse mmx i586 i486 i386


If you look at the screenshot of the CPUID window from the review
linked by Garrett, it says the Nehemiah has sse but not 3dnow, which
matches the c3-2 settings above. 

I would recommend that you comment out C[XX]FLAGS and try again
with CPUTYPE=c3-2

FreeBSD isn't Gentoo, and using Gentoo's settings may cause trouble in
the long-term. If you set CPUTYPE properly, FreeBSD will normally
come-up with sensible optimizations. 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX

2007-03-15 Thread Garrett Cooper

Jeffrey Goldberg wrote:

[mailed, posted and bcc'ed to off list respondents]


First let me quote my original query:


I have one of these

CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x691  Stepping = 1
  Features=0x380b035

http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=81 



And 6.2-RELEASE p2

When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just 
fine, but (at least) gcc ended up broken.  Most compiling attempts 
after that ended up with gcc reporting an internal error.


Now that I've entered the FreeBSD world and am building everything 
from source, I would like to take advantage of that by compiling for 
my system.


Does anyone have a similar system?  And what CPUTYPE or local tuning 
do you recommend?


A dmesg for the system is available at

  http://ntp0.goldmark.org/temp/dmesg


I've had two responses telling me that the make.conf defaults are just 
fine, and two (one off list) recommending i686/pentiumpro.  One for 
pentiumpro and the other for i686, but as Andreas Rudish helpfully 
pointed out, those two are probably the same thing.  No one suggested 
using c3.  In fact, cpghost emphatically stated not to use C3 in make.conf


Adbullah Ibn Hamad Al-Marri also helpfully directed me for information 
about safe CFLAGS to


  http://gentoo-wiki.com/Safe_Cflags

where the entry for the Via Nehemiah says:

==
   Nehemiah (C5XL)/C5P (Via)

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

note: The more recent versions of the C3 do support the cmov instruction 
and hence -march=i686. If you must be compatible with all VIA C3 
versions, do not use the settings in this section.


note: it is also possible to use "-march=c3-2". <-- Comment to this: I 
got a problem "compiler can't create executables" with this setting.


note: I had much better luck with -Os than with -O2. The cache on the 
nehemiah chips is really small, so making the executables small helps 
more than anything else.

==

The off list response added



- Setting CPUTYPE to pentium, or pentiumpro both work fine.  IIRC,
  the C3 designation is Linux-specific and doesn't exist for
  FreeBSD.



If everybody agrees that the c3 designation is unwise to use, then 
probably the distributed


   /usr/share/examples/etc/make.conf

The off list responded gave extremely helpful and detailed information 
about trimming the kernel for a similar box.  I've already done most of 
what that recommends.


In sum, don't use the c3 specification in /etc/make.conf even though the 
example would suggested otherwise.


Thanks all for your help

-j


Indeed. After reading a mock up of the processor is appears that it's an 
Intel 686 clone. See: 
 
(it's a bit old for an article, so I hope you don't mind the dust :)..).


-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX

2007-03-15 Thread Jeffrey Goldberg

[mailed, posted and bcc'ed to off list respondents]


First let me quote my original query:


I have one of these

CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x691  Stepping = 1
  Features=0x380b035

http://www.via.com.tw/en/products/mainboards/motherboards.jsp? 
motherboard_id=81


And 6.2-RELEASE p2

When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build  
just fine, but (at least) gcc ended up broken.  Most compiling  
attempts after that ended up with gcc reporting an internal error.


Now that I've entered the FreeBSD world and am building everything  
from source, I would like to take advantage of that by compiling  
for my system.


Does anyone have a similar system?  And what CPUTYPE or local  
tuning do you recommend?


A dmesg for the system is available at

  http://ntp0.goldmark.org/temp/dmesg


I've had two responses telling me that the make.conf defaults are  
just fine, and two (one off list) recommending i686/pentiumpro.  One  
for pentiumpro and the other for i686, but as Andreas Rudish  
helpfully pointed out, those two are probably the same thing.  No one  
suggested using c3.  In fact, cpghost emphatically stated not to use  
C3 in make.conf


Adbullah Ibn Hamad Al-Marri also helpfully directed me for  
information about safe CFLAGS to


  http://gentoo-wiki.com/Safe_Cflags

where the entry for the Via Nehemiah says:

==
   Nehemiah (C5XL)/C5P (Via)

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

note: The more recent versions of the C3 do support the cmov  
instruction and hence -march=i686. If you must be compatible with all  
VIA C3 versions, do not use the settings in this section.


note: it is also possible to use "-march=c3-2". <-- Comment to this:  
I got a problem "compiler can't create executables" with this setting.


note: I had much better luck with -Os than with -O2. The cache on the  
nehemiah chips is really small, so making the executables small helps  
more than anything else.

==

The off list response added



- Setting CPUTYPE to pentium, or pentiumpro both work fine.  IIRC,
  the C3 designation is Linux-specific and doesn't exist for
  FreeBSD.



If everybody agrees that the c3 designation is unwise to use, then  
probably the distributed


   /usr/share/examples/etc/make.conf

The off list responded gave extremely helpful and detailed  
information about trimming the kernel for a similar box.  I've  
already done most of what that recommends.


In sum, don't use the c3 specification in /etc/make.conf even though  
the example would suggested otherwise.


Thanks all for your help

-j

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CPUTYPE for VIA EPIA M-Series Mini-ITX

2007-03-15 Thread Abdullah Ibn Hamad Al-Marri

On 3/15/07, cpghost <[EMAIL PROTECTED]> wrote:

On Wed, Mar 14, 2007 at 08:44:21PM -0500, Jeffrey Goldberg wrote:
> I have one of these
>
> CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU)
>   Origin = "CentaurHauls"  Id = 0x691  Stepping = 1
>   Features=0x380b035
>
> http://www.via.com.tw/en/products/mainboards/motherboards.jsp?
> motherboard_id=81
>
> And 6.2-RELEASE p2
>
> When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build
> just fine, but (at least) gcc ended up broken.  Most compiling
> attempts after that ended up with gcc reporting an internal error.
>
> Now that I've entered the FreeBSD world and am building everything
> from source, I would like to take advantage of that by compiling for
> my system.
>
> Does anyone have a similar system?  And what CPUTYPE or local tuning
> do you recommend?

I have

CPU: VIA C3 Samuel 2 (533.36-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x673  Stepping = 3
  Features=0x803035
real memory  = 528416768 (503 MB)

running FreeBSD 6.2 without problems. The key here is NOT to set
CPUTYPE in /etc/make.conf. Just use the defaults and you're fine.

> A dmesg for the system is available at
>
>   http://ntp0.goldmark.org/temp/dmesg
>
> Cheers,
>
> -j
>
>
> --
> Jeffrey Goldberghttp://www.goldmark.org/jeff/

Regards,
-cpghost.

--
Cordula's Web. http://www.cordula.ws/


As cpghost said, there is no big difference when you make an
optimization for the time being.

You can also check http://gentoo-wiki.com/Safe_Cflags and see what
cflag you can use with it.


--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CPUTYPE for VIA EPIA M-Series Mini-ITX

2007-03-15 Thread Andreas Rudisch
On Thu, 15 Mar 2007 02:44:21 +0100, Jeffrey Goldberg  
<[EMAIL PROTECTED]> wrote:



I have one of these

CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU)
   Origin = "CentaurHauls"  Id = 0x691  Stepping = 1
   Features=0x380b035

And 6.2-RELEASE p2

When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just  
fine, but (at least) gcc ended up broken.  Most compiling attempts after  
that ended up with gcc reporting an internal error.


Does anyone have a similar system?  And what CPUTYPE or local tuning do  
you recommend?


I have a Via Epia PD1 with the same CPU and use:

CPUTYPE= i686

Although it does not seem to be mentioned in  
/usr/share/examples/etc/make.conf

anymore (afaik i686==pentiumpro), it works just fine.


Andreas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CPUTYPE for VIA EPIA M-Series Mini-ITX

2007-03-15 Thread cpghost
On Wed, Mar 14, 2007 at 08:44:21PM -0500, Jeffrey Goldberg wrote:
> I have one of these
> 
> CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU)
>   Origin = "CentaurHauls"  Id = 0x691  Stepping = 1
>   Features=0x380b035
> 
> http://www.via.com.tw/en/products/mainboards/motherboards.jsp? 
> motherboard_id=81
> 
> And 6.2-RELEASE p2
> 
> When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build  
> just fine, but (at least) gcc ended up broken.  Most compiling  
> attempts after that ended up with gcc reporting an internal error.
> 
> Now that I've entered the FreeBSD world and am building everything  
> from source, I would like to take advantage of that by compiling for  
> my system.
> 
> Does anyone have a similar system?  And what CPUTYPE or local tuning  
> do you recommend?

I have

CPU: VIA C3 Samuel 2 (533.36-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x673  Stepping = 3
  Features=0x803035
real memory  = 528416768 (503 MB)

running FreeBSD 6.2 without problems. The key here is NOT to set
CPUTYPE in /etc/make.conf. Just use the defaults and you're fine.

> A dmesg for the system is available at
> 
>   http://ntp0.goldmark.org/temp/dmesg
> 
> Cheers,
> 
> -j
> 
> 
> -- 
> Jeffrey Goldberghttp://www.goldmark.org/jeff/

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


CPUTYPE for VIA EPIA M-Series Mini-ITX

2007-03-14 Thread Jeffrey Goldberg

I have one of these

CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x691  Stepping = 1
  Features=0x380b035

http://www.via.com.tw/en/products/mainboards/motherboards.jsp? 
motherboard_id=81


And 6.2-RELEASE p2

When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build  
just fine, but (at least) gcc ended up broken.  Most compiling  
attempts after that ended up with gcc reporting an internal error.


Now that I've entered the FreeBSD world and am building everything  
from source, I would like to take advantage of that by compiling for  
my system.


Does anyone have a similar system?  And what CPUTYPE or local tuning  
do you recommend?


A dmesg for the system is available at

  http://ntp0.goldmark.org/temp/dmesg

Cheers,

-j


--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"