Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added internal SDCard reader support #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion EFI/CLOVER/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<key>DefaultVolume</key>
<string>LastBootedVolume</string>
<key>Arguments</key>
<string>slide=0 npci=0x2000 dart=0 darkwake=1 agdpmod=vit9696 brcmfx-country=#a -v</string>
<string>slide=0 npci=0x2000 dart=0 darkwake=1 agdpmod=vit9696 brcmfx-country=#a -rtsx_mimic_linux -v</string>
<key>NeverHibernate</key>
<true/>
<key>Secure</key>
Expand Down
81 changes: 81 additions & 0 deletions EFI/CLOVER/kexts/Other/Sinetek-rtsx.kext/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>19E287</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>Sinetek-rtsx</string>
<key>CFBundleIdentifier</key>
<string>com.sinet3k.Sinetek-rtsx</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Sinetek-rtsx</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>2.2</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>4</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>11E503a</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>19E258</string>
<key>DTSDKName</key>
<string>macosx10.15</string>
<key>DTXcode</key>
<string>1141</string>
<key>DTXcodeBuild</key>
<string>11E503a</string>
<key>IOKitPersonalities</key>
<dict>
<key>Sinetek_rtsx</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.sinet3k.Sinetek-rtsx</string>
<key>IOClass</key>
<string>Sinetek_rtsx</string>
<key>IOKitDebug</key>
<integer>65535</integer>
<key>IOPCIMatch</key>
<string>0x520910EC 0x522710EC 0x522910EC 0x522A10EC 0x524910EC 0x528610EC 0x528710EC 0x528910EC 0x525A10EC</string>
<key>IOProbeScore</key>
<integer>1000</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
</dict>
<key>LSMinimumSystemVersion</key>
<string>10.12</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 sinetek (modified by cholonam). All rights reserved.</string>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOPCIFamily</key>
<string>2.9</string>
<key>com.apple.iokit.IOStorageFamily</key>
<string>2.1</string>
<key>com.apple.kpi.bsd</key>
<string>16.4</string>
<key>com.apple.kpi.iokit</key>
<string>16.4</string>
<key>com.apple.kpi.libkern</key>
<string>16.4</string>
<key>com.apple.kpi.mach</key>
<string>16.4</string>
<key>com.apple.kpi.unsupported</key>
<string>8.0</string>
</dict>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict/>
<key>files2</key>
<dict/>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
4 changes: 4 additions & 0 deletions EFI/CLOVER/kexts/Other/kexts.org
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ patching throughout the macOS. Required by WhateverGreen and other kexts.
https://github.com/acidanthera/VirtualSMC
Apple SMC emulator. Required to boot macOS on a hackintosh, since PCs
do not have Apple SMC hardware.
* Sintekek-rtsx (2.2)
https://github.com/cholonam/Sinetek-rtsx
macOS driver for Realtek SD card readers. This allows the use of the internal PCIe SD card reader

* Notes
All kexts are release versions, if both debug and release are provided.

Expand Down
7 changes: 6 additions & 1 deletion readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ HDMI. The boot argument =agdpmod=vit9696= is required to disable board checks, s
- =framebuffer-con3-preferred-lspcon-mode= = =<01000000>=
*** Known problems/caveats
- IGPU graphics can be slightly choppy on a scaled external 4k monitor
** Internal SD Card
- The internal SD Card is on the PCI express bus so we need an kernal extension for accessing it. [[https://github.com/cholonam/Sinetek-rtsx][Sintekek-rtsx]] is a kernal extension which allows access to the RTS525A which are the model of our sdcard reader.
Adding this boot argument allows additional initialization which are recommended per readme.
#+BEGIN_SRC
-rtsx_mimic_linux
#+END_SRC
** PS/2 Keyboard
The internal keyboard is a PS/2 device, but macOS does not support PS/2. This can be implemented
with VoodooPS2Controller.
Expand Down Expand Up @@ -332,7 +338,6 @@ importing them in Windows. See [[https://github.com/digitalbirdo/BT-LinkkeySync]
- Internal keyboard behaves strangely when Keyboard SysPrefs are changed - must use SSDT to configure VoodooPS2Controller
- Wi-Fi and Bluetooth require card swap, since there are no macOS drivers for OEM Killer Qualcomm card
- Fingerprint reader does not work (see Touch ID / fingerprint reader section)
- SD card reader not present
* ACPI DSDT/SSDT patching
Most of the ACPI patching info is based on the [[https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/][laptop DSDT/SSDT guide]] and [[https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/][hotpatching guide]].

Expand Down