From owner-freebsd-mips@FreeBSD.ORG Fri Feb 18 23:02:25 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 582D21065672 for ; Fri, 18 Feb 2011 23:02:25 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 1A9EF8FC19 for ; Fri, 18 Feb 2011 23:02:24 +0000 (UTC) Received: by qyk36 with SMTP id 36so743263qyk.13 for ; Fri, 18 Feb 2011 15:02:24 -0800 (PST) Received: by 10.229.95.19 with SMTP id b19mr1007549qcn.179.1298070144202; Fri, 18 Feb 2011 15:02:24 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.229.74.70 with HTTP; Fri, 18 Feb 2011 15:02:04 -0800 (PST) In-Reply-To: <4D5EF8CA.5010008@bsdimp.com> References: <4D5EF8CA.5010008@bsdimp.com> From: Juli Mallett Date: Fri, 18 Feb 2011 15:02:04 -0800 X-Google-Sender-Auth: snfAohGrMBZFEO-jVHFAKOIBNrM Message-ID: To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org 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 23:02:25 -0000 On Fri, Feb 18, 2011 at 14:55, Warner Losh wrote: > On 02/18/2011 12:08, Andrew Duane wrote: >> >> I'm starting at ground zero (almost) with an Octeon based platform relat= ed >> 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. =A0There's no other support in the codebase ri= ght > now. =A0uboot gives us: > > in a3 is passed in the cavium hardware descriptor. =A0All other registers= are > ignored on boot. =A0We only support version 6 and newer of the boot > descriptor. =A0You can see the details of the structure in > sys/mips/cavium/octeon_machdep.c starting with platform_start(). It's worth noting that we don't use the Simple Executive ELF Application calling convention but the Octeon Linux one, so 'bootoctlinux' should be used instead of 'bootoctelf'. Juli.