View previous topic :: View next topic |
Author |
Message |
dickbn n00b
Joined: 01 Sep 2003 Posts: 26
|
Posted: Mon Sep 01, 2003 2:03 am Post subject: 'Illegal instruction' while bootstrapping |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Mon Sep 01, 2003 2:31 am Post subject: |
|
|
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 |
|
|
dickbn n00b
Joined: 01 Sep 2003 Posts: 26
|
Posted: Mon Sep 01, 2003 4:47 pm Post subject: |
|
|
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 |
|
|
dickbn n00b
Joined: 01 Sep 2003 Posts: 26
|
Posted: Fri Sep 05, 2003 3:02 am Post subject: |
|
|
i solved the problem now by compiling and using the gentoo-patched 2.4.20 kernel |
|
Back to top |
|
|
|