From owner-freebsd-sparc64@FreeBSD.ORG Thu Dec 27 19:20:13 2012 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D78C583 for ; Thu, 27 Dec 2012 19:20:13 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from mail2.markmonitor.com (mail2.markmonitor.com [64.124.14.95]) by mx1.freebsd.org (Postfix) with ESMTP id 733CF8FC08 for ; Thu, 27 Dec 2012 19:20:13 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail2.markmonitor.com (Postfix) with ESMTP id 2ABA5145C1; Thu, 27 Dec 2012 10:15:28 -0800 (PST) X-Virus-Scanned: amavisd-new at markmonitor.com Received: from mail2.markmonitor.com ([127.0.0.1]) by localhost (mail2.mm-corp.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03k1oepvUFUs; Thu, 27 Dec 2012 10:15:23 -0800 (PST) Received: from dc-exch2.mm-ads.com (dc-exch2.mm-corp.net [10.112.0.223]) by mail2.markmonitor.com (Postfix) with ESMTP id 87AE013B30; Thu, 27 Dec 2012 10:15:23 -0800 (PST) Received: from dc-exch4.mm-ads.com ([10.112.0.225]) by dc-exch2.mm-ads.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 27 Dec 2012 13:15:23 -0500 Received: from zalamar.mm-corp.net ([10.112.52.72]) by dc-exch4.mm-ads.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 27 Dec 2012 13:15:22 -0500 Subject: Re: Changes to kern.geom.debugflags? Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Chris Ross In-Reply-To: <8D01A854-97D9-4F1F-906A-7AB59BF8850B@distal.com> Date: Thu, 27 Dec 2012 13:15:22 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7AA0B5D0-D49C-4D5A-8FA0-AA57C091C040@distal.com> <6A0C1005-F328-4C4C-BB83-CA463BD85127@distal.com> <20121225232507.GA47735@alchemy.franken.de> <8D01A854-97D9-4F1F-906A-7AB59BF8850B@distal.com> To: Marius Strobl X-Mailer: Apple Mail (2.1283) X-OriginalArrivalTime: 27 Dec 2012 18:15:22.0701 (UTC) FILETIME=[22E38FD0:01CDE45E] Cc: freebsd-sparc64@freebsd.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 19:20:13 -0000 On Dec 27, 2012, at 10:43 AM, Chris Ross wrote: >>> FreeBSD/sparc64 ZFS boot block > Boot path: /pci@1c,600000/scsi@2/disk@1,0:a > Consoles: Open Firmware console =20 > ERROR: Last Trap: Division by Zero >=20 > {1} ok ctrace > No saved state > {1} ok=20 >=20 > Anything else you can suggest to get debugging information out of = zfsloader? So, I've started with the tiring process of "printf debugging". I = have gotten out of the loader code, and can show that it's inside of the call to the zfs = devsw dv_init() call where it's failing. >> FreeBSD/sparc64 ZFS boot block Boot path: /pci@1c,600000/scsi@2/disk@1,0:a Consoles: Open Firmware console =20 Goo 1 Goo 2 Looking at dp 0x236970 (block), dv_init of 0x11f320 Calling dv_init() Back from dv_init() Looking at dp 0x234e10 (net), dv_init of 0x1082c0 net0: (net0) Calling dv_init() Back from dv_init() Looking at dp 0x236088 (zfs), dv_init of 0x11cbe0 Calling dv_init() ERROR: Last Trap: Division by Zero {1} ok=20 Next, I guess I'll have to find out where the code for that is, and = work there. If anyone has any ideas or can assist, please let me know. - Chris