kasbert / OS-X-SAT-SMART-Driver

Max OS X kernel driver for providing access to external drive SMART data
585 stars 76 forks source link

Issuing PassThrough16 command #19

Closed hnr3103 closed 10 years ago

hnr3103 commented 10 years ago

Hi....

How to configure the driver to send the PassThru 16 command. some of the commnad is failing when used with passthrough 12.

kasbert commented 10 years ago

Currently there is no easy way to select passthrough 16 mode. One has to modify sources and compile the driver.

What commands are not working and what is the enclosure model/type ?

hnr3103 commented 10 years ago

I tried to recompile the code and enable the Use Passthrouth16 in the plist file. When I tried to load the driver , getting kernel panics. I could be doing it wrong. can you please share the steps to recreate the build to use passthrough16.

Also, I observerd that somewhere the resource is being held by the driver. I was not able to issue unmount command on the disk after issuing some SMART commands. If I comment them unmount works fine.

kasbert commented 10 years ago

It seems that SAT16 mode is broken. I guess it has actually not been used. I pushed some new code. Now you can configure the passthrough for each vendor/product id.

hnr3103 commented 10 years ago

Thank you very much for your support in this... With the latest installation, IDENTIFY command is failing in sat16 mode.... sample code tooo..

Do I need to recompile with certain options ?

kasbert commented 10 years ago

There are no compile options for this. For me the sat16 mode works with identify, but some other smart command will cause kernel panic. I guess there is some 32bit dependent code somewhere. Arey you sure, you need sat16 mode and "Permissive" option is not enough ?

kasbert commented 10 years ago

I think I found the line causing a panic with sat16 mode. Please try the latest version.

kasbert commented 10 years ago

As I don't see any problems wit sat16 mode, I'll close this issue