From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 11:48:49 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 48ED316A421 for ; Fri, 1 Jun 2007 11:48:49 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id EA7E813C465 for ; Fri, 1 Jun 2007 11:48:47 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 2301EBF513; Fri, 1 Jun 2007 14:48:46 +0300 (EEST) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79784-01; Fri, 1 Jun 2007 14:48:43 +0300 (EEST) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 957E2BF510; Fri, 1 Jun 2007 14:48:43 +0300 (EEST) Message-ID: <46600799.7000705@bulinfo.net> Date: Fri, 01 Jun 2007 14:48:41 +0300 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= References: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: Execution stops while enabling MMU X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 11:48:49 -0000 Make sure that you are configured the RAM memory properly. Also, can you give us more info about your board? Björn König wrote: > Hello, > > I try to use FreeBSD with an AT91RM9200-based board similar to KB920X. I > use an existing boot loader (U-Boot running at 0x00000000) to copy the raw > binary kernel (not ELF) to the beginning of the SDRAM (0x20000000) and > execute it with the "go" command. But suddenly the execution stops while > enabling the MMU in src/sys/arm/arm/locore.S: > > /* Enable MMU */ > mrc p15, 0, r0, c1, c0, 0 > orr r0, r0, #CPU_CONTROL_MMU_ENABLE > mcr p15, 0, r0, c1, c0, 0 > > Code behind these lines won't be executed anymore. Here are some variables > that I use: > > KERNPHYSADDR=0x20000000 > KERNVIRTADDR=0xc0000000 > PHYSADDR=0x20000000 > STARTUP_PAGETABLE_ADDR=0x20800000 > > Does anybody have a hint for me? My knowledge about ARM architecture is > still superficially (literature already ordered ;-). > > Regards > Björn > > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >