From owner-freebsd-mips@FreeBSD.ORG Fri Feb 18 22:58:04 2011 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 6EB43106566B for ; Fri, 18 Feb 2011 22:58:04 +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 31E208FC12 for ; Fri, 18 Feb 2011 22:58:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p1IMt6uE068007 for ; Fri, 18 Feb 2011 15:55:06 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D5EF8CA.5010008@bsdimp.com> Date: Fri, 18 Feb 2011 15:55:06 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101211 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-mips@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Bootstraps for Mips/OCTEON platforms 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, 18 Feb 2011 22:58:04 -0000 On 02/18/2011 12:08, Andrew Duane wrote: > I'm starting at ground zero (almost) with an Octeon based platform related to the OCTEON1 config in the -CURRENT. The board uses an existing MIPS bootstrap and loader, but that does not seem to be compatible with what the kernel expects. What bootstrap is used normally? u-boot? u-boot is what we support. There's no other support in the codebase right now. uboot gives us: in a3 is passed in the cavium hardware descriptor. All other registers are ignored on boot. We only support version 6 and newer of the boot descriptor. You can see the details of the structure in sys/mips/cavium/octeon_machdep.c starting with platform_start(). Warner