Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2001 17:43:44 -0500
From:      Jim Bryant <kc5vdj@yahoo.com>
To:        Matthew Emmerton <matt@gsicomp.on.ca>
Cc:        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:  <3B858720.3080304@yahoo.com>
References:  <20010822232503.E431@hal9000.servehttp.com> <00d401c12c17$cc847fb0$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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