Travers Buda wrote:
* Anders Langworthy <[EMAIL PROTECTED]> [2007-11-23 18:56:35]:

Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2007 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 4.2-current (RAMDISK_CD) #539: Thu Nov 15 19:28:35 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Transmeta Efficeon(tm) Processor TM8000 ("GenuineTMx86" 386-
class) 1.60 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,ACPI,MMX,FXSR,SSE,SSE2,SS,TM
NOTICE: this kernel does not support i386 CPU class
panic: no appropriate CPU class available


This should do it, however I don't do this kernel stuff too often.
Take from that what you will.


--- /usr/src/sys/arch/i386/i386/machdep.c       2007/11/24 05:34:44     1.1
+++ /usr/src/sys/arch/i386/i386/machdep.c       2007/11/24 06:54:34
@@ -922,15 +922,15 @@
                        },
                        tm86_cpu_setup
                },
-               /* Family 6, not yet available from Transmeta */
+               /* Family 6 */
                {
                        CPUCLASS_686,
                        {
+                               "TM8000", 0, "TM8000", "TM8000", 0, 0, 0, 0,
                                0, 0, 0, 0, 0, 0, 0, 0,
-                               0, 0, 0, 0, 0, 0, 0, 0,
-                               "686 class"           /* Default */
+                               "TM8000"              /* Default */
                        },
-                       NULL
+                       tm86_cpu_setup
                } }
        },
        {
@@ -1493,7 +1493,7 @@
 void
 tm86_cpu_setup(struct cpu_info *ci)
 {
-#if !defined(SMALL_KERNEL) && defined(I586_CPU)
+#if !defined(SMALL_KERNEL) && defined(I586_CPU) || defined(I686_CPU)
        longrun_init();
 #endif
 }


Hi.  Thank you for your help.

In the process of testing this patch, I discovered that if I try to boot a normal kernel as opposed to the ramdisk kernel, it fails but at least I get a panic and some debugger output, which may or may not be useful. Does bsd.rd not include the debugger?

Anyway I get pretty much the same result with the patch as without:

/* without patch */
OpenBSD 4.2-current (GENERIC) #538: Thu Nov 15 19:04:34 MST 2007
        [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Transmeta Efficeon(tm) Processor TM8000 ("GenuineTMx86" 386-
class) 1.60 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL
USH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM
NOTICE: this kernel does not support i386 CPU class
panic: no appropriate CPU class available
Stopped at      Debugger+0x4:   leave
Debugger(d077d604,0,d08fbe88,18,9) at Debugger+0x4
panic(d06c7340,d06d6435,d074a538,20000000,d086a1b4) at panic+0x63
identifycpu(d086a1a0,d06c6a25,10,0,d077d604) at identifycpu+0x386
cpu_startup(d06a0695,d06a2b60,d08fbfa0,d03370ef,2) at cpu_startup+0x94
main(0,0,0,0,0) at main+0x5d
/* end */

/* with patch */
OpenBSD 4.2-current (GENERIC) #0: Fri Nov 23 23:00:24 CST 2007
        [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Transmeta Efficeon(tm) Processor TM8000 ("GenuineTMx86" 386-
class) 1.60 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL
USH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM
NOTICE: this kernel does not support i386 CPU class
panic: no appropriate CPU class available
Stopped at      Debugger+0x4:   leave
Debugger(d077db04,0,d08fbe88,18,9) at Debugger+0x4
panic(d06c7680,d06d6775,d074a958,20000000,d086a6d4) at panic+0x63
identifycpu(d086a6c0,d06c6d65,10,0,d077db04) at identifycpu+0x386
cpu_startup(d06a1415,d06a38e0,d08fbf0a,d0337a1f,2) at cpu_startup+0x94
main(0,0,0,0,0) at main+0x5d
/* end */

Reply via email to