Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

config kernel "Proc. family 586" .. should I change CHOST ??

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
maxime1986
n00b
n00b
Posts: 74
Joined: Fri Oct 23, 2009 9:08 pm

config kernel "Proc. family 586" .. should I chang

  • Quote

Post by maxime1986 » Tue Oct 27, 2009 2:15 am

Hello

I have an Item Atom Z530 (i586). I installed gentoo x86.

Can I simply change my kernel config from CONFIG_M486 to CONFIG_M586 ??

Or have I to change my CHOST, bootstrap the system and do some complicated stuff :-) ?

Thank you in advance.

PS : sorry for my bad english
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Tue Oct 27, 2009 2:26 am

Hi, I think that you need to change your cflags too.

Can you post your actual :

Code: Select all

# emerge --info
# cat /proc/cpuinfo
Top
maxime1986
n00b
n00b
Posts: 74
Joined: Fri Oct 23, 2009 9:08 pm

  • Quote

Post by maxime1986 » Tue Oct 27, 2009 2:32 am

emerge --info

Code: Select all

Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Atom-TM-_CPU_Z530_@_1.60GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 24 Oct 2009 16:00:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_CA.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi alsa ao audiofile avahi berkdb bzip2 clamav cli cracklib crypt cups cxx dbus dri encode ffmpeg fortran ftp gdbm gpm gzip hal iconv ipv6 isdnlog kerberos mbox memlimit modules mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection samba session spl ssl sysfs tcl tcpd theora unicode x86 zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
/proc/cpuinfo

Code: Select all

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 28
model name	: Intel(R) Atom(TM) CPU Z530   @ 1.60GHz
stepping	: 2
cpu MHz		: 800.000
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
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 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 xtpr pdcm lahf_lm tpr_shadow vnmi flexpriority
bogomips	: 3192.10
clflush size	: 64
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 28
model name	: Intel(R) Atom(TM) CPU Z530   @ 1.60GHz
stepping	: 2
cpu MHz		: 1600.000
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
apicid		: 1
initial apicid	: 1
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 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 xtpr pdcm lahf_lm tpr_shadow vnmi flexpriority
bogomips	: 3192.06
clflush size	: 64
power management:
Top
pappy_mcfae
Watchman
Watchman
User avatar
Posts: 5999
Joined: Thu Dec 27, 2007 10:51 pm
Location: Pomona, California.
Contact:
Contact pappy_mcfae
Website

  • Quote

Post by pappy_mcfae » Tue Oct 27, 2009 5:24 am

You should change your kernel. That is a no-brainer. Since your chost is i686-pc-linux-gnu, you don't have to do anything else.

Blessed be!
Pappy
This space left intentionally blank, except for these ASCII symbols.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Tue Oct 27, 2009 11:46 am

In fact, you use -march=native so you already optmised.

Code: Select all

CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -march=native -pipe" 
CHOST="i686-pc-linux-gnu" 
Top
gringo
Advocate
Advocate
User avatar
Posts: 3793
Joined: Sun Apr 27, 2003 10:25 am

  • Quote

Post by gringo » Tue Oct 27, 2009 2:20 pm

I have an Item Atom Z530 (i586)
um, why do you think the atom is an i586 ?

cheers
Error: Failing not supported by current locale
Top
maxime1986
n00b
n00b
Posts: 74
Joined: Fri Oct 23, 2009 9:08 pm

  • Quote

Post by maxime1986 » Tue Oct 27, 2009 5:14 pm

gringo wrote:
I have an Item Atom Z530 (i586)
um, why do you think the atom is an i586 ?

cheers
http://en.gentoo-wiki.com/wiki/CompuLab ... tstrapping

but the doc it's for fitpc1 ... I have a fitpc2 ...
Maybe fitpc2 it's not an i586 ...

However when I do make menuconfig i586 and i686 is the same option CONFIG_M586.

maybe it's a i686 :
http://browse.geekbench.ca/geekbench2/view/137490
Top
pappy_mcfae
Watchman
Watchman
User avatar
Posts: 5999
Joined: Thu Dec 27, 2007 10:51 pm
Location: Pomona, California.
Contact:
Contact pappy_mcfae
Website

  • Quote

