From owner-freebsd-arm@FreeBSD.ORG Wed Aug 23 18:23:02 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF55216A4DD for ; Wed, 23 Aug 2006 18:23:02 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95BED43D45 for ; Wed, 23 Aug 2006 18:22:56 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7NIMrWe071826; Wed, 23 Aug 2006 20:22:53 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7NIMlMn029455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Aug 2006 20:22:47 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7NIMkkV048517; Wed, 23 Aug 2006 20:22:46 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7NIMknR048516; Wed, 23 Aug 2006 20:22:46 +0200 (CEST) (envelope-from ticso) Date: Wed, 23 Aug 2006 20:22:46 +0200 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20060823182246.GI47093@cicely12.cicely.de> References: <20060823175736.GE47093@cicely12.cicely.de> <20060823.120801.-861029429.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060823.120801.-861029429.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: AT91RM9200 problem X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 18:23:02 -0000 On Wed, Aug 23, 2006 at 12:08:01PM -0600, M. Warner Losh wrote: > In message: <20060823175736.GE47093@cicely12.cicely.de> > Bernd Walter 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@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@bwct.de info@bwct.de support@fizon.de