AT91RM9200 problem
Bernd Walter
ticso at cicely12.cicely.de
Wed Aug 23 18:23:02 UTC 2006
On Wed, Aug 23, 2006 at 12:08:01PM -0600, M. Warner Losh wrote:
> In message: <20060823175736.GE47093 at cicely12.cicely.de>
> Bernd Walter <ticso at cicely12.cicely.de> writes:
> : >e 0x20000000
> : KDB: debugger backends: ddb
> : KDB: current backend: ddb
> : Copyright (c) 1992-2006 The FreeBSD Project.
> : Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> : The Regents of the University of California. All rights reserved.
> : FreeBSD 7.0-CURRENT #4: Wed Aug 23 19:47:16 CEST 2006
> : ticso at cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT
> : CPU: ARM920T rev 0 (ARM9TDMI core)
> : DC enabled IC enabled WB enabled LABT
> : 16KB/32B 64-way Instruction cache
> : 16KB/32B 64-way write-back-locking-A Data cache
> : real memory = 67108864 (64 MB)
> : avail memory = 62603264 (59 MB)
> : panic: Cannot allocate L1 KVM
> : KDB: enter: panic
> :
> : This is a prototype board, so hardware problems are not impossible.
>
> First question: does this board actually have 64MB of RAM? If so,
> then I'm happy that the SDRAM detection code appears to be working...
Yes - 64MB (2x MT48LC16M16A2TG-75)
> I'm running 64MB boards here with a substantially similar kernel to
> yours. This panic happens because we can't allocate enough memory for
> the L1 page table cache. Since you are early in boot, I'm amazed that
> a 16kb allocation is failing...
>
> Are you using the kb920x_machdep.c file to do initialization?
Yes - basicly I took KB920X with small rearangements.
I'd put the included ../at91/std.kb920x contents directly into the
kernel file and added the hints file, because without hints nothing was
seen on the debug port.
[187]cicely7# diff -u KB920X BWCT
--- KB920X Mon Aug 21 17:52:52 2006
+++ BWCT Wed Aug 23 19:46:19 2006
@@ -19,11 +19,22 @@
# $FreeBSD: src/sys/arm/conf/KB920X,v 1.9 2006/07/17 21:17:20 cognet Exp $
machine arm
-ident KB920X
+ident BWCT
-include "../at91/std.kb920x"
+include "../at91/std.at91"
+files "../at91/files.kb920x"
+
+makeoptions KERNPHYSADDR=0x20000000
+makeoptions KERNVIRTADDR=0xc0000000
+options KERNPHYSADDR=0x20000000
+options KERNVIRTADDR=0xc0000000
+options PHYSADDR=0x20000000
+options STARTUP_PAGETABLE_ADDR=0x20800000
+
+#include "../at91/std.kb920x"
#To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" #Default places to look for devices.
+hints "../at91/hints.at91rm9200"
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
options DDB
Exit 1
--
B.Walter http://www.bwct.de http://www.fizon.de
bernd at bwct.de info at bwct.de support at fizon.de
More information about the freebsd-arm
mailing list