Post by pappy_mcfae » Tue Oct 27, 2009 8:41 pm

Technically, it's a core2 with a few less goodies. You can use the core-2 kernel CPU settings.

Blessed be!
Pappy
This space left intentionally blank, except for these ASCII symbols.
Top
maxime1986
n00b
n00b
Posts: 74
Joined: Fri Oct 23, 2009 9:08 pm

  • Quote

Post by maxime1986 » Tue Oct 27, 2009 9:13 pm

pappy_mcfae wrote:Technically, it's a core2 with a few less goodies. You can use the core-2 kernel CPU settings.

Blessed be!
Pappy
Thanks for the information.
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Tue Oct 27, 2009 11:32 pm

wikipedia disagrees:
Atom therefore represents a partial revival of the principles used in earlier Intel designs such as Intel P5 and the i486, with the sole purpose of enhancing the performance per watt ratio.

http://www.anandtech.com/cpuchipsets/in ... i=3276&p=6
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
maxime1986
n00b
n00b
Posts: 74
Joined: Fri Oct 23, 2009 9:08 pm

  • Quote

Post by maxime1986 » Wed Oct 28, 2009 1:43 am

I just try with CONFIG_M686=y and it is working for now.
Top
gringo
Advocate
Advocate
User avatar
Posts: 3793
Joined: Sun Apr 27, 2003 10:25 am

  • Quote

Post by gringo » Wed Oct 28, 2009 9:56 am

Atom therefore represents a partial revival of the principles used in earlier Intel designs such as Intel P5 and the i486, with the sole purpose of enhancing the performance per watt ratio.
well, yeah, it may have some of the ideas of the 486 world but stating that the atom _is_ 585 is just plain wrong IMO.
btw, not even the intel guys agreed on what were the best instructions to use in linux world till we had -march=atom :-)

http://lkml.org/lkml/2008/10/13/235

cheers
Error: Failing not supported by current locale
Top
emerald
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 113
Joined: Sun Jul 31, 2005 3:39 pm

  • Quote

Post by emerald » Sat Oct 31, 2009 3:55 pm

I'm running an atom with -march=core2 -mtune=generic since the features it supports are the same as the generic core2 architecture, but since it only uses in-order execution of microops (compared to out-of-order execution in core2) it's (should be) best to tune to a generic (or pentium) architecture. The out-of-order execution was introduced with the 686 (pentium pro) architecture.
For the kernel it should be best to optimize for core2 and again activate generic tuning.
Knowledge is scary....

... running Gentoo Linux ...
... and Windows in a 'small corner'(C) - i.e. vmware - :D ...
System Profile

Don't open the Red Door !
Top
pigeon768
l33t
l33t
Posts: 683
Joined: Mon Jan 02, 2006 1:13 pm

  • Quote

Post by pigeon768 » Sat Oct 31, 2009 9:19 pm

-march=core2 -mtune=generic is counter productive. Use -march=native.

Either way, the atom is i686. The fit-pc1 had a i586 geode, so that's why the article says to use i586 CHOST.
Top
emerald
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 113
Joined: Sun Jul 31, 2005 3:39 pm

  • Quote

Post by emerald » Sat Oct 31, 2009 9:36 pm

pigeon768 wrote:-march=core2 -mtune=generic is counter productive. Use -march=native.

Either way, the atom is i686. The fit-pc1 had a i586 geode, so that's why the article says to use i586 CHOST.
The atom, indeed, is i686, so i686 CHOST should be used.
But, since gcc doesn't yet know the atom scheduling it's better to give a hint about the scheduling, thats the -mtune switch for. And if you want to use distcc for compiling, which i do, you will have to specify the correct arch including supported extensions, otherwise (with -march=native) distcc won't compile remotely but only local.
In general, the atom supports the extensions the core2 supports too, so nothing done wrong with this choice.
Knowledge is scary....

... running Gentoo Linux ...
... and Windows in a 'small corner'(C) - i.e. vmware - :D ...
System Profile

Don't open the Red Door !
Top
Post Reply

15 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic