Subject: Re: Cannot boot netbsd-3.0 on my powerbook 12'
To: None <port-macppc@netbsd.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: port-macppc
Date: 02/09/2006 22:21:49
Hi,

On Wed, Feb 08, 2006 at 03:36:33PM +0100, Antoine Reilles wrote:
> On Wed, Jan 04, 2006 at 01:43:09PM +0100, Antoine Reilles wrote:
> > On Tue, Dec 27, 2005 at 03:07:34PM +0100, Olivier MATZ wrote:
> > > I tried to boot netbsd on my powerbook laptop :
> > >   12' (feb 2005)
> > >   768MB DDR333 (256MB built-in + 512MB SO-DIMM)
> > >   80GB Ultra ATA drive (5400rpm)
> > >   8x SuperDrive (DVD R/CD-RW)
> > >   AirPort Extreme Card
> > >   Keyboard & Mac OS  768MB RAM
> 
> To help identify the problem, i followed the steps from:
> http://mail-index.netbsd.org/port-macppc/2004/08/30/0015.html
> to get more information on the issue.
> I tried that with a -current kernel, on a very similar Powerbook 6,8
> (the only difference is the 1GB DIMM), with both ofwboot.xcf and the
> kernel being on a small HFS partition.
> Here is the output, i hope it can help to get what is wrong here

Since i often get a Decrementer exception when trying to boot, i tried
to disable the exception earlier (thanks martin and macallan), using
the following patch

Index: sys/arch/macppc/macppc/locore.S
===================================================================
RCS file: /cvsroot/src/sys/arch/macppc/macppc/locore.S,v
retrieving revision 1.54
diff -u -r1.54 locore.S
--- sys/arch/macppc/macppc/locore.S	11 Dec 2005 12:18:06 -0000	1.54
+++ sys/arch/macppc/macppc/locore.S	9 Feb 2006 21:18:50 -0000
@@ -82,10 +82,10 @@
 	.text
 	.globl	__start
 __start:
+	mtmsr	0			/* Disable FPU/MMU/exceptions */
 	bl	_C_LABEL(ofwinit)	/* init OF */
 
 	li	0,0
-	mtmsr	0			/* Disable FPU/MMU/exceptions */
 	isync
 
 /* compute end of kernel memory */

With this, it looks like the kernel hangs just after being loaded, and
i get:
>> NetBSD/macppc OpenFirmware Boot, Revision 1.10
>> (tonio@193.180.97-84.rev.gaoland.net, Sat Feb  4 16:33:38 CET 2006)
1550068+158792 [112736+104103]=0x1d6610
 start=0x100000
_

and have to reboot. So it looks like my problem is located in the
ofwinit routine. I'm stuck to this point

Regards,
antoine