umass0: BBB reset failed, TIMEOUT (again)

Hans Petter Selasky hselasky at c2i.net
Fri Sep 22 02:53:03 PDT 2006


On Friday 22 September 2006 08:34, Hans Petter Selasky wrote:
> On Friday 22 September 2006 00:04, Juergen Lock wrote:
> > On Wed, Sep 20, 2006 at 11:18:32AM +0200, Hans Petter Selasky wrote:
> > > On Wednesday 20 September 2006 03:11, Juergen Lock wrote:
...

Could you have tried the following patch:

Lookup the following piece of code in /sys/dev/usb/umass.c :

static void
umass_t_bbb_data_read_callback(struct usbd_xfer *xfer)
{
        struct umass_softc *sc = xfer->priv_sc; 
        u_int32_t max_bulk = (UMASS_BULK_SIZE - 
                              (UMASS_BULK_SIZE % xfer->max_packet_size));
        USBD_CHECK_STATUS(xfer);

 tr_error:
        if (xfer->error == USBD_CANCELLED) {
            umass_tr_error(xfer);
        } else {
            umass_transfer_start(sc, UMASS_T_BBB_DATA_RD_CS);
        }
        return;

 tr_transferred:

Change:
   umass_transfer_start(sc, UMASS_T_BBB_DATA_RD_CS);
Into:
   umass_transfer_start(sc, UMASS_T_BBB_STATUS);

Then recompile the umass module and/or the kernel, depending on how you load 
umass.

Then try to read from your umass device.
 
--HPS


More information about the freebsd-usb mailing list