NetBSD Problem Report #22316

Received: (qmail 13245 invoked by uid 605); 31 Jul 2003 06:31:51 -0000
Message-Id: <200307310631.h6V6VHd08468@ni-jute.exodus.worst.com>
Date: Wed, 30 Jul 2003 23:31:17 -0700 (PDT)
From: cyber@ono-sendai.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: cyber@ono-sendai.com
To: gnats-bugs@gnats.netbsd.org
Subject: 1.6.1 kernels fail to boot on a 1GHz 15" PowerBook
X-Send-Pr-Version: 3.95

>Number:         22316
>Category:       port-macppc
>Synopsis:       1.6.1 kernels fail to boot on a 1GHz 15" PowerBook
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 31 06:32:00 +0000 2003
>Closed-Date:    
>Last-Modified:  Sat Aug 25 14:00:01 +0000 2018
>Originator:     Erik Berls
>Release:        NetBSD 1.6.1
>Organization:
>Environment:
Architecture: macppc
Machine: macppc
>Description:
	bootstrap for 1.6.1 works, but install kernel fails to run.

>How-To-Repeat:
	Burn a CD from ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.1/macppccd.iso
	Insert Disk, bring system up into OpenFirmware and type:
	boot cd:,\ofwboot.xcf /netbsd.macppc

	Observe bootstrap info notice followed by:

3863476+219148 [188832+156914]=0x4394b8
 start=0x100000
Invalid memory access at   %SRR0:  0000004b    %SRR1: 00004b00

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: macallan@netbsd.org
State-Changed-When: Wed, 16 Aug 2006 09:20:09 +0000
State-Changed-Why:
does this still happen?


From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: port-macppc-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
	gnats-admin@netbsd.org, macallan@netbsd.org, cyber@ono-sendai.com
Subject: re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15" PowerBook) 
Date: Thu, 17 Aug 2006 08:12:33 +1000

    Synopsis: 1.6.1 kernels fail to boot on a 1GHz 15" PowerBook

    State-Changed-From-To: open->feedback
    State-Changed-By: macallan@netbsd.org
    State-Changed-When: Wed, 16 Aug 2006 09:20:09 +0000
    State-Changed-Why:
    does this still happen?


 does to me.  with the latest from NetBSD-daily:

 	 ok
 	0 > boot hd:3,\ofwboot.xcf hd:3,/netbsd load-size=c554 adler32=f1a668fa
 	loading XCOFF

 	tsize=c240 dsize=234 bsize=29c0 entry=e00000
 	SECTIONS:
 	.text	00e00000 00e00000 0000c240 000000e0
 	.data	00e0d000 00e0d000 00000234 0000c320
 	.bss	00e0d238 00e0d238 000029c0 00000000
 	loading .text, done..
 	loading .data, done..
 	clearing .bss, done...

 	>> NetBSD/macppc OpenFirmware Boot, Revision 1.10
 	>> (riz@b2.netbsd.org, Fri Aug 11 15:39:35 UTC 2006)
 	5733268read text
 	 start=0x0

 	Invalid memory access at   %SRR0: 80800000   %SRR1: 800000d0
 	 ok
 	0 >

 (ten finger copy)


 .mrg.

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 10 Apr 2008 01:32:21 +0000
State-Changed-Why:
Suitable feedback received, as of 2006.
Anyone want to check again?


From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: port-macppc-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
    gnats-admin@netbsd.org, macallan@netbsd.org, cyber@ono-sendai.com
Subject: re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15" PowerBook) 
Date: Fri, 11 Apr 2008 13:54:14 +1000

 still crashes with this weeks -current build.  looks
 the same as my prior report except that it now reads:

 Invalid memory access at   %SRR0:  00000075    %SRR1:  00007500

 ie, the values in %SRR0 and %SRR1 are different now.


 .mrg.

From: Alexander Hedges <ahedges@student.ethz.ch>
To: <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15"
 PowerBook)
Date: Thu, 21 Sep 2017 16:35:38 +0200

 Is there a workaround for installing NetBSD on a PowerBook or does nobody run NetBSD on that Hardware?

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: Alexander Hedges <ahedges@student.ethz.ch>
Subject: Re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15"
 PowerBook)
Date: Sat, 30 Sep 2017 18:16:27 +0000

 On Thu, Sep 21, 2017 at 02:40:01PM +0000, Alexander Hedges wrote:
  > Is there a workaround for installing NetBSD on a PowerBook or does
  > nobody run NetBSD on that Hardware?

 I don't know, but there are a lot of powerbook models and I don't
 think this issue affects most of them.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15"
 PowerBook
