Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with Geode (CPU does not support x86-64)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Miclaud
n00b
n00b


Joined: 04 Apr 2018
Posts: 7

PostPosted: Wed Apr 04, 2018 6:05 pm    Post subject: Problems with Geode (CPU does not support x86-64) Reply with quote

Hello to everyone.

I'm new to Gentoo (I come from Debian + Ubuntu) and I'm trying to install it on ad old Futro A250 thinclient.

Being Futro's CPU an AMD Geode LX800:

Code:

livecd ~ # cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family   : 5
model      : 10
model name   : Geode(TM) Integrated Processor by AMD PCS
stepping   : 2
cpu MHz      : 498.020
cache size   : 128 KB
physical id   : 0
siblings   : 1
core id      : 0
cpu cores   : 1
apicid      : 0
initial apicid   : 0
fdiv_bug   : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
wp      : yes
flags      : fpu de pse tsc msr cx8 sep pge cmov clflush mmx mmxext 3dnowext 3dnow eagerfpu 3dnowprefetch vmmcall
bugs      : sysret_ss_attrs
bogomips   : 996.04
clflush size   : 32
cache_alignment   : 32
address sizes   : 32 bits physical, 32 bits virtual
power management:


I decided to boot from a usb pen with install-x86-minimal-20180323T214503Z.iso image and choosing stage3-i486-20180323T214503Z.tar.xz as stage 3 (both of them taken from X86 section of gentoo downloads)

I followed the x86 handbook but I cannot compile the kernel (with genkernel --menuconfig --install all) because I got the following error:

Code:

kernel/bounds.c:1:0: error: CPU you selected does not support x86-64 instruction set


I tried genkernel with the following three ones (even if I later found that the -rt21 kernel is a x64bit only one):

Code:

drwxr-xr-x 25 root root 4096 Apr  4 14:29 linux-4.13_p4-pf
drwxr-xr-x 25 root root 4096 Apr  3 07:53 linux-4.14.27-rt21
drwxr-xr-x 26 root root 4096 Apr  4 17:27 linux-4.9.76-gentoo-r1


My /etc/portage/make.conf is:

Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

CHOST="i486-pc-linux-gnu"
CFLAGS="-Os -pipe -march=geode -mmmx -m3dnow -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"


# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

MAKEOPTS="-j1"

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
INPUT_DEVICES="evdev"
VIDEO_CARDS="geode"
#USE="a52 aac aacplus alsa bindist consolekit corefonts dbus encode faac ffmpeg flac freesound g3dvl gudev hwdb icu id3 id3tag lame libsamplerate lv2 mad midi minizip mp3 mp4 mpeg mpg123 musepack policykit python -qt3support -qt4 -qt5 realtime sndfile timidity truetype udev usb vorbis wav wavpack -X -introspection -pulseaudio -xscreensaver"

GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ http://ftp.fi.muni.cz/pub/linux/gentoo/"

CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext"


I event tried with -march=native flag, but without success.

Emerge info gives that:
Code:

livecd / # emerge --info
Portage 2.3.24 (python 3.5.4-final-0, default/linux/x86/17.0, gcc-6.4.0, glibc-2.25-r10, 4.9.76-gentoo-r1 i586)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-i586-Geode-TM-_Integrated_Processor_by_AMD_PCS-with-gentoo-2.4.1
KiB Mem:      504260 total,    263080 free
KiB Swap:    1048540 total,    982752 free
Timestamp of repository gentoo: Tue, 27 Mar 2018 00:45:01 +0000
Head commit of repository gentoo: c042c34a51c0ca551c55d8c428c419e2e3685021
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-Os -pipe -march=native -fomit-frame-pointer"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ http://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode x86 xattr zlib" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="geode" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




I even unflagged the menuconfig option "64-bit kernel".


Were am I wrong? Thank you for your help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44027
Location: 56N 3W

PostPosted: Wed Apr 04, 2018 6:24 pm    Post subject: Reply with quote

Miclaud,

Welcome to Gentoo.

