Contribute
Register

MB 5.2.1's TRIM patch broken after MacBook Update 2.0 [Fix included]

Status
Not open for further replies.
Joined
Jul 23, 2011
Messages
10
Motherboard
Gigabyte GA-Z77X-UD5H v1.1 F14
CPU
Intel i7-3770K @ 4.5GHz
Graphics
Nvidia GeForce 670
Mac
  1. MacBook
  2. MacBook Air
  3. MacBook Pro
  4. Mac mini
Classic Mac
  1. 0
Mobile Phone
  1. Android
  2. iOS
MacMan/tonymac,

After the "MacBook Air and MacBook Pro Update 2.0" install, the TRIM patch in MultiBeast 5.2.1 does not patch the new driver properly. It looks like the terminating byte in the match has changed once again. Here is the fixed patch for this version of the driver.

Code:
perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

Also, since there are now at least 3 versions of this patch needed, how about a different approach that gets all of them in one script? Then you can just have one "TRIM Enabler" option in MultiBeast instead of many version-specific scripts.

See the attachment for my approach for a 'universal TRIM enabler' script.

Thanks so much for this site and all the work you do!
 

Attachments

  • universal_trim_patch.zip
    641 bytes · Views: 89
Closed won't implement as this is not a mainstream release.

If that patch works in 10.8.3 then I will add it to MultiBeast after it is released.
 
Status
Not open for further replies.
Back
Top