Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2001 13:31:45 +0100 (BST)
From:      Nick Hibma <n_hibma@webweaving.org>
To:        Jim Bryant <kc5vdj@yahoo.com>
Cc:        Matthew Emmerton <matt@gsicomp.on.ca>, Andrew J Caines <A.J.Caines@halplant.com>, FreeBSD Hackers <FreeBSD-Hackers@FreeBSD.ORG>
Subject:   Re: Mounting FAT16 on USB connected Rio 600
Message-ID:  <20010902133013.X3272-100000@heather.plazza.uk>
In-Reply-To: <3B858720.3080304@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

As said below, modify usbdevs/umass.c to recognise your device and then
see whether it behaves. If not, try adding the quirks to scsi_da.c (no
READS_6 and no cache sync) and see whether that improves things.

If it is an ATAPI based device it might be more work to get this device
working.

Nick


On Thu, 23 Aug 2001, Jim Bryant wrote:

> Matthew Emmerton wrote:
>
> >>Hackers,
> >>
> >>The overwhelming lack of response on -questions suggests I might do better
> >>here. I though this would be an easy one.
> >>
> >>In short, I simply want to know what device to mount and what to do get
> >>that device configured.
> >>
> >># usbdevs -v
> >>Controller /dev/usb0:
> >>addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev
> >>
> > 0x0100
> >
> >> port 1 powered
> >> port 2 addr 2: self powered, config 1, Diamond Multimedia  Digital Audio
> >>
> > Player(0x5001), Diamond Multimedia(0x045a), rev 0x0100
> >
> >>/kernel: ugen0: at uhub0 port 2 (addr 2) disconnected
> >>/kernel: ugen0: detached
> >>/kernel: ugen0: Diamond Multimedia Diamond Multimedia  Digital Audio
> >>
> > Player, rev 1.00/1.00, addr 2
> >
> > Since this device is recognized by the kernel as 'ugen0', it doesn't know
> > that it's a storage unit, and explains why you can't mount it.
> >
> > In order to use this device, you'll have to update the USB subsystem to
> > recognize this device as a storage unit, and perhaps do some other code
> > hacking before you can access it as a SCSI disk.
> >
> > Hopefully someone else on the list can provide you with more details (as in,
> > how do I do what I need to do to get this thing working!)
>
>
> For an example of how to do this, please see the changes to:
>
> /usr/src/sys/dev/usb/umass.c
> /usr/src/sys/dev/usb/usbdevs
> /usr/src/sys/dev/usb/usbdevs.h
> /usr/src/sys/dev/usb/usbdevs_data.h
> /usr/src/sys/cam/scsi/scsi_da.c
>
> These changes were just committed to solve the exact problem you are having, instead it was for the MicroTech CameraMate
> CompactFlash/SmardCard reader.  grep -i microtech on those files and look in the vicinity of the hits for the changes.  The two .h
> files don't have to be changed, just run the makefile in that directory after changing usbdevs.
>
> Since I don't have a Diamond MP3 player, I can't do this.  Although I didn't write the changes for the MicroTech CameraMate, I did
> learn a bit from the experience testing them, and it really doesn't look that hard once you figure out what is going on.
>
> Oh yeah, once you have it working, come back here, and post the patches asking that they be further tested and committed!  It can
> take a little while, but it'll be worth it for the next guy.
>
> You may also want to search the archives and see if anyone else has announced patches being available for testing, that's how I came
> across the CameraMate patches that were just committed as a result of my testing [and asking for them to be committed until a
> committer noticed I was asking].  I searched the archives, found that someone had done some patches, and advertised the fact asking
> for others to test them, this was from back in April.  A few weeks ago, I wrote him, and asked for a copy, although they didn't go
> in straight from patch, they were easy enough to put in by hand, and generate -current patches.  After testing them out and finding
> they work, it was just a matter of asking for them to be committed.
>
> Welcome to open-source, community-supported operating systems!
>
> Should you choose to take this assignment, Matt, the secretary will disavow your actions if you are caught.  Good luck!  ;^)
>
> jim
> --
> ET has one helluva sense of humor!
> He's always anal-probing right-wing schizos!
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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