toleda / audio_CloverALC

macOS Realtek ALC onboard audio with Clover
679 stars 109 forks source link

`/tmp/887: Not a directory` when entering codec 892 #127

Closed Joshfindit closed 6 years ago

Joshfindit commented 6 years ago

Possibly related to https://github.com/toleda/audio_CloverALC/issues/60

Seems to be using 887 incorrectly when entering codec 892.

On the surface, this jumps out: $gCodec = 892, $gCodecName = 887

Standard console log

./audio_cloverALC-130.sh

Agreement
The audio_cloverALC script is for personal use only. Do not distribute
the patch, any or all of the files or the resulting patched AppleHDA.kext
for any reason without permission. The audio_cloverALC script is
provided as is and without any kind of warranty.

File: audio_cloverALC-130.command_v0.3
Release Mode
Password:
EFI partition is mounted
System Integrity Protection status: enabled (Custom Configuration).

Configuration:
    Apple Internal: disabled
    Kext Signing: disabled
    Filesystem Protections: disabled
    Debugging Restrictions: enabled
    DTrace Restrictions: enabled
    NVRAM Protections: enabled
    BaseSystem Verification: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

OK to patch
Confirm Realtek ALC887 (y/n): n
Supported RealtekALC codecs: 885, 887, 888, 889, 892, 898, 1150 and 1220 (0 to exit)
Enter codec: 892
B0D3@3 found, HDAU edit required for HD4600 HDMI audio
dsdt edit/ssdt injection not available with this script
Patch AppleHDA.kext for HD4600 HDMI audio (y/n): n
Clover Audio ID Injection (y/n): y
Use Audio ID: 1 (y/n): y

Download ALC892 files ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 25585  100 25585    0     0  42579      0 --:--:-- --:--:-- --:--:-- 42641
Edit config.plist/Devices/Audio/Inject/1
Edit config.plist/SystemParameters/InjectKexts/YES
Download kext patches
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1742  100  1742    0     0   5041      0 --:--:-- --:--:-- --:--:--  5034
Download config kext and install ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4223  100  4223    0     0  12254      0 --:--:-- --:--:-- --:--:-- 12276
Install /Volumes/EFI/EFI/CLOVER/kexts/10.12/realtekALC.kext
Install System/Library/Extensions/AppleHDA.kext/ALC892 zml files
install: /tmp/887/Platforms.xml.zlib: No such file or directory
install: /tmp/887/layout1.xml.zlib: No such file or directory
install: /tmp/887/layout2.xml.zlib: No such file or directory
install: /tmp/887/layout3.xml.zlib: No such file or directory
rm: /tmp/887: No such file or directory
Error: Installation failure
rm: /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*zml.zlib: No such file or directory
Original S/L/E/AppleHDA.kext restored
To save a Copy of this Terminal session: Terminal/Shell/Export Text As ...

TestDrive console log

./audio_cloverALC-130.sh

Agreement
The audio_cloverALC script is for personal use only. Do not distribute
the patch, any or all of the files or the resulting patched AppleHDA.kext
for any reason without permission. The audio_cloverALC script is
provided as is and without any kind of warranty.

File: audio_cloverALC-130.command_v0.3
TestDrive Mode
Password:
/Volumes/EFI/EFI/CLOVER/config.plist copied to /tmp/config.plist
Confirm Realtek ALC887 (y/n): n
Supported RealtekALC codecs: 885, 887, 888, 889, 892, 898, 1150 and 1220 (0 to exit)
Enter codec: 892
B0D3@3 found, HDAU edit required for HD4600 HDMI audio
dsdt edit/ssdt injection not available with this script
Patch AppleHDA.kext for HD4600 HDMI audio (y/n): n
Clover Audio ID Injection (y/n): y
Use Audio ID: 1 (y/n): y

Download ALC892 files ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 25585  100 25585    0     0  44762      0 --:--:-- --:--:-- --:--:-- 44729
Edit config.plist/Devices/Audio/Inject/1
Edit config.plist/SystemParameters/InjectKexts/YES
Download kext patches
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1742  100  1742    0     0   6354      0 --:--:-- --:--:-- --:--:--  6357
/tmp/config.plist copied to /tmp/887
Download config kext and install ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4223  100  4223    0     0  15783      0 --:--:-- --:--:-- --:--:-- 15816
cp: /tmp/887: Not a directory
cp: /tmp/887: Not a directory
/tmp/realtekALC.kext copied to /tmp/887
rm: /tmp/887/Info-*.plist: Not a directory
mv: rename /tmp/887/*.xml.zlib to /tmp/887/*.zml.zlib: Not a directory
892-TestDrive copied to Desktop
No system files were changed

Install finished, see Desktop/892-TestDrive

Debug=1 TestDrive file

892-TestDrive.txt

Specs

toleda commented 6 years ago

887 not 892 https://www.gigabyte.com/Motherboard/GA-B85M-HD3-rev-30#sp

Joshfindit commented 6 years ago

You're right; I confused the two and looked at the specs for the GA-B85-HD3.

If the error above was due to auto-discovery the issue can be closed.