From nobody@FreeBSD.org  Wed May 31 13:51:19 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5925416B09B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 May 2006 13:51:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DE33643D79
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 May 2006 13:51:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4VDpIdY044480
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 May 2006 13:51:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4VDpIVh044479;
	Wed, 31 May 2006 13:51:18 GMT
	(envelope-from nobody)
Message-Id: <200605311351.k4VDpIVh044479@www.freebsd.org>
Date: Wed, 31 May 2006 13:51:18 GMT
From: Molle Bestefich <molle.bestefich@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: regression: FreeBSD can no longer boot Geode GX1 CPU
X-Send-Pr-Version: www-2.3

>Number:         98215
>Category:       i386
>Synopsis:       [geode] [regression] FreeBSD can no longer boot Geode GX1 CPU
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 31 14:00:32 GMT 2006
>Closed-Date:    Wed Oct 12 06:16:11 UTC 2011
>Last-Modified:  Wed Oct 12 06:16:11 UTC 2011
>Originator:     Molle Bestefich
>Release:        6.1
>Organization:
>Environment:
N/A
>Description:
Using FreeBSD 4.7 with the Geode patches from:
http://www.routerboard.com/geode.html

This is the successful bootup:
==============================================
FreeBSD 4.7-GEODE-RELEASE #0: Wed Oct 30 07:03:05 GMT 2002
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium (300.01-MHz 586-class CPU)
  Origin = "Geode by NSC"  Id = 0x540
real memory  = 268435456 (262144K bytes)
avail memory = 256045056 (250044K bytes)
Preloaded elf kernel "kernel" at 0xc050f000.
md0: Malloc disk
Using $PIR table, 4 entries at 0xc00f4f50
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pci0: <unknown card> (vendor=0x14e4, dev=0x5802) at 13.0 irq 10
fxp0: <Intel Embedded 10/100 Ethernet> port 0x8000-0x803f mem 0x80200000-0x8021ffff,0x80100000-0x80100fff irq 11 at device 14.0 on pci0
.. snip ...
==============================================

Using FreeBSD 6.1, either vanilla or with the Geode INT15 patch applied (no difference), this is the failed bootup:

==============================================
FreeBSD 6.1-RELEASE #0: Wed May 31 10:57:15 UTC 2006
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by National Semi (300.01-MHz 586-class CPU)
  Origin = "Geode by NSC"  Id = 0x540  Stepping = 0
  Features=0x808131<FPU,TSC,MSR,CX8,CMOV,MMX>
real memory  = 268435456 (256 MB)
avail memory = 253087744 (241 MB)
wlan: mac acl policy registered
kbd1 at kbdmux0
ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 4 Entries> on motherboard
pci0: <PCI bus> on pcib0

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xeb11f
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc00eb631
stack pointer           = 0x28:0xc0c209e0
frame pointer           = 0x28:0xc0c209e0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = base 0x0, limit 0xfffff, type 0x1b
                        = 0 (swapper)

[thread pid 0 tid 0 ]
Stopped at      0xc00eb631:     cmpb    %cs:0x1(%esi),%bl

db> trace
Tracing pid 0 tid 0 td 0xc0a72320
kernbase(c00f4fa2,c00f4fa0,c090c15d,a0a,68) at 0xc00eb631
_end(cb9d08c4,52495024,600100,9000,21078) at 0xc0c20a38
==============================================

Hardware / firmware information:
==============================================
The CPU is a National Semiconductor Geode GX1.
The accompanying chipset is a National Semiconductor Geode CS5530A.
The accompanying BIOS is an Insyde XpressROM a059.
The "unknown card" found by FreeBSD is a BroadCom 5802 cryptoprocessor.
==============================================


>How-To-Repeat:
Install FreeBSD 6.1 onto appropriate hardware.

>Fix:
This is the first time I've ever installed/used BSD, so I don't have a clue.
I'd be happy to run DDB commands, patch and install kernels etc. if you can
give me a hint what to look for.  Any useful places I can insert printf's,
for example?

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Wed Jul 14 06:04:32 UTC 2010 
State-Changed-Why:  
Hello, is this still a problem on recent versions of FreeBSD? 
I have a soekris 5501 that boots perfectly without problems 
on recent versions, so this could be fixed. Can you please 
confirm whether or not this is still relevant? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98215 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Wed Oct 12 06:16:09 UTC 2011 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98215 
>Unformatted:
