Jump to content

Dell Inspiron 3x21-5x21 Clover Install Guide


pokenguyen

Recommended Posts

Dell Latitude 3x21/5x21 Clover Install Guide

laptop-inspiron-14r-5421-pdp-1.jpg

 


Dell Inspiron 3421 3521 3721 5421 5521 5721

Tested Models


Known Issues


- Wifi will not work, consider replacing by a BCM43225HMB (Bluetooth + Wifi) or AR9280 (Wifi only).

- Sound is not good, share us if you find any working AppleHDA.



Install OS X Mavericks/Yosemite

1. Prepare a USB with 8GB or more, format by Disk Utility:
 

- Partition Layout: 2 Partitions
- 1st Partition: Name CLOVER, Format: MS-DOS (FAT), Size: >300MB
- 2nd Partition: Name Untitled, Format: Mac OS Extended (Journaled), Size: >7GB
- Options: Master Boot Record

USB_Installer.jpg

2. Download Clover.zip, extract then copy EFI folder to CLOVER partition.




- Download Config.zip, extract then select right config.plist and copy to /EFI/Clover/:


3a. For OS X Mavericks

- Download Mavericks Install app from AppStore.
- Launch terminal and run the following script:

sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction

- Your Mavericks Installer partition will be renamed "Install OS X Mavericks"


3b. For OS X Yosemite
- Download Yosemite Install app
- Right click to Yosemite Install app > Show Package Contents > Contents > Shared Support, open InstallESD.dmg.
- Open OS X Install ESD partition, open BaseSystem.dmg (hidden file)
- Use Disk Utility to clone OS X Base System to MacUSB partition.
Ub9sEsy.png
- Go to System/Installation of USB and delete the alias “Packages”, then go to “OS X Install ESD” partition, copy the “Packages” to the folder System/Installation of your USB
- Copy BaseSystem.dmg and BaseSystem.chunklist (hidden files) from OS X Install ESD to OS X Base System (on your USB)

4. Restart with USB plugged in a USB 2.0 port, select these options in BIOS:
 

- Function keyboard: Function mode
- Disk: AHCI
- UEFI Boot: Enabled
- Secure Boot: Disabled
- Legacy Rom: Disabled
- Add boot option: Add EFI\Boot\Bootx64.efi in USB, then move the boot entry to top.

Save settings and restart.

5. Clover bootloader screen will show up (if not, add Clover in USB in BIOS again), select "Boot OS X Install from xxxxxxxx" (your OS X Installer partition).

6. Press spacebar if a nagging screen about Mouse/keyboard appears. Install screen will appear, use Disk Utility to format your drive as GPT, create a Mac OS X Extended (Journaled) partition and install Mavericks to your formatted partition. The installer will extract necessary files to "Install OS X Mavericks" (not your target partition). This takes a lot of time at the end, though you only see "a minute remaining". This will end PHASE 1. If you are installing Yosemite, jump to step 9

7. Restart and Clover bootloader screen (from USB) shows up, select "Boot OS X Install from Install OS X Mavericks" (your Mavericks Installer partition, not your install target partition).

8. Install screen will appear and continue installation. This time, installer will install files to your target partition and create Recovery HD partition. This will end PHASE 2.

9. Restart, Clover bootloader screen shows up, press F4 (this will dump your dsdt, ssdt) then select "Boot OS X from YourPartition".

10. If everything goes well, you can boot straight to OS X desktop.

11. Download HVT here, run the tool and select those:
 

- CloverUEFI

- Tools > Kext Wizard.

- Tools > SSDTGenerator.

- Tools > IASL

- Tools > MacIASL.

- Tools > Clover Configurator.

- Fixes > Hibernate Mode > Disable Hibernate


12. Copy config.plist from USB to /EFI/Clover/ of EFI partition, then use Clover Configurator to IMPORT config.plist (in EFI partition) and edit those values:
 

- ACPI > GeneratePStates/CStates: uncheck
- SMBIOS: create your new SMBIOS (Macbook Air 5,2) with random Serial Number

