From owner-freebsd-hardware Wed May 8 19:11:50 1996 Return-Path: owner-hardware Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA24591 for hardware-outgoing; Wed, 8 May 1996 19:11:50 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA24573 Wed, 8 May 1996 19:11:42 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id MAA02340; Thu, 9 May 1996 12:07:56 +1000 Date: Thu, 9 May 1996 12:07:56 +1000 From: Bruce Evans Message-Id: <199605090207.MAA02340@godzilla.zeta.org.au> To: babbleon@mercury.interpath.com, freebsd-hackers@FreeBSD.ORG, freebsd-hardware@FreeBSD.ORG Subject: Re: Uknown CD-ROM : debugging a driver Sender: owner-hardware@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >I started out by putting a few printf statements about, but that gets >sorta of tedious as I have to reboot each time I rebuild, so I got the >... >QUESTIONS: > - I'm surely not the first to do this sort of thing. How does one > usually do it? I usually use ddb, and sometimes add code to log events, and sometimes load small test lkms. > - Where is doc on ddb, if that's the best way to look at this? > - For that matter, where is ddb itself? > I have a man page, but no command, and I did a string search in See another reply. > - I want to watch the probing along with the open &c. > How can I get FreeBSD to probe for a device *after* the system > has booted and the rest of it is sane rather than before? This isn't supported for most devices. However, parts of the wcd driver are in an lkm which can be loaded at any time, and you can always write a tiny lkm to call the probe routine, or call the probe routine in ddb. Bruce