From owner-freebsd-hackers@freebsd.org Thu Dec 22 16:00:33 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95073C8BC35 for ; Thu, 22 Dec 2016 16:00:33 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qk0-x242.google.com (mail-qk0-x242.google.com [IPv6:2607:f8b0:400d:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 50DAE1C97; Thu, 22 Dec 2016 16:00:33 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qk0-x242.google.com with SMTP id h201so12896614qke.3; Thu, 22 Dec 2016 08:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xnDOMRPNAa21OMOkIseFlXpYf4QxDyn0U0XP3VGzxpY=; b=fnWIclWqnf3sfGjdBEQdZFVCsLrD3iFPkuLUec+e21UAiaH8aYmtZ2jc2GCPbreuuN TWgVI9d/1ZYNI0pHJ3ECks6uDBrHUnJVnlm/r8HRU4oO+tOwZcI824VZO2eTVA1im5Uj 7hI1Ushrq2QFdsaqrxD9Jv6bEkRj9C06x8O/McQvQntEl31+j5QLCVHjbvS59ia8ZlXN F/FS7uFeqBBwHCPGQErAJ40OgEiHOS7S3oUBZCRkt5bulQ5xv7zUUSE5Ac5P/st0ON5d /J0J7gKRUcniuqbbHeay9VuIBcWKLiAUyuYPz/CmMk3BvxLHQZDWLMfWB/1FP4M9xGQP yhGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=xnDOMRPNAa21OMOkIseFlXpYf4QxDyn0U0XP3VGzxpY=; b=VcYtGMHToHZmE0itXUvaOk9gWfDvpnirQK1NBa7xEDIBVxHR+DlOcmMS3U/TMxysSv ZbZXTEGpTP2yEDDw2bbRY5p9+D2aen4YRE1CR30JI2+BnfiOTWo12yfCimxkfUmE364/ hVHwSO1pAtJpi/zIDwXkAJCRkSbLhs0XIwMOBAfWfqlo9nrvxVRAdIx9v3jKMGCkzIrJ AKhQEXbZpfGvr56jR2r5ARkq5riAdiP9fzh2T32zCpU4eg8YcEZ/Ig+8UVL0hr4gOBrC kTeCuGKyXLYC6E8YvFYyYf+nHP2a1QW1LnGn4Kw2FcMIlJXftkgsrw9daQRXVCpzbv8G Vnwg== X-Gm-Message-State: AIkVDXKWZmQUwMxf9FKs2mIdDbMtUWOPYhCBt8jl/Z60QEgJipOZYec8dsJA2JTeTmox653g05VJvkAcXluxVA== X-Received: by 10.55.98.3 with SMTP id w3mr10590889qkb.165.1482422431341; Thu, 22 Dec 2016 08:00:31 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.12.181.208 with HTTP; Thu, 22 Dec 2016 08:00:28 -0800 (PST) In-Reply-To: <201612220726.uBM7QZtJ071053@pdx.rh.CN85.dnsmgr.net> References: <20161219213308.GA55919@wkstn-mjohnston.west.isilon.com> <201612220726.uBM7QZtJ071053@pdx.rh.CN85.dnsmgr.net> From: Alan Somers Date: Thu, 22 Dec 2016 09:00:28 -0700 X-Google-Sender-Auth: EkAXy8LYx8nkEmRASzL92GaeXRQ Message-ID: Subject: Re: Setting a dump device from db> ? To: "Rodney W. Grimes" Cc: Mark Johnston , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 16:00:33 -0000 On Thu, Dec 22, 2016 at 12:26 AM, Rodney W. Grimes wrote: >> On Mon, Dec 19, 2016 at 02:16:25PM -0700, Alan Somers wrote: >> > Is it possible to set a dump device from loader.conf or from the db> >> > prompt? I'm trying to investigate a panic in mpr(4), but I can only >> > reproduce it during the boot, before rc(8) has set my dump device. It >> > looks like ada(4) initializes before mpr(4), so I should be able to >> > dump to an ada device, if only I can figure out how. If not, I >> > suppose I'll have to try gdb over firewire. >> >> You can set "dumpdev=ada0p1" or so in loader.conf. See g_dev_init() and >> init_dumpdev(). This should probably be documented in loader.conf(5). > > Please review and if OK commit > > Index: sys/boot/forth/loader.conf > =================================================================== > --- sys/boot/forth/loader.conf (revision 310132) > +++ sys/boot/forth/loader.conf (working copy) > @@ -101,6 +101,7 @@ > #prompt="\\${interpret}" # Set the command prompt > #root_disk_unit="0" # Force the root disk unit number > #rootdev="disk1s1a" # Set the root filesystem > +#dumpdev="disk1s1b" # Set a dump device early on for crashes during boot > #tftp.blksize="1428" # Set the RFC 2348 TFTP block size. > # If the TFTP server does not support RFC 2348, > # the block size is set to 512. If the value > -- > Rod Grimes rgrimes@freebsd.org rgrimes: done markj: Thanks for the suggestion. Unfortunately, it doesn't work in this case, probably because geom hasn't started yet. I'll do what I can with online debugging. -Alan