From owner-freebsd-ppc@FreeBSD.ORG Sun Dec 17 21:58:24 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8956B16A66B for ; Sun, 17 Dec 2006 21:58:24 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fep01.xtra.co.nz (fep01.xtra.co.nz [210.54.141.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70B9743FB7 for ; Sun, 17 Dec 2006 21:48:52 +0000 (GMT) (envelope-from andrew@fubar.geek.nz) Received: from serv.int.fubar.geek.nz ([222.155.167.159]) by fep01.xtra.co.nz with ESMTP id <20061217214842.NNKO19965.fep01.xtra.co.nz@serv.int.fubar.geek.nz> for ; Mon, 18 Dec 2006 10:48:42 +1300 Date: Mon, 18 Dec 2006 10:48:41 +1300 From: Andrew Turner To: freebsd-ppc@freebsd.org Message-ID: <20061218104841.72ba51ea@hermies.int.fubar.geek.nz> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: FreeBSD on an Efika X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2006 21:58:24 -0000 I have been sent an Efika[1] board from Genesi. When booting FreeBSD on it I found it would stop before the printing copyright notice. The problem seems to be similar to http://lists.freebsd.org/pipermail/freebsd-ppc/2006-June/001692.html (I have had the same output before) After some investigation I found the kernel was stopping when it reached sys/kern/subr_msgbuf.c line 125 [2]. The msgbuf struct appears to point to an invalid address. The address of the struct comes from virtual_addr[3]. This indicates the virtual_addr points to an invalid area of memory on this device. By commenting out sys/kern/subr_prf.c line 924 [4] and using the ofw console I managed to get past the copyright notice. It now stopped later attempting to read from memory in the virtual_addr range. Has any one got any suggestions how I could fix this? Andrew [1] http://www.powerdeveloper.org/efika.php [2] http://fxr.watson.org/fxr/source/kern/subr_msgbuf.c#L125 [3] http://fxr.watson.org/fxr/source/powerpc/powerpc/mmu_oea.c#L899 [4] http://fxr.watson.org/fxr/source/kern/subr_prf.c#L924