Code:
genkernel --menuconfig --install all
should work provided you turn off the 64 bit option in the kernel.
Did you get past the
Code:
kernel/bounds.c:1:0: error: CPU you selected does not support x86-64 instruction set
error and get a new error?

If not, its the CPU Selection in the kernel in
Code:
Processor type and features  --->

Code:
Processor family (Opteron/Athlon64/Hammer/K8)  --->


I can't easily show you the 32 bit CPU list but the help say
Code:
    Here are the settings recommended for greatest speed:                       │ 
  │ - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or                        │ 
  │   SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S.                               │ 
  │ - "586" for generic Pentium CPUs lacking the TSC                            │ 
  │   (time stamp counter) register.                                            │ 
  │ - "Pentium-Classic" for the Intel Pentium.                                  │ 
  │ - "Pentium-MMX" for the Intel Pentium MMX.                                  │ 
  │ - "Pentium-Pro" for the Intel Pentium Pro.                                  │ 
  │ - "Pentium-II" for the Intel Pentium II or pre-Coppermine Celeron.          │ 
  │ - "Pentium-III" for the Intel Pentium III or Coppermine Celeron.            │ 
  │ - "Pentium-4" for the Intel Pentium 4 or P4-based Celeron.                  │ 
  │ - "K6" for the AMD K6, K6-II and K6-III (aka K6-3D).                        │ 
  │ - "Athlon" for the AMD K7 family (Athlon/Duron/Thunderbird).                │ 
  │ - "Opteron/Athlon64/Hammer/K8" for all K8 and newer AMD CPUs.               │ 
  │ - "Crusoe" for the Transmeta Crusoe series.                                 │ 
  │ - "Efficeon" for the Transmeta Efficeon series.                             │ 
  │ - "Winchip-C6" for original IDT Winchip.                                    │ 
  │ - "Winchip-2" for IDT Winchips with 3dNow! capabilities.                    │ 
  │ - "AMD Elan" for the 32-bit AMD Elan embedded CPU.                          │ 
  │ - "GeodeGX1" for Geode GX1 (Cyrix MediaGX).                                 │ 
  │ - "Geode GX/LX" For AMD Geode GX and LX processors.                         │ 
  │ - "CyrixIII/VIA C3" for VIA Cyrix III or VIA C3.                            │ 
  │ - "VIA C3-2" for VIA C3-2 "Nehemiah" (model 9 and above).                   │ 
  │ - "VIA C7" for VIA C7.                                                      │ 
  │ - "Intel P4" for the Pentium 4/Netburst microarchitecture.                  │ 
  │ - "Core 2/newer Xeon" for all core2 and newer Intel CPUs.                   │ 
  │ - "Intel Atom" for the Atom-microarchitecture CPUs.                         │ 
  │ - "Generic-x86-64" for a kernel which runs on any x86-64 CPU.


You need to choose -
Code:
"Geode GX/LX" For AMD Geode GX and LX processors. 

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 414
Location: France

PostPosted: Wed Apr 04, 2018 6:25 pm    Post subject: Reply with quote

Hello.

Probably a matter of options in kernel config: check CONFIG_64BIT, see "processor family"...

++
Gi)

Edit: arf, too late once again
Back to top
View user's profile Send private message
Miclaud
n00b
n00b


Joined: 04 Apr 2018
Posts: 7

PostPosted: Thu Apr 05, 2018 9:37 am    Post subject: Reply with quote

NeddySeagoon wrote:
Miclaud,
You need to choose -
Code:
"Geode GX/LX" For AMD Geode GX and LX processors. 



Hi NeddySeagoon and guitou, thank you for your help.

I forgot to tell you that I choosed "Geode GX" from cpu family in menuconfig. I even tried things like "486" or "Pentium Pro" but with no success. I've always unchecked the "64 bit kernel" option.

The "funny" thing is that I have the same behaviour in another thinclient with Atom N270 CPU (another one with 32bit arch).

I didn't tell you that the only thing I made out of the handbook guide are the following step (after chrooting and before doing genkernel):

Code:

