attaching an mp3 player / BBB reset failed

beni.brinckman at dommel.be beni.brinckman at dommel.be
Mon Feb 20 13:04:27 PST 2006


On Monday 20 February 2006 18:43, Andrew Pantyukhin wrote:
> On 2/20/06, beni.brinckman at dommel.be <beni.brinckman at dommel.be> wrote:
> > Hi all,
> >
> > When attaching (hotplugging) my mp3 player (its a BeQube) to my fbsd
> > 6.1-PreRelease, the whole pc freezes and a reset/reboot is all that is
> > left.
> >
> > In /var/log/messages this is what I get :
> >
> > Feb 16 20:41:25 www kernel: umass1: vendor 0x10d6 USB 2.0(FS) FLASH DISK,
> > rev 1.10/1.00, addr 2
> > Feb 16 20:41:26 www kernel: da5 at umass-sim1 bus 1 target 0 lun 0
> > Feb 16 20:41:26 www kernel: da5: <USB 2.0 (FS) FLASH DISK 1.00> Removable
> > Direct Access SCSI-0 device
> > Feb 16 20:41:26 www kernel: da5: 1.000MB/s transfers
> > Feb 16 20:41:26 www kernel: da5: 245MB (503521 512 byte sectors: 64H
> > 32S/T 245C)
> > Feb 16 20:41:27 www kernel: umass1: BBB reset failed, STALLED
> > Feb 16 20:41:27 www kernel: umass1: BBB bulk-in clear stall failed,
> > STALLED Feb 16 20:41:27 www kernel: umass1: BBB bulk-out clear stall
> > failed, STALLED Feb 16 20:41:27 www kernel: (da5:umass-sim1:1:0:0):
> > Synchronize cache failed, status == 0x4, scsi status == 0x0
> > Feb 16 20:41:27 www kernel: umass1: at uhub2 port 1 (addr 2) disconnected
> > Feb 16 20:41:27 www kernel: (da5:umass-sim1:1:0:0): lost device
> > Feb 16 20:41:27 www kernel: (da5:umass-sim1:1:0:0): removing device entry
> > Feb 16 20:41:27 www kernel: umass1: detached
> >
> > What goes wrong and more importend, how do I get my mp3 player attached
> > without freezing the whole pc ?
> >
> > Thanks for any hints.
> >
> > Beni.
> >
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at freebsd.org"
>
> Please, do not post with empty subject line.
>
> Google on this: "BBB reset failed", see the solutions,
> try them, report here in case of trouble.

Of course that is what I did...

The solution most found is to modify /usr/src/sys/cam/scsi/scsi_da.c with adding
something like this :

		{T_DIRECT, SIP_MEDIA_REMOVABLE, "GENERIC", "USB DISK DEVICE",
		"*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE
	},
	{
		/*
		 * Time DPA20B 1GB MP3 Player
		 * PR: usb/81846
		 */
		{T_DIRECT, SIP_MEDIA_REMOVABLE, "USB2.0*", "(FS) FLASH DISK*",
		"*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE
	},

The only thing is, that code is allready in my 6.1-PRERELEASE code, so no need
to add it again. I was hoping a "Generic usb device" should do the trick.

Another solution was to add "device		udbp		# USB Double Bulk Pipe devices" to
the kernel. Which is by default commented out in the Generic kernel. I
decommented and rebuild my kernel. Still no luck...

But I admit that I didn't check and test all 2.430 results that Google found. I
hoped to get a better answer here.

Beni.



More information about the freebsd-questions mailing list