Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
'Illegal instruction' while bootstrapping
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
dickbn
n00b
n00b


Joined: 01 Sep 2003
Posts: 26

PostPosted: Mon Sep 01, 2003 2:03 am    Post subject: 'Illegal instruction' while bootstrapping Reply with quote

hello,

just now i tried to install gentoo 1.4 on my box from stage1 with CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer". the bootstrapping-script stops while/after compiling texinfo because of an 'Illegal instruction'. compiling with -march=athlon or -march=athlon-tbird works fine. sounds like my CPU is not an athlon-xp, but it is, output of cat /proc/cpuinfo is:
Code:

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP Processor
stepping        : 1
cpu MHz         : 1991.497
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips        : 3961.24

i had an comparable problem before when compiling mplayer on redhat with -march=athlon-xp optimizations. it also works with athlon or athlon-tbird.
has anybody an idea? is it possible, that the CPU isn't completely supported by the mainboard (ecs k7s5a)?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Sep 01, 2003 2:31 am    Post subject: Reply with quote

It looks like your BIOS is not enabling SSE on your Athlon XP, which effectively makes it a regular Athlon. Most newer kernels include a patch to enable SSE, but this doesn't do you any good until you actually boot with one. A better alternative would be a BIOS update.
Back to top
View user's profile Send private message
dickbn
n00b
n00b


Joined: 01 Sep 2003
Posts: 26

PostPosted: Mon Sep 01, 2003 4:47 pm    Post subject: Reply with quote

yes, i think that's the problem, but after flashing bios with newest version the problem is still present, so i think i have to patch my kernel. im using redhat with kernel 2.4.18-14 to chroot into the new gentoo. do you know which kernel release i have to choose? is this the patch i need?:
Code:

--- arch/i386/kernel/setup.c.orig 2003-02-03 13:26:38.000000000 +0100
+++ arch/i386/kernel/setup.c 2003-02-14 14:14:12.000000000 +0100
@@ -1421,7 +1421,7 @@
                          * If the BIOS didn't enable it already, enable it
                          * here.
                          */
- if (c->x86_model == 6 || c->x86_model == 7) {
+ if (c->x86_model == 6 || c->x86_model == 7 || c->x86_model == 8) {
                                 if (!test_bit(X86_FEATURE_XMM,
                                               &c->x86_capability)) {
                                         printk(KERN_INFO
Back to top
View user's profile Send private message
dickbn
n00b
n00b


Joined: 01 Sep 2003
Posts: 26

PostPosted: Fri Sep 05, 2003 3:02 am    Post subject: Reply with quote

i solved the problem now by compiling and using the gentoo-patched 2.4.20 kernel
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