Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Sep 2014 15:54:36 -0400 (EDT)
From:      Benjamin Kaduk <kaduk@MIT.EDU>
To:        =?ISO-8859-15?Q?Jos=E9_P=E9rez_Arauzo?= <fbl@aoek.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: What do you use for kernel debugging?
Message-ID:  <alpine.GSO.1.10.1409281553060.21571@multics.mit.edu>
In-Reply-To: <20140928071641.M7664@beckpeccoz.com>
References:  <20140928071641.M7664@beckpeccoz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 28 Sep 2014, Jos=C3=A9 P=C3=A9rez Arauzo wrote:

> Hello,
> I am trying to track down a (deadlock?) issue in CURRENT via DDB. The ker=
nel does
> not complete hw probes on my Acer V5.
>
> I get stuck on apic_isr looping which leads nowhere.
>
> So I thought maybe things improve if I debug from another machine.
>
>
> What do you use for kernel debugging? According to the handbook kgdb over=
 serial
> is a good option, do you agree? I'm on a netbook with no ethernet and no =
option
> for firewire: can I have a USB / nullmodem setup to work?

You cannot.

> I have no old-style uarts hardware anymore, as the handbook suggests...
>
> Any idea is welcome before I buy extra hw. I have a USB to serial showing=
 up as
> /dev/cuaU0, do I need to grab another one and a nullmodem cable or there =
are better
> alternatives? Thank you.

I'm not sure that there are alternatives at all, unfortunately.

You may be reduced to debugging-via-printf.

-Ben Kaduk
From owner-freebsd-current@FreeBSD.ORG  Sun Sep 28 20:09:44 2014
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 38FC36C7
 for <freebsd-current@freebsd.org>; Sun, 28 Sep 2014 20:09:44 +0000 (UTC)
Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com
 [209.85.223.170])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 0583BF3C
 for <freebsd-current@freebsd.org>; Sun, 28 Sep 2014 20:09:43 +0000 (UTC)
Received: by mail-ie0-f170.google.com with SMTP id x19so15905311ier.15
 for <freebsd-current@freebsd.org>; Sun, 28 Sep 2014 13:09:37 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc:content-type;
 bh=at6ykSeHFNut1usn809NslpM3b0R2tFy/XOYvwF0v3g=;
 b=lho9zhGzlINPCM0G4qgmo5M6kD5/eLZUR9e4kdK4K16o6kmBlMv/YVe+8MytVaP2ce
 WT0++jORm0OxSieuW9pvJwIx6aSFDVGHrYwW8BXkcijq24ORv8gHaAHfugiQ57+rvmq4
 Epwv6+PYOl+uPTitNVCgW+x3hHyb+YFJWSd7Gc9us12LvOZMz+ODwKsAVCdAb6lQmPG7
 rM0VidxRFfrrnhTYR5BQwvmvHljLfommvE7svVUatts2mS7j+daaVK45NnlcxWlOHt0H
 cN+akQNF48RSgk8Ig1YekQJLeKDf7DAIour355QbVCZtKVVPiyhgyPhPHQ6w1WgxFP73
 iy1A==
X-Gm-Message-State: ALoCoQnjmCrkEVh2ZyhlPx8Z1TnZLEVk5Y23MLNcNHtecPjQbG6wVcotZM8N7txVkhD5qXZ4LJVb
MIME-Version: 1.0
X-Received: by 10.50.109.228 with SMTP id hv4mr30258744igb.13.1411934976907;
 Sun, 28 Sep 2014 13:09:36 -0700 (PDT)
Received: by 10.64.13.33 with HTTP; Sun, 28 Sep 2014 13:09:36 -0700 (PDT)
In-Reply-To: <CAB3ij4AduJ3jtq7aULh9Fvvh0wzpfzZjbFdJiB6mDAcN5vMxpw@mail.gmail.com>
References: <CAB3ij4ATBvKHkDjJxgsX0t=XFzKW5ycVz1ChGJqDnrQwx+Z-UA@mail.gmail.com>
 <CACdU+f8HM+cjrEOoXT83ASmrC3WfeWS3heLJfsYcErvJ+w2ciw@mail.gmail.com>
 <CAB3ij4AduJ3jtq7aULh9Fvvh0wzpfzZjbFdJiB6mDAcN5vMxpw@mail.gmail.com>
Date: Sun, 28 Sep 2014 14:09:36 -0600
Message-ID: <CAB3ij4D+N3C0b-nJofEZ5UtRAwH2TFVsL0R6q1=ZKgK_QKoPDA@mail.gmail.com>
Subject: Re: SOEKRIS kernel config
From: Tom Everett <tom@khubla.com>
To: Scot Hetzel <swhetzel@gmail.com>
Content-Type: text/plain; charset=UTF-8
X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1
Cc: FreeBSD Current <freebsd-current@freebsd.org>
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2014 20:09:44 -0000

Bugzilla ID is *194003
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194003>*


On Sun, Sep 28, 2014 at 8:59 AM, Tom Everett <tom@khubla.com> wrote:

> That's a great idea.  I'll give it a try and get back to the list.
>
>
> On Sun, Sep 28, 2014 at 12:33 AM, Scot Hetzel <swhetzel@gmail.com> wrote:
>
>> On Sat, Sep 27, 2014 at 9:47 PM, Tom Everett <tom@khubla.com> wrote:
>> > I see there is no SOEKRIS config on the tree, here
>> >
>> > https://svnweb.freebsd.org/base/head/sys/i386/conf/
>> >
>> > I have attached one for addition to the tree.
>> >
>> >
>>
>> Since you only appended a few configuration options to the end of the
>> GENERIC configuration, it would be better to use the include directive
>> in the SOEKRIS config file.  This allows changes to be made to the
>> GENERIC configuration, and the SOEKRIS kernel would automatically get
>> those changes.  Here's a shorter version of that configuration file:
>>
>>
>> #
>> # SOEKRIS -- Generic Kernel configuration file for FreeBSD/i386 on SOEKRIS
>> #
>> # $FREEBSD
>>
>> include GENERIC
>>
>> ident SOEKRIS
>>
>> # To Make a SOEKRIS Kernel, the next options are needed
>> options  CPU_SOEKRIS
>> options  CPU_ELAN
>> #options  CPU_ELAN_PPS
>> #options  CPU_ELAN_XTAL=32768000
>> options  CPU_GEODE
>>
>> # Include TMPFS
>> options  TMPFS
>>
>>
>> --
>> DISCLAIMER:
>>
>> No electrons were maimed while sending this message. Only slightly
>> bruised.
>>
>
>
>
> --
> A better world shall emerge based on faith and understanding  - Douglas
> MacArthur
>



-- 
A better world shall emerge based on faith and understanding  - Douglas
MacArthur



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.GSO.1.10.1409281553060.21571>