From owner-freebsd-arm@FreeBSD.ORG Sat Jun 23 15:29:42 2012 Return-Path: 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 6144E106566B for ; Sat, 23 Jun 2012 15:29:42 +0000 (UTC) (envelope-from lukasz.wojcik@zoho.com) Received: from sender1.zohomail.com (sender1.zohomail.com [72.5.230.103]) by mx1.freebsd.org (Postfix) with ESMTP id 44D878FC20 for ; Sat, 23 Jun 2012 15:29:42 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type; b=hi6J9BxbCzF2xb7VmTKHtkIb8lOzQD7dVlCUOz/ZGrSDGVOaV97KHoiDXOu89ZKPgoSkjzw2pYw6 gl+48nZYneMqXpgilaX9uHZdviu8cIZ2BfGpFJy8h0fWX0YxMN+I Received: from [192.168.100.102] (46.174.212.99 [46.174.212.99]) by mx.zohomail.com with SMTPS id 1340464320398623.7274483595286; Sat, 23 Jun 2012 08:12:00 -0700 (PDT) Message-ID: <4FE5D495.6020605@zoho.com> Date: Sat, 23 Jun 2012 16:37:09 +0200 From: Lukasz Wojcik User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: Kate F References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ZohoMailClient: External X-Zoho-Virus-Status: 2 Cc: freebsd-arm@freebsd.org Subject: Re: PHYSMEM_SIZE and a hang on boot for kirkwood 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: Sat, 23 Jun 2012 15:29:42 -0000 On 06/23/12 15:45, Kate F wrote: > Hi, > > I have a Marvell Kirkwood 88F6281 device, which I'm trying to get running with > FreeBSD. It's in a D-link model "DNS 325", which has 256MB RAM. > > With FreeBSD 8.3, I found a hang on boot using the default DB-88F6XXX config. > I found PHYSMEM_SIZE=0x20000000 hardcoded in sys/arm/mv/kirkwood/std.db88f6xxx > which I presume means 512MB RAM - so I changed this to 0x10000000 and then > 8.3 booted fine. > > Now I'm trying 9.0 (primarily because I'm interested in the recent NAND work) > and I see the PHYSMEM_SIZE option was removed by commit [210249]: > http://lists.freebsd.org/pipermail/svn-src-head/2010-July/018727.html > > The default 9.0 DB-88F6XXX kernel hangs in exactly the same way as 8.3's did > for me: > > ## Starting application at 0x00900000 ... > dtbp = 0xc0c04408 > Copyright (c) 1992-2012 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 10.0-CURRENT #0 r237466: Sat Jun 23 03:08:08 BST 2012 > root@freebsd83.lan:/usr/obj/arm.arm/usr/src/sys/DB-88F6XXX-DNS325 arm > [silence] > > I believe this is the same problem. Is there a way I can hardcode the > physical memory size which would be equivalent to 8.3's PHYSMEM_SIZE option? > > Is is there a better way to solve this, and have the memory size found > automatically? > > Thank you, > I believe 9.0 is FDT-ized already. Take a look at: sys/boot/fdt/dts/db88f6281.dts, especially '/memory' node. also: http://wiki.freebsd.org/FlattenedDeviceTree -LW