From owner-freebsd-hackers@FreeBSD.ORG Thu May 21 00:53:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C192106566C for ; Thu, 21 May 2009 00:53:15 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5DD908FC1A for ; Thu, 21 May 2009 00:53:15 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id E69891A3C3B; Wed, 20 May 2009 17:36:46 -0700 (PDT) Date: Wed, 20 May 2009 17:36:46 -0700 From: Alfred Perlstein To: Chuck Robey Message-ID: <20090521003646.GS67847@elvis.mu.org> References: <4A11B893.1000808@telenix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A11B893.1000808@telenix.org> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD-Hackers Subject: Re: porting info for FreeBSD's kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2009 00:53:16 -0000 * Chuck Robey [090518 13:03] wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I've been googling, trying to see if I can find notes regarding what needs > changing, in what order, to adapt the FreeBSD kernel to a new processor. Anyone > know where stuff like that can be found? You need a cross compile toolchain of course, look into how FreeBSD is configured for the various arches. Then I would suggest looking at the loaders, followed by kern/init_main.c. If you trace down init_main.c and some of the early sysinits that should give you an idea. You might also be able to backtrack using CVS/svn to follow how mips or arm was done. Note: freebsd has a decent cross-compile setup now, see "make universe" so things should be easier to get started. -- - Alfred Perlstein