Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 2009 12:24:18 +0200
From:      Marius Strobl <marius@alchemy.franken.de>
To:        KOT MATPOCKuH <matpockuh@gmail.com>
Cc:        freebsd-sparc64@freebsd.org
Subject:   Re: Is it posible to run FreeBSD/sparc64 on SunFire V215?
Message-ID:  <20090924102418.GQ73777@alchemy.franken.de>
In-Reply-To: <3979a4b0909230753y40fcbbe6j7e2ebdd994fc8502@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <marius@alchemy.franken.de>:
> 
> > 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 <machine/ver.h>
 #include <machine/vmparam.h>
 
+#include <netinet/in.h>
+
+#include <netif.h>
+
 #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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090924102418.GQ73777>