NetBSD Problem Report #53052

From www@NetBSD.org  Sat Feb 24 20:18:47 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C48E77A1ED
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 24 Feb 2018 20:18:47 +0000 (UTC)
Message-Id: <20180224201846.6C8ED7A1F3@mollari.NetBSD.org>
Date: Sat, 24 Feb 2018 20:18:46 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Attempting to load kernel from UFS partition causes panic
X-Send-Pr-Version: www-1.0

>Number:         53052
>Category:       port-macppc
>Synopsis:       Attempting to load kernel from UFS partition causes panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 24 20:20:00 +0000 2018
>Originator:     Sevan Janiyan
>Release:        NetBSD 8.99.12
>Organization:
>Environment:
>Description:
I have a 12" PowerBook which has an SSD installed instead of the IDE HDD but operating as an IDE slave instead of a master.
Attempting to boot NetBSD on this system with ofwboot.xcf on a HFS+ partition and the NetBSD kernel on the UFS partition results in a immediate crash upon trying to load the kernel and continuously fills the same panic message on the screen

panic: trap
cpu0: Begin traceback...
0x00a6e910: at vpanic+0x13c
0x00a6e940: at panic+0x4c
0x00a6e980: at trap+0x430
0x00a6ea10: kernel ISI trap by 0xff847168: srr1=0x40003030
            r1=0xa6eae0 cr=0x22224248 xer=0 ctr=0
0x00a6eae0: at 0xfffffffc
0x00a6eb00: at OF_read+0x78
0x00a6eb30: at ofw_stack+0x44
saved LR(0x2c) is invalid cpu0: End traceback...
--db_more--trap: kernel ISI by 0xff847168 (SRR1 0x40004040), Ir: 0x1001e4
Skipping crash dump on recursive panic

In OpenFirmware my boot-device is set to pci2/ata-6@D/disk@1:3,\ofwboot.xcf
My boot-file is set to /netbsd

Everything works fine if I attempt to load a gzipped kernel from the same HFS+ partition as where ofwboot.xcf located.
>How-To-Repeat:
I haven't ruled out the disk as an IDE slave yet, but 
In OpenFirmware:
setenv boot-device pci2/ata-6@D/disk@1:3,\ofwboot.xcf
setenv boot-file /netbsd
setenv boot-command ." hello" cr " screen" output boot
reset-all
>Fix:

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.