Then EXPORT config.plist to /EFI/Clover/ of EFI partition

13. Download https://www.dropbox.com/s/mut20ige5ylgj6o/Kexts Dell E5x30.zip, unzip and copy .kext files to /EFI/Clover/kexts/10.9 and 10.10 of EFI partition

14. Go to /EFI/Clover/ACPI/origin/ of USB, you will see lots of files (dumped by F4 at Clover screen). Copy those files to a DSDT folder on desktop: DSDT.aml, SSDT-*.aml. Go to terminal and type these:
 

cd ~/Desktop/DSDT
iasl -da DSDT.aml SSDT*.aml

If you have errors after running the above command, delete the last file that shows up in error and run again. Don't worry, not all ssdt are necessary.

The decompiled *.dsl files will be created in DSDT folder.

15. Run MacIASL in Tools folder on desktop, open DSDT.dsl by MacIASL, go to Preferences and set to ACPI 5.0. Click Patch button, download one of the patches here and apply:
 

- 1366x768 screen: https://www.dropbox.com/s/jvhma2vkcfyhf6x/Dell Exx21 1366x768 patches.txt

- 1600x900+ screen: https://www.dropbox.com/s/8udi7ki1qxgl1iz/Dell Exx21 1600x900 patches.txt

Click Compile to check for errors, if no error, you can save the file with File Format: ACPI Machine Language Library, name DSDT.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition).

16. Copy /Extra/SSDT.aml in your Mac partition to /EFI/Clover/ACPI/patched/ (of HDD EFI partition)

17. [FOR MODEL WITH NVIDIA/AMD] Go to DSDT folder on desktop, find SSDT-7.dsl, open MacIASL and apply the patch 

into definitionblock code_regex External\s+\((.*_SB_\.PCI0\.GFX0\.DD02\._BCM),\s+IntObj\) replace_matched begin External(%1, MethodObj) end;
into method label _BCM parent_label DD02 code_regex Return\s+\(([^\)]*)\)\n.*Arg0 replace_matched begin %1(Arg0) end;

# rename GFX0
into_all all code_regex \.GFX0 replaceall_matched begin .IGPU end;
into_all all label \_SB.PCI0.GFX0 set_label begin \_SB.PCI0.IGPU end;

# call _OFF from _SB.PCI0.PEG0.PEGP
into method label _INI parent_label \_SB.PCI0.PEG0.PEGP code_regex . insert begin _OFF()\n end;

Click Compile to check for errors, if no error, you can save the file with File Format: ACPI Machine Language Library, name SSDT-1.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition).[/code] Go to step 17.
 
If you have error when clicking Compile, close the ssdt-7.dsl then open ssdt-8.dsl, apply the patch:

into definitionblock code_regex External\s+\((.*_SB_\.PCI0\.GFX0\.DD02\._BCM),\s+IntObj\) replace_matched begin External(%1, MethodObj) end;
into method label _BCM parent_label DD02 code_regex Return\s+\(([^\)]*)\)\n.*Arg0 replace_matched begin %1(Arg0) end;

# rename GFX0
into_all all code_regex \.GFX0 replaceall_matched begin .IGPU end;
into_all all label \_SB.PCI0.GFX0 set_label begin \_SB.PCI0.IGPU end;

# call _OFF from _SB.PCI0.PEG0.PEGP
into method label _INI parent_label \_SB.PCI0.PEG0.PEGP code_regex . insert begin _OFF()\n end;

into definitionblock code_regex . insert
begin
External(\_SB_.PCI0.PEG0.PEGP._OFF, MethodObj)\n
end;

Click Compile to check for errors, if no error, you can save the file with File Format: ACPI Machine Language Library, name SSDT-1.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition).
 
Then open ssdt-9.dsl, apply the patch:

into_all all code_regex pnp0c14 replaceall_matched begin PNP0C14 end;

