Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Apr 2005 07:47:45 -0400
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Randy Bush <randy@psg.com>
Cc:        FreeBSD USB <freebsd-usb@freebsd.org>
Subject:   Re: sandisk usb freeze
Message-ID:  <20050423114745.GA43345@crodrigues.org>
In-Reply-To: <16999.5087.868333.378085@roam.psg.com>
References:  <16999.5087.868333.378085@roam.psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 20, 2005 at 04:45:51PM -1000, Randy Bush wrote:
> any pointers on how to best debug?

Debugging USB stuff can be a bit ugly.
One technique is to have USB_DEBUG set in your kernel config file,
and then after rebooting, play with setting values of the
following sysctls: hw.usb.umass.debug and hw.usb.debug .

The other technique is to have two machines set up for
kernel debugging, set a breakpoint somewhere in the USB
code that would be accessed during an fdisk,
and single step through the debugger until you hit
the point where things reboot.  It's not pretty....


-- 
Craig Rodrigues        
rodrigc@crodrigues.org


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