From owner-freebsd-drivers@FreeBSD.ORG Mon Jun 11 16:49:47 2012 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 833A5106564A for ; Mon, 11 Jun 2012 16:49:47 +0000 (UTC) (envelope-from nagpersonal@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 57D9B8FC1B for ; Mon, 11 Jun 2012 16:49:47 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so6113509pbb.13 for ; Mon, 11 Jun 2012 09:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Aue1BaIgjRYPS0XWRDBPzd2ElmprvuQ/gBukCYZj3lw=; b=KV5FrILSOvMTCZAbVBw9U5D0FUZmew7UK8sw5qUCXCn2xhrIXepddw1Ipi0cECTc59 SWxJQ1xDUlUckMWcOcTjT6nDX1/gO1ZdrKLCO9M+u21WfSxBHyUuU/lY2eDInS8KSzB+ tmgn9GM8ZTd47zNL+QhlG38lcIclDeorV26KSkV/U2ILbfOFKXtjMekuiEeR/UGY7tWv gw/cPWtiChtbIJGFlCQFAiQTs/YABr7hv3t6mceVdsrronEP8BCANi5PtHYQrCWL0Dxj MUL4jlSbVHUxSMCX//I5u6W3VDuwhcrJ4f716+qgu2JszvevhMuxNMhB9ShvoXrxKkxH Bh0Q== MIME-Version: 1.0 Received: by 10.68.193.195 with SMTP id hq3mr28331154pbc.30.1339433387052; Mon, 11 Jun 2012 09:49:47 -0700 (PDT) Received: by 10.66.87.136 with HTTP; Mon, 11 Jun 2012 09:49:46 -0700 (PDT) Date: Mon, 11 Jun 2012 09:49:46 -0700 Message-ID: From: nagarjuna vempati To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Issue with KGDB setup. System freezes when it enters ddb X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2012 16:49:47 -0000 Hello, Can someone plese help me understand what is the problem? After fresh disk installation of freeBSD9.0 AMD64 from disk, I copied /usr/src/sys/am64/conf/GENERIC to KGDBKERNEL and added following lines to the file options GDB options DDB options KDB_UNATTENDED options BREAK_TO_DEBUGGER options ALT_BREAK_TO_DEBUGGER After this I rebuilt the Kernel and installed as below. make buildworld make buildkernel kernconf=KGDBKERNEL make installkernel kernconf=KGDBKERNEL Reboot into single user mode. mergemaster -p make installworld mergemaster Reboot. After this to setup KGDB I am using following document as my reference. http://chetanbl.blogspot.com/ To break into ddb I am trying issue sysctl debug.kdb.enter=1. Then the system becomes unresponsive. Also, I tried to enter ddb at booting stage by issuing boot -d command. Even then system becomes unresponsive. I need to solve this problem ASAP. Can someone helpme? Thanks, Nag From owner-freebsd-drivers@FreeBSD.ORG Fri Jun 15 17:18:26 2012 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 717BD106566C for ; Fri, 15 Jun 2012 17:18:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by mx1.freebsd.org (Postfix) with ESMTP id 087F58FC16 for ; Fri, 15 Jun 2012 17:18:26 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 1AE5BB96D; Fri, 15 Jun 2012 13:18:25 -0400 (EDT) From: John Baldwin To: freebsd-drivers@freebsd.org Date: Fri, 15 Jun 2012 08:21:37 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201206150821.37736.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 15 Jun 2012 13:18:25 -0400 (EDT) Cc: nagarjuna vempati Subject: Re: Issue with KGDB setup. System freezes when it enters ddb X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2012 17:18:26 -0000 On Monday, June 11, 2012 12:49:46 pm nagarjuna vempati wrote: > Hello, > > Can someone plese help me understand what is the problem? > > After fresh disk installation of freeBSD9.0 AMD64 from disk, I copied > /usr/src/sys/am64/conf/GENERIC to KGDBKERNEL and added following lines to > the file > > options GDB > options DDB > options KDB_UNATTENDED > options BREAK_TO_DEBUGGER > options ALT_BREAK_TO_DEBUGGER > > After this I rebuilt the Kernel and installed as below. > > make buildworld > make buildkernel kernconf=KGDBKERNEL > make installkernel kernconf=KGDBKERNEL > Reboot into single user mode. > mergemaster -p > make installworld > mergemaster > Reboot. > > After this to setup KGDB I am using following document as my reference. > http://chetanbl.blogspot.com/ > > > To break into ddb I am trying issue sysctl debug.kdb.enter=1. Then the > system becomes unresponsive. Also, I tried to enter ddb at booting stage by > issuing boot -d command. Even then system becomes unresponsive. > > I need to solve this problem ASAP. Can someone helpme? The first thing I would try is to see if you can just get into DDB. Note that DDB is going to use your primary console, so if you haven't setup a serial console for your machine, then the DDB prompt will be on the VGA console. -- John Baldwin