kasbert / OS-X-SAT-SMART-Driver

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

64-Bit on Lion? #1

Closed jsnyder closed 12 years ago

jsnyder commented 12 years ago

Hi -

I noticed that the builds were for 32-bit only. Is it possible to build this for 64-bit as on Lion?

kasbert commented 12 years ago

Hello,

I have only a 32-bit system and Snow Leopard, but I'll see if it is possible.

Hi -

I noticed that the builds were for 32-bit only. Is it possible to build this for 64-bit as on Lion?


Reply to this email directly or view it on GitHub: https://github.com/kasbert/OS-X-SAT-SMART-Driver/issues/1

jsnyder commented 12 years ago

After updating header locations a bit for 4.3.2 (which now keeps everything in XCode.app, at least it seems for perhaps for pre-10.7 versions), it threw some complaints about function calls having an incorrect number of parameters. I stopped there, wondering about whether I should investigate maybe newer versions of the driver you started with, but I couldn't quite figure out what sources you started with from Apple's Open Source site or what modifications might have been necessary to make this work.

Thanks in advance. I'll be happy to test and/or provide feedback if you discover a way to get things going on 64-bit (which is now the default on Lion).

On the front of your own testing, unless you have one of the earliest Core 2 Duo parts you should be able to boot into 64-bit mode (if you're interested and/or want to test things): http://support.apple.com/kb/HT3773

Best.

kasbert commented 12 years ago

Please compile the new version or try SATSMARTDriver-0.2.dmg. It should have both 32-bit and 64-bit binaries compiled it.

I started with VendorSpecificType00 example and ATA driver sources. Some ATA classes are almost direct copies , like IOSATCommand <-> IOATACommand.

I have quite old Mac Mini and it does not support 64-bit mode.

grahamperrin commented 12 years ago

Thanks for the enhancement.

From System Information on a MacBookPro5,2 with 64-bit kernel and extensions:

SATSMARTDriver:

  Version:  1.0
  Last Modified:    2012-04-14 21:51
  Kind: Intel
  Architectures:    i386, x86_64
  64-Bit (Intel):   Yes
  Location: /System/Library/Extensions/SATSMARTDriver.kext
  Kext Version: 1
  Load Address: 0xffffff7f80a60000
  Valid:    Yes
  Authentic:    Yes
  Dependencies: Satisfied

For a compatible disk on USB, given to ZEVO:

StoreJet Transcend:

  Capacity: 640.14 GB (640,135,028,736 bytes)
  Removable Media:  Yes
  Detachable Drive: Yes
  BSD Name: disk5
  Product ID:   0x2329
  Vendor ID:    0x152d  (JMicron Technology Corp.)
  Version:  0.00
  Serial Number:    322549FBA004
  Speed:    Up to 480 Mb/sec
  Manufacturer: JMicron
  Location ID:  0x26400000 / 2
  Current Available (mA):   500
  Current Required (mA):    2
  Partition Map Type:   GPT (GUID Partition Table)
  S.M.A.R.T. status:    Verified
  Volumes:
    disk5s1:
      Capacity: 209.7 MB (209,715,200 bytes)
      BSD Name: disk5s1
      Content:  EFI
    disk5s2:
      Capacity: 639.79 GB (639,791,054,848 bytes)
      BSD Name: disk5s2
      Content:  ZFS
kasbert commented 12 years ago

The actual smart data reading was broken. Version 0.4 should work now.