into definitionblock code_regex External\s+\((.*_SB_\.PCI0\.GFX0\.DD02\._BCM),\s+IntObj\) replace_matched begin External(%1, MethodObj) end;
into method label _BCM parent_label DD02 code_regex Return\s+\(([^\)]*)\)\n.*Arg0 replace_matched begin %1(Arg0) end;
into method label WMMX code_regex If\s\(CondRefOf\s\(\\_SB\.PCI0\.GFX0\._DSM[^}]*\} replace_matched begin //nothing end;


# rename GFX0
into_all all code_regex \.GFX0 replaceall_matched begin .IGPU end;
into_all all label \_SB.PCI0.GFX0 set_label begin \_SB.PCI0.IGPU end;

Click Compile to check for errors, if no error, you can save the file with File Format: ACPI Machine Language Library, name SSDT-2.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition).
18. Recheck if config.plist, dsdt.aml, ssdt.aml, ssdt-1.aml are placed correctly in EFI partition of internal drive.

19. Run HVT again, select
 

- Kexts > RTL8100.


Then use Kext Wizard to install this kext http://www.osx86.net/files/file/3900-applehda-alc282-for-mac-os-x-1092/

20. Restart, go to BIOS, add Boot entry of /EFI/Clover/Cloverx64.efi in your EFI partition, move it to the top, save and restart, you should see Clover screen and option to boot to Mavericks. Enjoy!

 

Flickering Screen Fix

 
If you have flickering all over your laptop display 1366x768, here is the fix:
 
1. Open terminal, run the script:

sudo perl -pi -e 's|\x05\x03\x00\x00\x02\x00\x00\x00\x30\x02\x00\x00|\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00|' /System/Library/Extensions/AppleIntelFramebufferCapri.kext/Contents/MacOS/AppleIntelFramebufferCapri

2. Download this config.plist https://www.dropbox.com/s/fupvhxiydtxercf/config.plist. Use Clover Configurator to mount EFI partition, then open the config.plist you just download, set:
- ACPI > GeneratePStates/CStates: uncheck
- SMBIOS: create your new SMBIOS (Macbook Air 5,2) with random Serial Number
 
Copy config.plist to /EFI/CLOVER/ folder.
 
Use Kext Wizard to repair permission, rebuild cache then restart.
3. Do step 8, 13, 14 in the guide, but use DSDT patch for 1600x900+ screen instead. Then overwrite DSDT.aml to /EFI/CLOVER/ACPI/patched/
 

Clear Network Settings to Fix iCloud/AppStore

If you use any USB Wifi device, or use Mobile Phones to connect to Internet before completing the guide, you won't be able to access to AppStore or iCloud. You must reset your network settings:

- Go to /Library/Preferences/SystemConfiguration/ and delete these files:

  • CaptiveNetworkSupport
  • com.apple.airport.preferences.plist
  • com.apple.network.eapolclient.configuration.plist
  • NetworkInterfaces.plist

- Go to System Preferences > Network, delete all connection. Then restart
- Go to System Preferences > Network, add your connection again.
 

Update from Mavericks to Yosemite

If you followed the old guide (without Yosemite mentioned), do extra steps:

- Download latest HVT, run and select Clover UEFI, Clover Configurator > finish.

- Go to /EFI/Clover/kexts/, create 10.10 folder and copy kexts here https://www.dropbox.com/s/mut20ige5ylgj6o/Kexts%20Dell%20E5x30.zip to 10.10 folder.

- Use Clover Configurator to IMPORT /EFI/Clover/config.plist, go to Boot section and select kext-dev-mode=1. Then EXPORT config.plist to /EFI/Clover/.

Run the OS X Yosemite installer and follow the guide.

Done!
 

Windows 8 UEFI Dual Boot

- Use Disk Utility to prepare a Mac OS X Extended partition (don’t ever use Fat32, Disk Utility will mess up your drive)
- Create a FAT32 usb drive, extract Windows 8 64-bit iso there
- Boot to usb drive, format the new partition to NTFS, install Windows there.
- Go to BIOS, move the Clover boot entry to top.

Done!

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...