From owner-freebsd-sparc64@FreeBSD.ORG Thu Sep 24 10:24:20 2009 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FDE91065692 for ; Thu, 24 Sep 2009 10:24:20 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id B05C08FC24 for ; Thu, 24 Sep 2009 10:24:19 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id n8OAOIuJ060440; Thu, 24 Sep 2009 12:24:18 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id n8OAOIkR060439; Thu, 24 Sep 2009 12:24:18 +0200 (CEST) (envelope-from marius) Date: Thu, 24 Sep 2009 12:24:18 +0200 From: Marius Strobl To: KOT MATPOCKuH Message-ID: <20090924102418.GQ73777@alchemy.franken.de> References: <3979a4b0909170200x754ea8c5l495e300b2a7a5113@mail.gmail.com> <20090917224556.GA41908@alchemy.franken.de> <3979a4b0909172329q3a113942xfcd71394a98fee19@mail.gmail.com> <20090918131416.GQ57060@alchemy.franken.de> <3979a4b0909202346h5c062fa1qb5150ad90f970c5b@mail.gmail.com> <20090921172517.GE73777@alchemy.franken.de> <3979a4b0909220722w7fd3f23fp57065cd0a981e42b@mail.gmail.com> <20090923003006.GK73777@alchemy.franken.de> <3979a4b0909230753y40fcbbe6j7e2ebdd994fc8502@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline In-Reply-To: <3979a4b0909230753y40fcbbe6j7e2ebdd994fc8502@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: Is it posible to run FreeBSD/sparc64 on SunFire V215? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2009 10:24:20 -0000 --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 23, 2009 at 06:53:18PM +0400, KOT MATPOCKuH wrote: > 2009/9/23 Marius Strobl : > > > Please try booting the same kernel using the following loader: > > http://people.freebsd.org/~marius/loader > Wow! > I'm booted the kernel! :) > boot -sv log here: http://kot.spb.ru/tmp/fbsd/boot-ok.log > Is your loader specially patched or build with some options? > It's built with the attached quick hack. I think I've actually found a solution to solve the underlying problem properly in a MI way but haven't had time to implement and test that, yet. Marius --OgqxwSJOaUobr8KG Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="main.c.diff" Index: boot/sparc64/loader/main.c =================================================================== --- boot/sparc64/loader/main.c (revision 197069) +++ boot/sparc64/loader/main.c (working copy) @@ -64,6 +64,10 @@ #include #include +#include + +#include + #include "bootstrap.h" #include "libofw.h" #include "dev_net.h" @@ -383,10 +387,16 @@ return (error); printf("jumping to kernel entry at %#lx.\n", e->e_entry); + #ifdef LOADER_DEBUG pmap_print_tlb_sun4u(); #endif +#ifdef LOADER_NET_SUPPORT + /* Close the network instance (see net_open()). */ + ofwnet.netif_end(NULL); +#endif + entry = e->e_entry; OF_release((void *)heapva, HEAPSZ); --OgqxwSJOaUobr8KG--