Upgrading 2013/2014 Macbook Pro SSD to M.2 NVMe

Discussion in 'MacBook Pro' started by maxthackray, Mar 1, 2017.

  1. yesnoj macrumors newbie

    Joined:
    Apr 9, 2018
    #1276
    --- Post Merged, May 15, 2018 ---


    I've wrote in my post how to apply the tape, however i've edited my previous image ...
    Hope this helps
     

    Attached Files:

  2. Jilly Bowman macrumors member

    Jilly Bowman

    Joined:
    Feb 2, 2017
    Location:
    Dubai
    #1277
    All default values, nothing changed and works fine, I've also now another MBP 2015 I7 13" with same adapter and 1TB 960EVO, also works fine, no issues at all.
     
  3. ericjojo, May 15, 2018
    Last edited: May 15, 2018

    ericjojo macrumors newbie

    Joined:
    May 13, 2018
    #1278
    Jilly, thanks for the info. The CY(ChenYang) adapter I'm using right now may have some compatibility issues with my Macbook Air 2015 13". I'm gonna place an order for Sintech long black adapter as you suggested.
     
  4. xelanaiznac, May 16, 2018
    Last edited: May 17, 2018

    xelanaiznac macrumors member

    Joined:
    May 13, 2013
    Location:
    italy
    #1279
    hi.
    I'm using 960 evo on my macbook pro 15 mid-2015 with black long sintech adapter (latest version).
    i noticed that 960 evo is draining my battery much more Thant the original apple ssd.
    is it normal?
    it has latest firmware 3B7QCXE7
     
  5. imax2k2 macrumors regular

    Joined:
    Feb 25, 2009
    #1280
    Thank you very much!
     
  6. gilles_polysoft, May 17, 2018
    Last edited: May 30, 2018

    gilles_polysoft macrumors regular

    gilles_polysoft

    Joined:
    Jul 7, 2017
    Location:
    Tours (France)
    #1281
    Hi everyone,

    long story this evening...

    I did some test with patching the BootRom on my trusty late 2013 rMBP.
    It's too soon to tell that the patch I did was successful, but at present it seems to work.

    Here is what I wanted to do : I had previously watched into and compared BootRom files between rMBP late 2013 and early - mid 2015.
    I had extracted EFI payloads files from the High Sierra installer, and compared them with UEFI tool.
    I had seen some differences between the NVMe DXE drivers include in the BootRoms : all DXE drivers are located at an address starting with 51116915, but those from 2013-2014 macs bootroms all have a size of 10382 bytes, while all DXE drivers from 2015 and later macs are 25820 bytes wide.
    Also, 2015 macs have an NVMe entry in the compiled DSDT table included in the EFI.

    I must also say I had previously success with patching an UEFI of an old Fujitsu TX140 server (I did successfully added to its UEFI/bios a generic NVMe DXE driver in order to make it recognize NVMe drives at boot : https://twitter.com/gillesaurejac/status/995418694875537409).

    So I wanted to do the same with my late 2013 rMBP, and edit its BootRom so that it would include the proper NVME driver and DSDT table reference.

    Here is what I did :
    - I bought an EFI cable at MacUnlocks : https://macunlocks.com/product/efi-flex-cable-for-macbook-air-pro-2010-2016/
    - I already had an SPI programmer, a little EZP-2013 which does works great (even under windows 8.1 64 bits)

    Ok, so the first tries were epic fails...
    The dump of BootRom I did were never the same, and the rom file was not editable in UEFI tool. I was too scared of briking my rMBP.
    What was in cause ? I thought I had a bad cable, or any other problem, and managed to unsoldered the SPI rom and connect it directly on the EZP programmer... With no luck : I had the same unreliable results. Worse, in desoldering the SPI rom I did loose some resistor, and had to read the schematics and find some new 33k resistors and solder them in the proper place... eeehhh...

    Once the SPI rom again in place, I did some googling and find that other had same problems : I have read somewhere (here : https://www.ghostlyhaks.com/forum/macbook/234-flashing-micron-25q064a-on-mba-2013-2014) that the power supplied by the SPI programmer wasn't strong enough...
    So I did a little mod to my programmer and added an iPhone battery to provide it a 3.7-3.9V supply (not so clean but sorry... I was lazy this time).

    And that time the dump of the SPI eeprom worked, I could even do it with the logic board in place, without having to desolder anything !

    What next : with the full dump of my SPI bootrom, I could to some patch to it without any fear to brick my mac.

    So I did extract the full BootRom, and did the following :
    - open the BootRom of a rMBP 2015 with UEFI Tool for Mac, find the NVMe DXE driver and extract it
    - open the BootRom of my rMBP 2013 with UEFI Tool for Mac, and replace the NVMe DXE driver with the new one from the 2015.

    Next the DSDT Table :
    - find and extract the compiled (assembly langage) DSDT table of a 2015 Mac, and decompile it with MacIASL
    - find and extract the compiled (assembly langage) DSDT table from my 2013 Mac, and decompile it with MacIASL
    - compare the difference to add the NVMe reference (I know nothing in ACPI tables, I just add at line 288 the line "NVME, 8" just before "Offset 0x12C)
    - recompile the DSDT table as an aml file, and insert it back in the BootRom of my 2013 mac.
    [EDIT 2018-05-30] : seems the whole DSDT table edition is not necessary.

    Then I just flashed inplace my BootRom with the obtained file.

    And the result : the NVMe SSD is still orange at startup menu, but who cares...
    Startup is now without any delay...
    Hibernation now works fully... (I tested 4 times, with setting standby to 1 and standbydelay to 10s)

    I think some tests need to be done, but a step has been made !
     

    Attached Files:

  7. mikeboss macrumors 65816

    mikeboss

    Joined:
    Aug 13, 2009
    Location:
    switzerland
    #1282
    @gilles_polysoft some impressive hacking, congrats! do you think it would be possible to add the NVMe part to the boot rom of MacPro5,1?
     
  8. vk2fro, May 18, 2018
    Last edited: May 18, 2018

    vk2fro macrumors member

    vk2fro

    Joined:
    Apr 29, 2015
    Location:
    Sydney, Australia
    #1283
    Gilles_Polysoft, thats one brave move there mate - I've already bricked a tablet trying to pull stunts like that. Well done! It will be good if you eventually make a tool that will allow members of the forum to flash their roms so as to eliminate the hibernate issues on the 2013-2014 model computers.

    This thread has been an absolute gold mine of information. Thankyou to all the contributers.

    My ebay adapter has turned up as has the SSD, now just waiting for the macbook itself to arrive (another brave stunt - buying a macbook on ebay LOL). I won a 2013 I7 16Gb macbook with a 256Gb flash drive. Long story short, I used to have a 2012 macbook pro, but someone stole it, and being on a not so great income at that stage meant I have had to wait till now to be able to afford a new unit!

    At my disposal is a hackintosh with two nvme slots, so I should be able to update firmwares where needed, and if the Toshiba XG5 512Gb disk doesn't want to co-operate (the one I ordered for the mac), I can swap it out by carbon copy cloning my Samsung 960 Evo in the hack to the backup spinning drive, swap the two, and CCC it back to the toshiba, allowing it to be the boot drive for my hack, and the main disk in the macbook will then be the Samsung. Triboot usb stick on hand too, for macOS, Ubuntu and windows. Since the 'book comes with sierra installed, I will install high sierra so as to update the boot rom.

    Also have two sintech adapters coming (as seperate orders no less), a "b" type (which sometimes gets black, sometimes gets big green; the one that comes with the screw drivers), and a long black "C" type. Also have a PCI-E to apple SSD adapter for the original apple SSD, but may just end up getting an OWC caddy and using it as a big USB stick.

    edit: typo's, and I swore - sorry. :)
     
  9. yesnoj, May 18, 2018
    Last edited: May 18, 2018

    yesnoj macrumors newbie

    Joined:
    Apr 9, 2018
    #1284
    Amazing job Gilles!I've also an SPI programmer, an CH341A with clip for SOIC8 (i've used to save my tv 32" nordmende in bootloop flashing a dump on the 25Q64BSIG chip), but i don't mind to do nothing like you :p
    If is possible to add in a simple way the Hybernate function on my 960evo will be great...if not, well...im happy too ;)
    Thanks again for your support, you are THE MAN. :apple:
     
  10. plexfit macrumors newbie

    Joined:
    May 18, 2018
    #1285
    Another confirmed failure here for the PM981, don't even bother with any versions of it. I bought a Lenovo-branded 1TB PM981 and it crashed midway through the installer.

    I have severe battery draining with the 960EVO so I just looked at other options. What's the best nvme ssd for battery life out there that you guys recommend ? Battery life for me is super important and right now I went back to the stock 128GB because of the severe drain on the 960EVO.
     
  11. vk2fro macrumors member

    vk2fro

    Joined:
    Apr 29, 2015
    Location:
    Sydney, Australia
    #1286
    Funnily enough you have the same SPI programmer I do Yesnoj, the ch341a. I've had multiple successes with it rescuing cheap chinese tablets, whom tend to corrupt their bioses due to a windows update. However late one evening I was working on one (thankfully mine) and completely bricked it by flashing the wrong bios to it. I chalked it up as a life experience and let it go. Now I triple check I have the correct settings and bios file before starting the procedure :)
     
  12. gilles_polysoft macrumors regular

    gilles_polysoft

    Joined:
    Jul 7, 2017
    Location:
    Tours (France)
    #1287
    Hi mikeboss,
    Yes it is possible and I had also the same idea.. in fact it is incredibely simple to do.
    I manage to make the same BootRom
    mod on my old MacPro 4.1, and it now natively boots on a Toshiba XG5 :
    https://twitter.com/gillesaurejac/status/997893176135385089?s=20
     
  13. xelanaiznac macrumors member

    Joined:
    May 13, 2013
    Location:
    italy
    #1288
    I would suggest Kingston kc1000
     
  14. Pikaman macrumors newbie

    Joined:
    May 20, 2018
    #1289
    Hi, I have the same MBPr 2014 A1398 with latest BootROM MBP112.0145.B00. It should be similar with yours above model and I am also considering to upgrade SSD with Samsung 960 EVO 1TB.

    May I know if your above upgrade experience any close lid sleep, hibernation or booting fail with question mark folder icon problem? Or everything just work fine as same stock apple SSD?

    Regards,

    Pika
     
  15. plexfit macrumors newbie

    Joined:
    May 18, 2018
    #1290
    The power number looks promising, have you or anyone tried it to make sure it works and it has negligible battery impacts ? Thanks a lot for the suggestions !!
     
  16. mikeboss macrumors 65816

    mikeboss

    Joined:
    Aug 13, 2009
    Location:
    switzerland
    #1291
    holy sh*t! you did it! jawdropping stuff, man. are you planning to release the boot ROM?
     
  17. zozomester macrumors regular

    zozomester

    Joined:
    Apr 26, 2017
    Location:
    Hungary
    #1292
    Do you publish the boot rom?
     
  18. Squuiid macrumors 65816

    Squuiid

    Joined:
    Oct 31, 2006
    #1293
    Wow! This is incredible work! Well done sir.
     
  19. HaypurTiryading, May 20, 2018
    Last edited: May 20, 2018

    HaypurTiryading macrumors newbie

    HaypurTiryading

    Joined:
    May 20, 2018
    Location:
    Turkey
    #1294
    Wow, that's a great improvement for our dusty machines sir. I'm waiting native nvme as a 4.1->5.1 user quite long time. If you provide rom dump, I will check the other uefi part of the rom. Maybe we will find some overclock settings, pci express speed settings, basic video rom for non flashed cards etc. Thanks.

    edit
    I've just checked firmware restoration cd and unzipped. There is 4 file in the folder. 0/1/2 and 3.hfs or the biggest is efi/bios file. I opened 3.hfs with UEFITool and I can see the modules. I can insert any module even NVMe but there is a problem. Our machines (Mac Pro 4.1 - 5.1) have updated/better bootrom if HS installed than Apple's firmware restoration cd release.

    Picture: https://imgur.com/kwgAiIM
    [​IMG]
    [​IMG]
     
  20. Jilly Bowman macrumors member

    Jilly Bowman

    Joined:
    Feb 2, 2017
    Location:
    Dubai
    #1295
    Brilliant, very impressive, looking forward to results/further improvements. Wonderful.
     
  21. MIKX macrumors 6502

    MIKX

    Joined:
    Dec 16, 2004
    Location:
    Japan
    #1296
    gilles_polysoft

    Toutes nos félicitations!

    Nous savions tous que quelqu'un pourrait l'obtenir!

    J'admire ta ténacité et ta persévérance

    What you have achieved will certainly make Apple sit up and take notice.

    ( Gilles is French, the least I could do is fire up Google Translate out of respect for his breakthrough.)

    :D
     
  22. Cmd+Q macrumors newbie

    Joined:
    Apr 23, 2018
    #1297
    Impressive and thanks for the documentation!

    Is that perhaps because the UEFI capsule holding compressed firmware data? When I looked at the section you referenced, the size was about the same for the uncompressed image (see attached). I am hoping the firmware changes could be made to the UEFI capsule rather than manipulating the SPI chip; for folks without a MacBook SPI cable and Programmer (or even Raspberry Pi).


    Was the MacBook Pro battery connected when you tried to read the SPI?

    Great job! Thanks for posting the results here.

    Thanks.
    -Tim
     

    Attached Files:

  23. plexfit macrumors newbie

    Joined:
    May 18, 2018
    #1298
    Anybody here has tried a 760p yet ? From the most recent review, it has the power saving features without needing APST enabled closest to SATA and it has the performance close to a 960EVO, this must be the holy grail of NVMe option we currently have for Macbook upgrade, I am surprised no one has noticed or tried out this drive yet: https://www.anandtech.com/show/12349/the-intel-ssd-760p-512gb-review/8
     
  24. aatoma macrumors newbie

    Joined:
    Apr 27, 2018
    #1299
    This is awesome, Gilles!
    Am I right in thinking that this could help my MBPR 15" late 2013, stuck with no hope of getting the latest bootrom?
    I have some tinkering skills and very little to lose, so, with proper direction, I could be the perfect candidate for some testing
     
  25. t0n1 macrumors newbie

    Joined:
    May 20, 2018
    Location:
    Germany
    #1300
    After reading thousands of replies in this thread, I chose the Toshiba XG3 1TB for my MacBook Air 2015 11", thought it would be a hassle-free solution for the upgrade.

    The installation of macOS 10.13.4 went well and the speed is acceptable due to the pcie2.0x4 limitation. However, it can't wake up after deep sleep and shows a folder icon with a question mark. The laptop then reboots and shows a kernel panic report. This problem has been temporarily solved with the hibernatemode 25.

    Bootcamp (win10 1803) works fine for me. The benchmark seems to be ok.

    But everytime when i try to reboot from the OS, it fails to recognize my ssd as if it doesn't exist. I guess it has something to do with the sleep issue under mac os.

    Looking forward to advice and help.

    Thanks in advance
     

    Attached Files:

Share This Page