Date: Sun, 8 Apr 2018 23:52:28 +0100

 Just picked a 867Mhz 15" PowerBook which may possible be the lower spec
 sibling of Eric's 1Ghz system (PowerBook3,5).

 Issue still persists with latest ofwboot.xcf and netbsd from HEAD.

 On a cold boot, I get:
 Decrement exception at %SRR0: 0000006c %SRR1: 00006c6a

 Rebooting and trying again, I get:
 Invalid memory access at %SRR0: 0000006c %SRR1: 00006c6a

 Different error messages, but same addresses.

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org, cyber@ono-sendai.com
Subject: re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15" PowerBook
Date: Mon, 09 Apr 2018 09:53:06 +1000

 ah, i guess i never sent this info to the PR.

 a short while ago i tested building a kernel with FIRMWORKSBUG
 option enabled.  this gives a different failure mode -- but
 unfortunately it hangs hard instead of giving you the prom.

 so the problem may be related to openfirmware() on these
 systems.


 .mrg.

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15"
 PowerBook
Date: Mon, 9 Apr 2018 01:15:40 +0100

 I started looking around too see if I could find anything else out.
 I stumbled across this alternative bootloader[1], it produced the same
 results as I previously reported. Just for fun I tried using our kernel
 with the OpenBSD ofwboot, everything failed the same way (invalid memory
 access). OpenBSD ofwboot has no such issue booting their bsd.rd however.

 Reason I was pocking at bootloader was because I came to this PR from
 another related to booting the G4 Mac Mini, and there uwe poked at
 ofwboot.xcf.


 [1] http://www.dialectronics.com/bootloader/

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org, cyber@ono-sendai.com
Subject: re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15" PowerBook
Date: Mon, 09 Apr 2018 10:37:08 +1000

 yeah, i don't think ofwboot is the issue.  unless it fails to setup
 the kernel properly, it's the early kernel running that hangs, so
 the fix is very likely in the startup code.


 .mrg.

From: Michael <macallan@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15"
 PowerBook
