From owner-freebsd-arm@FreeBSD.ORG Fri Apr 25 16:51:01 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF25D1065686 for ; Fri, 25 Apr 2008 16:51:01 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id 48FC48FC2F for ; Fri, 25 Apr 2008 16:51:01 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.2/8.14.2) with ESMTP id m3PGoubr009560; Fri, 25 Apr 2008 11:50:56 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1209142256; bh=JzIWkBv2XsA/mHah68+lMRSepG8=; h=Date: From:Message-Id:To:Subject:In-Reply-To; b=Mt9fAST9aFV0pxgGaITt/sOw TvhE8JRqmB9GIS1qvMiuZo7Sb9cAtFy804mWSvRQ6wSxKdPx13r4M+oaWgmpoAQxSw4 0DXh/6/n6WuvL7/RUBcu08UdVC8cdAgWc/2/y+ts62KlVm4JVIYbdfwXOGS0F3gGyJY x0r6glWwN0Hx0= Received: (from tinguely@localhost) by casselton.net (8.14.2/8.14.2/Submit) id m3PGotrp009557; Fri, 25 Apr 2008 11:50:55 -0500 (CDT) (envelope-from tinguely) Date: Fri, 25 Apr 2008 11:50:55 -0500 (CDT) From: Mark Tinguely Message-Id: <200804251650.m3PGotrp009557@casselton.net> To: freebsd-arm@freebsd.org, ray@dlink.ua In-Reply-To: <20080425172122.5d7d723b.ray@dlink.ua> Cc: Subject: Re: FreeBSD on PXA255 board 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, 25 Apr 2008 16:51:01 -0000 > I`m trying to run FreeBSD 7.0 on PXA255 chip (board Palm Tungsten C). > Machine depended code partially write by me, and kernel started, but I > have big problem. Can`t resolve problem without experience in > internals of kernel. > So I put to kernel code many printf`s, and can see this picture: > > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-STABLE #130: Fri Apr 25 16:58:58 EEST 2008 > ray@terran.mk.farlep.net:/usr/home/ray/Projects/ARM/Palm_TC/NanoBSD/Nano-BSD-obj/arm/usr/home/ray/Projects/ARM/Palm_TC/FreeBSD/src/sys/PALMTC > WARNING: DIAGNOSTIC option enabled, expect reduced performance. > subsystem 900000 > 0xc02670f8(0)... done. > subsystem 1000000 > 0xc03806fc(0)... vm_mem_init: vm_set_page_size > vm_page_startup: new_end=a3fcf000 end=a3fff000 boot_pages=30 UMA_SLAB_SIZE=1000 /usr/home/ray/Projects/ARM/Palm_TC/FreeBSD/src/sys/vm/vm_page.c:277 > vm_page_startup: new_end = trunc_page(new_end) = a3fcf000 /usr/home/ray/Projects/ARM/Palm_TC/FreeBSD/src/sys/vm/vm_page.c:279 > IN SOURCE CODE THERE: mapped = pmap_map(&vaddr, new_end, end, VM_PROT_READ | VM_PROT_WRITE); > vm_page_startup: pmap_map(&vaddr=C00FBE7C, new_end=A3FCF000,end=A3FFF000, VM_PROT_READ | VM_PROT_WRITE) = bfecf000 (vaddr=C0544000) /usr/home/ray/Projects/ARM/Palm_TC/FreeBSD/src/sys/vm/vm_page.c:284 > IN SOURCE CODE THERE: bzero((void *)mapped, end - new_end); > vm_page_startup: call uma_startup(bfecf000, 00000030) /usr/home/ray/Projects/ARM/Palm_TC/FreeBSD/src/sys/vm/vm_page.c:287 > IN SOURCE CODE THERE: uma_startup((void *)mapped, boot_pages); > > __END__ Did you specify enough kernel page tables to map the kernel, the device mappings and the vm_page structures? The vm_page structure is being built in this routine at the top of physical memory. The more RAM that is on the board the more vm_page entries are in this structure and the larger number of kernel page tables are needed to be defined. I don't understand that mapped == 0xbfecf000. KVA usually starts at 0xc000X000, though I remeber some Xscale use ARM_USE_SMALL_ALLOC and map some things just below the KVA. --Mark Tinguely