cd /usr/portage/scripts
./bootstrap.sh
gcc-config i486-pc-linux-gnu-6.4.0
source /etc/profile
export PS1="(chroot) $PS1"
emerge -1v libtool
emerge -n gentoolkit
revdep-rebuild --library libstdc++.so.6



Maybe some of the default options I left checked in menuconfig needs support of x64 arch?
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 414
Location: France

PostPosted: Thu Apr 05, 2018 12:03 pm    Post subject: Reply with quote

Hello.

Maybe your kernel sources dir is messed up, try running "make mrproper" before redoing the configuration.

++
Gi)
Back to top
View user's profile Send private message
Miclaud
n00b
n00b


Joined: 04 Apr 2018
Posts: 7

PostPosted: Thu Apr 05, 2018 4:58 pm    Post subject: Reply with quote

Maybe I've found the trouble.

After failing the command:
Code:
genkernel --menuconfig --install all


I went to /usr/src/linux and tried a manual procedure with:

Code:

make menuconfig
make


I got the same error but noticed that the compiler used the config file placed in /usr/src/linux/.config

So, I opened the .config file and found that none of my options were selected! Look at just the beginning of the file:

Code:
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.13.0-pf4 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_MMU=y


It still has all of the 64bit options activated. So, I replaced the file with the conf I saved from the menuconfig GUI:

Code:

cd /usr/src/linux
move .config .config.old
move myconf.config .config
make


And now it's compiling!


So, which step was I wrong with? Is it normal that after exiting the menuconfig gcc starts with the wrong config file? It's my first kernel compilation so I probably miss something but I tought I followed the Handbook accurately...


Thank you for your help
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44027
Location: 56N 3W

PostPosted: Thu Apr 05, 2018 5:21 pm    Post subject: Reply with quote

Miclaud,

Code:
genkernel --menuconfig --install all
loads the default genkernel .config file then calls
Code:
make menuconfig
you must save the changes as you exit.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Miclaud
n00b
n00b


Joined: 04 Apr 2018
Posts: 7

PostPosted: Thu Apr 05, 2018 5:55 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Miclaud,

Code:
genkernel --menuconfig --install all
loads the default genkernel .config file then calls
Code:
make menuconfig
you must save the changes as you exit.


I saved the changes but... in a different filename! I feel so dumb in this moment :oops: :oops:

Thank you very much for your help, I hope my silly mistake's gonna help someone in the future :D
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44027
Location: 56N 3W

PostPosted: Thu Apr 05, 2018 6:38 pm    Post subject: Reply with quote

Miclaud,

You are in good company as long as you learned from your mistake.
Its called experience. Its what you get just after you needed it :)

That's in the fortune database somewhere.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Miclaud
n00b
n00b


Joined: 04 Apr 2018
Posts: 7

PostPosted: Thu Apr 05, 2018 11:05 pm    Post subject: Reply with quote

Thank you for you kind words. The funniest part with Gentoo begins right now :)
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5966

PostPosted: Fri Apr 06, 2018 7:30 am    Post subject: Reply with quote

If you're seriously doing a stage1 install in 2018, you may as well correct CHOST to i586 while you're at it...
Back to top
View user's profile Send private message
Miclaud
n00b
n00b


Joined: 04 Apr 2018
Posts: 7

PostPosted: Tue Apr 10, 2018 3:00 pm    Post subject: Reply with quote

Ant P. wrote:
If you're seriously doing a stage1 install in 2018, you may as well correct CHOST to i586 while you're at it...


Hi, sorry for the newbie questioon but what do you mean with "a stage 1 install"? Or, alternatively, where can I find some documentation for Gentoo newbies in order to get an overview of it?

Once again, thank you for your help. My Praim machine (the one with Atom N270) is working great right now ;)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44027
Location: 56N 3W

PostPosted: Tue Apr 10, 2018 3:46 pm    Post subject: Reply with quote

Miclaud,

Once upon a time, Gentoo offered three starting points for installs know as stage1, stage2 and stage3.
The tarballs corresponding to stage1 and stage2 are no longer published, nor are those installs supported.

If you really want the documentation its still in CVS but I forget which repository.
It will be raw GuideXML too, so maybe the Wayback Machine is a better place to look
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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