Sending SCSI commands to USB device without install custom driver

144 views
Skip to first unread message

Jose Maria Alvarez Rey

unread,
May 26, 2011, 4:36:42 PM5/26/11
to ata-sc...@lists.apple.com, u...@lists.apple.com
Hi.

First of all apologize if this is not the correct list for my question. I have a USB that publish a composite driver (IOUSBCompositeDriver): SCSI commands and Mass Storage device. I would like to develop a simple software that send commands to mount/unmount the mass storage device. I don't have problems with Windows (using file descriptors over USB path) and Linux (using /dev/sd? interface). 

- Is that possible in MacOS?

- Is it possible without install a custom driver?

I'm trying to access using /dev/rdisk?s1 but always receive problem "Bad file descriptor". In other way, I try with IOService and creating an interface without success.
 
Thanks in advance.

Chema

Joel Reymont

unread,
May 26, 2011, 4:40:37 PM5/26/11
to Jose Maria Alvarez Rey, ata-sc...@lists.apple.com, usb Li

On May 26, 2011, at 10:36 PM, Jose Maria Alvarez Rey wrote:

> First of all apologize if this is not the correct list for my question. I have a USB that publish a composite driver (IOUSBCompositeDriver): SCSI commands and Mass Storage device. I would like to develop a simple software that send commands to mount/unmount the mass storage device. I don't have problems with Windows (using file descriptors over USB path) and Linux (using /dev/sd? interface).

You need a custom driver on the Mac and I one that does this a while ago:

https://github.com/wagerlabs/seaforth24

Note that there's no 64-bit support and it may be buggy. Right Chris? ;-)

There's also no other example of a driver that sends SCSI commands on the Mac that I could find so mine is probably as good as any.

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Ata-scsi-dev mailing list (Ata-sc...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/ata-scsi-dev/ata-scsi-dev-garchive-72467%40googlegroups.com

This email sent to ata-scsi-dev-...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages