From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 17:39:52 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B6A61065673 for ; Fri, 27 Aug 2010 17:39:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D2C018FC13 for ; Fri, 27 Aug 2010 17:39:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7RHb6GG052883; Fri, 27 Aug 2010 11:37:07 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 27 Aug 2010 11:37:11 -0600 (MDT) Message-Id: <20100827.113711.641066760578782485.imp@bsdimp.com> To: pmahan@adaranet.com From: "M. Warner Losh" In-Reply-To: <4C77EB9F.4020705@adaranet.com> References: <4C77EB9F.4020705@adaranet.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Now partially booting on our CN58XX eval board X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 17:39:52 -0000 In message: <4C77EB9F.4020705@adaranet.com> Patrick Mahan writes: : We have it now starting to boot on our eval board with the 1.8.1 SDK : bootloader. : : It panic's on a bad address during a device attach, perhaps in the : ethernet driver setup? I am attaching the output from the console : below. : : I do see in the console output : : 'Octeon SDK: Cavium Networks Octeon SDK version 1.9.0, build 312' : : Which I am assuming is the cavium SDK pieces being included as part of : the mips kernel. That's right. This is the cnusers.org SDK that we've included in the kernel. : Warner, is this what you would see on happen on under 1.8.1? No. I have older uboot systems, and they refuse to properly load the kernel. see below... : I am attaching (again) my kernel config. Is anything else needed? : : Patrick : Adara Networks [trimmed] : octebus0: [FILTER] : Interface 1 has 4 ports (RGMII) : panic: cvmx_phys_to_ptr: mapping high address (0x2090a880) not yet : supported. I am seeing this when I boot a 32-bit kernel on two of the three boards I have access to (both of them, btw, have older uboot loaders on them). The problem here is that cvmx_phys_to_ptr only supports direct mapping, so we can only use the first 512MB of memory. Juli and I have talked about clamping the available memory to using only the first 512MB on 32-bit kernels, but we don't like this idea and are casting about for others. The 64-bit kernel doesn't suffer this limitation. Warner