Date: Mon, 9 Apr 2018 00:15:49 -0400

 >  yeah, i don't think ofwboot is the issue.  unless it fails to setup
 >  the kernel properly, it's the early kernel running that hangs, so
 >  the fix is very likely in the startup code.

 In my recent G5 hackery I had similar issues with OF loading the kernel
 directly - IIRC OF throws this error if we somehow cause an interrupt
 ( not necessarily a decrementer exception ) early on before installing
 our own handlers.

 have fun
 Michael

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-macppc/22316 (1.6.1 kernels fail to boot on a 1GHz 15"
 PowerBook
Date: Sat, 25 Aug 2018 14:55:19 +0100

 In https://markmail.org/message/nmzthacf33qdfd7b, Philip Schulz states

 "I haven't experienced the issue myself, but I think what happens is
 that Open Firmware enables interrupts before the kernel has a chance
 to install its own exception handlers. I have seen reports that the
 exception occurs both on NetBSD and OpenBSD. The latter seems to have
 added a workaround: They set the decrementer register to a very high
 value, very early in the boot process (possibly even in their loader)."

 Using uwe's build of XCOFF bootloader from
 http://www.stderr.spb.ru/~uwe/netbsd/macppc/ofwboot.xcf

 0 > boot hd:,\uwe-ofwboot.xcf netbsd-INSTALL.gz load-size=13ede
 adler32=b9885bc3

 loading XCOFF

 tsize=fd00 dsize=258 bsize=2770 entry=e0e324
 SECTIONS:
 .text    00e00000 00e00000 0000fd00 00001000
 .pad     00e0fcf4 00e0fcf4 00000300 00010d00
 .data    00e10000 00e10000 00000258 00011000
 .bss     00e10258 00e10258 00002770 00000000
 .gnu.att 00000000 00000000 00000010 00011258
 .ident   00000000 00000000 00000076 00011268
 loading .text, done..
 loading .data, done..
 clearing .bss, done..

 >> NetBSD/macppc OpenFirmware Boot, Revision 1.12 (Wed Jun  6 00:33:43
 UTC 2018)
 >> Open Firmware version 3.x
 bootline=netbsd-INSTALL.gz
 parsefilepath: path = netbsd-INSTALL.gz
 parsefilepath: Checking netbsd-INSTALL.gz: dhandle = -1
 parsefilepath: filename = netbsd-INSTALL.gz
 Trying netbsd-INSTALL.gz
 parsefilepath: path = netbsd-INSTALL.gz
 parsefilepath: Checking netbsd-INSTALL.gz: dhandle = -1
 parsefilepath: filename = netbsd-INSTALL.gz
 devopen: devname =  /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:0,
 filename = netbsd-INSTALL.gz
 devopen: opened_name =
 /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:0/netbsd-INSTALL.gz
 6057988+127224=0x5e64c0
  start=0x100000

 Decrementer exception at   %SRR0: 0000006c   %SRR1: 00006c80
  ok
 0 > .registers
 Client's Fix Pt Regs:
  00 ff846b58 6c696420 3fc46960 006b5940 006e60f8 00003030 00100268 006c8030
  08 00000000 006c8040 00000000 006c8030 40000002 006c0780 0000004b 00000000
  10 00000000 00000000 00000000 00e10000 00e10000 006eae48 006eae44 00e0f118
  18 00e11f28 00e0f218 006eb000 ff880418 006eadd8 00000004 006d0000 006b57cc
 Special Regs:
     %IV: 00000000   %SRR0: 0000006c   %SRR1: 00006c80
     %CR: 80400000     %LR: 006c8040    %CTR: 6c804000    %XER: 40000000
    %DAR: 00000000  %DSISR: 00000000   %SDR1: 40000002
   %HID0: 006c0780   %HID1: 6c078000   %L3CR: 0000004b   %L2CR: 00004b00
  %ICTRL: 004b0000 %LDSTDB: 4b000000 %LDSTCR: 00000000  ok


 As per https://markmail.org/message/nmzthacf33qdfd7b
 Issuing
 1 1f lshift not dec!

 Changes the error to
 Invalid memory access at   %SRR0: 0000006c   %SRR1: 00006c80

 0 > 1 1f lshift not dec!  ok
 0 > boot hd:,\uwe-ofwboot.xcf netbsd-INSTALL.gz load-size=13ede
 adler32=b9885bc3

 loading XCOFF

 tsize=fd00 dsize=258 bsize=2770 entry=e0e324
 SECTIONS:
 .text    00e00000 00e00000 0000fd00 00001000
 .pad     00e0fcf4 00e0fcf4 00000300 00010d00
 .data    00e10000 00e10000 00000258 00011000
 .bss     00e10258 00e10258 00002770 00000000
 .gnu.att 00000000 00000000 00000010 00011258
 .ident   00000000 00000000 00000076 00011268
 loading .text, done..
 loading .data, done..
 clearing .bss, done..

 >> NetBSD/macppc OpenFirmware Boot, Revision 1.12 (Wed Jun  6 00:33:43
 UTC 2018)
 >> Open Firmware version 3.x
 bootline=netbsd-INSTALL.gz
 parsefilepath: path = netbsd-INSTALL.gz
 parsefilepath: Checking netbsd-INSTALL.gz: dhandle = -1
 parsefilepath: filename = netbsd-INSTALL.gz
 Trying netbsd-INSTALL.gz
 parsefilepath: path = netbsd-INSTALL.gz
 parsefilepath: Checking netbsd-INSTALL.gz: dhandle = -1
 parsefilepath: filename = netbsd-INSTALL.gz
 devopen: devname =  /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:0,
 filename = netbsd-INSTALL.gz
 devopen: opened_name =
 /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:0/netbsd-INSTALL.gz
 6057988+127224=0x5e64c0
  start=0x100000

 Invalid memory access at   %SRR0: 0000006c   %SRR1: 00006c80
  ok
 0 > .registers
 Client's Fix Pt Regs:
  00 ff846b58 6c696420 3fc46960 006b5940 006e60f8 00003030 00100268 006c8030
  08 00000000 006c8040 00000000 006c8030 40000002 006c0780 0000004b 00000000
  10 00000000 00000000 00000000 00e10000 00e10000 006eae48 006eae44 00e0f118
  18 00e11f28 00e0f218 006eb000 ff880418 006eadd8 00000004 006d0000 006b57cc
 Special Regs:
     %IV: 00000000   %SRR0: 0000006c   %SRR1: 00006c80
     %CR: 80400000     %LR: 006c8040    %CTR: 6c804000    %XER: 40000000
    %DAR: 00000000  %DSISR: 00000000   %SDR1: 40000002
   %HID0: 006c0780   %HID1: 6c078000   %L3CR: 0000004b   %L2CR: 00004b00
  %ICTRL: 004b0000 %LDSTDB: 4b000000 %LDSTCR: 00000000  ok




 I also tried with the boot loader from latest daily build from HEAD
 (201808242350Z)
 0 > boot hd:,\ofwboot.xcf netbsd-INSTALL.gz load-size=63359
 adler32=8d310aff

 loading XCOFF

 tsize=f5f0 dsize=258 bsize=2750 entry=e00000
 SECTIONS:
 .text    00e00000 00e00000 0000f5f0 00001000
 .pad     00e0f5f0 00e0f5f0 00000a10 000105f0
 .data    00e10000 00e10000 00000258 00011000
 .bss     00e10258 00e10258 00002750 00000000
 .debug_l 00000000 00000000 000083c5 00011258
 .debug_s 00000000 00000000 00004beb 0001961d
 .gnu.att 00000000 00000000 00000010 0001e208
 .ident   00000000 00000000 00000076 0001e218
 .debug_i 00000000 00000000 000271f7 0001e28e
 .debug_a 00000000 00000000 00007155 00045485
 .debug_l 00000000 00000000 0000fe99 0004c5da
 .debug_a 00000000 00000000 00000868 0005c473
 .debug_r 00000000 00000000 00000dd1 0005ccdb
 .debug_f 00000000 00000000 0000268c 0005daac
 loading .text, done..
 loading .data, done..
 clearing .bss, done..

 >> NetBSD/macppc OpenFirmware Boot, Revision 1.12 (Fri Aug 24 23:22:10
 UTC 2018)
 6057988+127224=0x5e64c0
  start=0x100000

 Decrementer exception at   %SRR0: 0000006c   %SRR1: 00006c80
  ok
 0 > .registers
 Client's Fix Pt Regs:
  00 ff846b58 723d2573 3fc46960 006b5940 006e60f8 00003030 00100268 006c8030
  08 00000000 006c8040 00000000 006c8030 40000002 006c0780 0000004b 00000000
  10 00000000 00000000 00000000 00000000 00e10000 006eae48 006eae44 00e0ed94
  18 00e11f38 00e0eda0 006eb000 ff880418 006eadd8 00000004 006d0000 006b57cc
 Special Regs:
     %IV: 00000000   %SRR0: 0000006c   %SRR1: 00006c80
     %CR: 80400000     %LR: 006c8040    %CTR: 6c804000    %XER: 40000000
    %DAR: 00000000  %DSISR: 00000000   %SDR1: 40000002
   %HID0: 006c0780   %HID1: 6c078000   %L3CR: 0000004b   %L2CR: 00004b00
  %ICTRL: 004b0000 %LDSTDB: 4b000000 %LDSTCR: 00000000  ok





 0 > 1 1f lshift not dec!  ok
 0 > boot hd:,\ofwboot.xcf netbsd-INSTALL.gz load-size=63359
 adler32=8d310aff

 loading XCOFF

 tsize=f5f0 dsize=258 bsize=2750 entry=e00000
 SECTIONS:
 .text    00e00000 00e00000 0000f5f0 00001000
 .pad     00e0f5f0 00e0f5f0 00000a10 000105f0
 .data    00e10000 00e10000 00000258 00011000
 .bss     00e10258 00e10258 00002750 00000000
 .debug_l 00000000 00000000 000083c5 00011258
 .debug_s 00000000 00000000 00004beb 0001961d
 .gnu.att 00000000 00000000 00000010 0001e208
 .ident   00000000 00000000 00000076 0001e218
 .debug_i 00000000 00000000 000271f7 0001e28e
 .debug_a 00000000 00000000 00007155 00045485
 .debug_l 00000000 00000000 0000fe99 0004c5da
 .debug_a 00000000 00000000 00000868 0005c473
 .debug_r 00000000 00000000 00000dd1 0005ccdb
 .debug_f 00000000 00000000 0000268c 0005daac
 loading .text, done..
 loading .data, done..
 clearing .bss, done..

 >> NetBSD/macppc OpenFirmware Boot, Revision 1.12 (Fri Aug 24 23:22:10
 UTC 2018)
 6057988+127224=0x5e64c0
  start=0x100000

 Invalid memory access at   %SRR0: 0000006c   %SRR1: 00006c80
  ok
 0 > .registers
 Client's Fix Pt Regs:
  00 ff846b58 723d2573 3fc46960 006b5940 006e60f8 00003030 00100268 006c8030
  08 00000000 006c8040 00000000 006c8030 40000002 006c0780 0000004b 00000000
  10 00000000 00000000 00000000 00000000 00e10000 006eae48 006eae44 00e0ed94
  18 00e11f38 00e0eda0 006eb000 ff880418 006eadd8 00000004 006d0000 006b57cc
 Special Regs:
     %IV: 00000000   %SRR0: 0000006c   %SRR1: 00006c80
     %CR: 80400000     %LR: 006c8040    %CTR: 6c804000    %XER: 40000000
    %DAR: 00000000  %DSISR: 00000000   %SDR1: 40000002
   %HID0: 006c0780   %HID1: 6c078000   %L3CR: 0000004b   %L2CR: 00004b00
  %ICTRL: 004b0000 %LDSTDB: 4b000000 %LDSTCR: 00000000  ok

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.