From owner-freebsd-ppc@FreeBSD.ORG Sun Dec 17 22:31:54 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 C283E16A49E for ; Sun, 17 Dec 2006 22:31:54 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from mta06.xtra.co.nz (mta06.xtra.co.nz [210.54.141.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8A9F43E6D for ; Sun, 17 Dec 2006 22:27:19 +0000 (GMT) (envelope-from andrew@fubar.geek.nz) Received: from serv.int.fubar.geek.nz ([222.155.167.159]) by fep02.xtra.co.nz with ESMTP id <20061217101035.JTVV16919.fep02.xtra.co.nz@serv.int.fubar.geek.nz> for ; Sun, 17 Dec 2006 23:10:35 +1300 Received: from hermies.int.fubar.geek.nz (hermies [192.168.1.10]) by serv.int.fubar.geek.nz (Postfix) with ESMTP id D9FB46128 for ; Sun, 17 Dec 2006 23:10:34 +1300 (NZDT) Date: Sun, 17 Dec 2006 23:10:34 +1300 From: Andrew Turner To: freebsd-ppc@freebsd.org Message-ID: <20061217231034.4caaf631@hermies.int.fubar.geek.nz> X-Mailer: Sylpheed-Claws 2.5.2 (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 22:31:55 -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