From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 14 06:04:11 2003 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D5EB16A4BF; Tue, 14 Oct 2003 06:04:11 -0700 (PDT) Received: from motgate7.mot.com (motgate7.mot.com [129.188.136.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34A5643FB1; Tue, 14 Oct 2003 06:04:10 -0700 (PDT) (envelope-from Rafal.Jaworowski@motorola.com) Received: from il06exr06.mot.com (il06exr06.mot.com [129.188.137.136]) by motgate7.mot.com (Motorola/Motgate7) with ESMTP id h9ED3eZn011610; Tue, 14 Oct 2003 06:03:40 -0700 (MST) Received: from zpl02exm01.corp.mot.com (zpl02exm01.mpsc.mot.com [175.28.10.102])h9ED3rCi008514; Tue, 14 Oct 2003 08:03:58 -0500 Received: by zpl02exm01.mpsc.mot.com with Internet Mail Service (5.5.2657.2) id ; Tue, 14 Oct 2003 15:03:21 +0200 Message-ID: From: Jaworowski Rafal-ARJ004 To: "'Peter Grehan'" Date: Tue, 14 Oct 2003 15:03:19 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.2) Content-Type: text/plain cc: freebsd-ppc@freebsd.org Subject: RE: FYI: rudimentary loader for ppcbug-based systems X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 13:04:11 -0000 > >> The first piece of functionality I want to achieve is >netbooting the kernel. At the moment >> the loader is able to mount nfs-exported directory, browse >it and load elf files across the >> network. I didn't get to execute the actual powerpc kernel >yet but that's the next step. >> I'm using a compactPCI MCP750 board if you're interested. > > I think you'll run into OpenFirmware dependencies very >quickly in the kernel. However, >it might not be that difficult to fix that, and it needs to be >done at some point anyways. > Yes. I already know that locore.S and friends are very OF oriented. What I'm mostly concerned about is the pmap area but I need to see to it and better understand. What do you think is the right way of adding support in the kernel for another firmware but within the same architecture (powerpc in this case)? Should we just have a number of #ifdefs where appropriate, or maybe we should think about separating some bits and defining clean interfaces to common parts? Eventually I intend to let my work be merged with existing powerpc code in the tree and that's why I'd like to know what course to take. For now I'll just be using conditional compilation flags. Rafal