superjill Posted March 6, 2022 Share Posted March 6, 2022 Hi, guys I am very new to Hackintosh even MacOS Audio card of my laptop is CS8409 which is not contained any layout ID in ApplcALC but could be shown in PCI section in Monterey and sound section in Hackintosh, without any audios And I found all the pinconfigs, nodes and paths of my card Also spent loads of time to install Xcode AFTER modified everything I need, then built the kext It ONLY came out AppleALCU.kext, alc-verb and ResourceConverter......And said Built Failed The AppleALC.kext in the products folder is RED or came out the file with 0 byte How could I built AppleALC.kext? Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/ Share on other sites More sharing options...
miliuco Posted March 6, 2022 Share Posted March 6, 2022 @superjill Please complete your signature (Account settings >> signature). Yo need Lilu and MacKernelSDK to compile AppleALC. There is an easy way, copy this text and save it with .sh extension. Run it and you'll get AppleALC.kext. #!/bin/sh cd "$(dirname "$0")" git clone https://github.com/acidanthera/Lilu git clone https://github.com/acidanthera/MacKernelSDK git clone https://github.com/acidanthera/AppleALC cd MacKernelSDK git pull cd ../Lilu git pull ln -s ../MacKernelSDK MacKernelSDK xcodebuild xcodebuild -configuration Debug cd ../AppleALC git pull ln -s ../MacKernelSDK MacKernelSDK ln -s ../Lilu/build/Debug/Lilu.kext Lilu.kext xcodebuild 3 Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777734 Share on other sites More sharing options...
miliuco Posted March 6, 2022 Share Posted March 6, 2022 (edited) Sorry I was looking for the author of this code but finally I've found the name: @Stefanalmare, credits of the .sh scripts go to him. https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/?do=findComment&comment=2774124 Edited March 6, 2022 by miliuco 1 Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777738 Share on other sites More sharing options...
superjill Posted March 8, 2022 Author Share Posted March 8, 2022 On 3/7/2022 at 5:08 AM, miliuco said: @superjill Please complete your signature (Account settings >> signature). Yo need Lilu and MacKernelSDK to compile AppleALC. There is an easy way, copy this text and save it with .sh extension. Run it and you'll get AppleALC.kext. #!/bin/sh cd "$(dirname "$0")" git clone https://github.com/acidanthera/Lilu git clone https://github.com/acidanthera/MacKernelSDK git clone https://github.com/acidanthera/AppleALC cd MacKernelSDK git pull cd ../Lilu git pull ln -s ../MacKernelSDK MacKernelSDK xcodebuild xcodebuild -configuration Debug cd ../AppleALC git pull ln -s ../MacKernelSDK MacKernelSDK ln -s ../Lilu/build/Debug/Lilu.kext Lilu.kext xcodebuild Thanks @miliuco I have tried your script, It is ok if I don't modify anything in AppleALC folder When I put my CS8409 folder and pinconfig.kext into resources, it would build failed Shows below /bin/sh -c /Users/terry/Test/AppleALC/build/AppleALC.build/Release/ResourceConverter.build/Script-CE0C09F3201DBE6600926B8E.sh Wed Mar 9 01:16:14 AEDT 2022 Start packing in /Users/terry/Test/AppleALC Wed Mar 9 01:16:15 AEDT 2022 Done formatting Wed Mar 9 01:16:15 AEDT 2022 Start formatting in /Users/terry/Test/AppleALC Wed Mar 9 01:16:17 AEDT 2022 Done formatting Wed Mar 9 01:16:17 AEDT 2022 Start building resources 2022-03-09 01:16:18.722 ResourceConverter[90151:512185] -[__NSCFData unsignedLongValue]: unrecognized selector sent to instance 0x6000032e29d0 ResourceConverter: Fatal error during generation Failed to build kern_resources.cpp Command PhaseScriptExecution failed with a nonzero exit code /Users/terry/Test/AppleALC/AppleALC.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.6, but the range of supported deployment target versions is 10.9 to 12.2. (in target 'AppleALCU' from project 'AppleALC') /Users/terry/Test/AppleALC/AppleALC.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.6, but the range of supported deployment target versions is 10.9 to 12.2. (in target 'AppleALC' from project 'AppleALC') ** BUILD FAILED ** The following build commands failed: PhaseScriptExecution Convert\ Resources /Users/terry/Test/AppleALC/build/AppleALC.build/Release/ResourceConverter.build/Script-CE0C09F3201DBE6600926B8E.sh (in target 'ResourceConverter' from project 'AppleALC') (1 failure) And only alc-verb and ResourceConverter in the build\release folder A little bit similar to the situation in Xcode.app 1 Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777824 Share on other sites More sharing options...
miliuco Posted March 8, 2022 Share Posted March 8, 2022 @superjill Remember your signature, please. Something is wrong when adding those 2 files. Can you upload here CS8409 folder and pinconfig.kext to try if I see where is the error? Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777839 Share on other sites More sharing options...
superjill Posted March 9, 2022 Author Share Posted March 9, 2022 (edited) Thanks @miliuco But I did the signature in Xcode, if built them in the app, it would ask me the password, as my signature is import from my other macbook But it did not ask me to type the psw while running the scripts Here are the snapshot from Hackintool And those two files and also with the codec detail Cheers upload.zip codec.zip Edited March 9, 2022 by superjill add up files Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777882 Share on other sites More sharing options...
superjill Posted March 9, 2022 Author Share Posted March 9, 2022 (edited) codec.zip Edited March 9, 2022 by superjill wanna deleted 1 Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777883 Share on other sites More sharing options...
miliuco Posted March 9, 2022 Share Posted March 9, 2022 (edited) @superjill I am talking about the signature you see at the bottom of the posts, with the main details of your hackintosh. So everyone can help better knowing the hardware you have. User profile >> Account Settings >> Signature. I'll try the uploaded files and comment. Edited March 9, 2022 by miliuco Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777891 Share on other sites More sharing options...
miliuco Posted March 9, 2022 Share Posted March 9, 2022 @superjill About PinConfig.kext, what it's the difference with the kext included in AppleALC source code? Do you have only added your 'Dell Inspiron 15 i3501 5573BLK PUS - Cirrus Logic CS8409' between 'Custom ALC282 Lenovo-IdeaPad-Z510 by hoseinrez' and 'agasecond - Realtek ALC256 (3246) for Xiaomi Pro Enhanced 2019'? Nothing more? I say it because Info.plist from AppleALC has 9387 lines and yours has 9317. Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777894 Share on other sites More sharing options...
miliuco Posted March 9, 2022 Share Posted March 9, 2022 @superjill I don't know what's wrong. First I deleted all md5 and zlib files from your CS8409 folder and your PinConfigs.kext file, leaving only plist and xml files but I got same warning: '"MACOSX_DEPLOYMENT_TARGET is set to 10.6" etc. Then I modified the project.pbxxproj file inside AppleALC.xcodeproj to replace any "MACOSX_DEPLOYMENT_TARGET = 10.6" occurrence by "MACOSX_DEPLOYMENT_TARGET = 10.9" but compilation failed again, this time with another warning concerning AppleALC/build/AppleALC.build/Release/ResourceConverter.build/Script-CE0C09F3201DBE6600926B8E.sh. So I don't know how to fix this. Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777895 Share on other sites More sharing options...
superjill Posted March 10, 2022 Author Share Posted March 10, 2022 Thanks @miliuco for looking into my files Sorry about my mess modifying those files For the folder CS8409, I modified it from CS4210, and I am still not so sure whether there is anything which I have to delete, but I did not. Do you have only added your 'Dell Inspiron 15 i3501 5573BLK PUS - Cirrus Logic CS8409' between 'Custom ALC282 Lenovo-IdeaPad-Z510 by hoseinrez' and 'agasecond - Realtek ALC256 (3246) for Xiaomi Pro Enhanced 2019'? Nothing more? I say it because Info.plist from AppleALC has 9387 lines and yours has 9317. Do you have only added your 'Dell Inspiron 15 i3501 5573BLK PUS - Cirrus Logic CS8409' between 'Custom ALC282 Lenovo-IdeaPad-Z510 by hoseinrez' and 'agasecond - Realtek ALC256 (3246) for Xiaomi Pro Enhanced 2019'? Nothing more? I say it because Info.plist from AppleALC has 9387 lines and yours has 9317. I just pasted all Item 1 into pinconfigs.kext, did not touch anything else. But it seems like I did it in PlistEdit Pro, I am not sure if this app would change the file structure I will try to do the add up again in Xcode and see how it goes Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2777949 Share on other sites More sharing options...
superjill Posted March 27, 2022 Author Share Posted March 27, 2022 Just update what I have done since last post I have re-do all modified in XCODE, and finally it could build the appleALC.kext succeedAppleALC.kext.zipmod.zip But I put it back to opencore, it still doesn't work What can I do next? However, I found there is Airpods audio if connected by bluetooth, even with the original appleALC.kext, and I also can see the Audio device in system information PCI page Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2778974 Share on other sites More sharing options...
sathvik989 Posted April 22, 2023 Share Posted April 22, 2023 Hi, I have the same codec for a dell vostro 3401, could you upload your work on the codec so that I could have a shot at fixing my audio? Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2803936 Share on other sites More sharing options...
coniman Posted May 20, 2023 Share Posted May 20, 2023 Hi @superjill you have a PM, I'm also interested in make my Inspiron 3501 work. Thanks. Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804828 Share on other sites More sharing options...
Slice Posted May 20, 2023 Share Posted May 20, 2023 On 4/22/2023 at 10:07 PM, sathvik989 said: Hi, I have the same codec for a dell vostro 3401, could you upload your work on the codec so that I could have a shot at fixing my audio? 1 hour ago, coniman said: Hi @superjill you have a PM, I'm also interested in make my Inspiron 3501 work. Thanks. Guys, why not use VoodooHDA? Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804833 Share on other sites More sharing options...
coniman Posted May 20, 2023 Share Posted May 20, 2023 12 hours ago, Slice said: Guys, why not use VoodooHDA? Hi @Slice, I’ve tried VoodooHDA 2.9.8 and 3.0.2 and they didn’t worked. I’m on Ventura with OpenCore. I’ve tried installing it in EFI folder and also in /System/Extensions with SIP disabled, but none of them worked. The weirdest thing is that my 2016 MacBook Pro uses the same CS8409. Maybe with some DSDT patching we will be able to make it work but I’m a little bit lost on that aspect. I’ve been Hackintoshing since 2011 and DSDT patching was always the hardest part for me. Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804878 Share on other sites More sharing options...
Slice Posted May 20, 2023 Share Posted May 20, 2023 1 hour ago, coniman said: Hi @Slice, I’ve tried VoodooHDA 2.9.8 and 3.0.2 and they didn’t worked. I’m on Ventura with OpenCore. I’ve tried installing it in EFI folder and also in /System/Extensions with SIP disabled, but none of them worked. The weirdest thing is that my 2016 MacBook Pro uses the same CS8409. Maybe with some DSDT patching we will be able to make it work but I’m a little bit lost on that aspect. I’ve been Hackintoshing since 2011 and DSDT patching was always the hardest part for me. No, no... Not EFI folder and not /S/E. Read a guide in my signature and make all steps one by one carefully and exactly. Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804884 Share on other sites More sharing options...
coniman Posted May 20, 2023 Share Posted May 20, 2023 1 hour ago, Slice said: No, no... Not EFI folder and not /S/E. Read a guide in my signature and make all steps one by one carefully and exactly. Ok, I’ll try tonight Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804890 Share on other sites More sharing options...
coniman Posted May 21, 2023 Share Posted May 21, 2023 (edited) Hi, again. I've followed your steps but unfortunately it's not working. Kext is being loaded but I get the attached error in System Preferences. VoodooHDA prefpane shows no devices found but if I boot my system with AppleALC enabled in EFI I get HDMI Audio via VoodooHDA but no internal speakers. I've also tried renaming HDEF to HDAS (seems AppleALC does it on the fly). This is what I get booting with AppleALC, when I get only HDMI Audio. And this is without AppleALC I think I'm getting HDMI audio because my Inspiron 3501 has two audio devices, ALC3204 and CS8409 and maybe with AppleALC I'm enabling the ALC3204 that is the one that controls HDMI audio and the other CS8409 controls speakers, mic and headphone jack. But it's only a supposition. Again @Slice, thanks for your help, patience and work. Let's make this work 💪 Here you have my OC config.plist in case you want to have a look. Cheers! config.plist Edited May 21, 2023 by coniman Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804895 Share on other sites More sharing options...
Slice Posted May 21, 2023 Share Posted May 21, 2023 I said follow my instruction exactly "delete AppleALC" while you stay with it. First your screen shown the mistake - absent of IOAudioFamily.kext Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804896 Share on other sites More sharing options...
coniman Posted May 21, 2023 Share Posted May 21, 2023 6 minutes ago, Slice said: I said follow my instruction exactly "delete AppleALC" while you stay with it. First your screen shown the mistake - absent of IOAudioFamily.kext Yes, I've deleted AppleALC but VoodooHDA wasn't showing any device, that's why I tried with both of them. I still get the same error, as you can see AppleALC is not loaded because I've deleted it from EFI. Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804897 Share on other sites More sharing options...
Slice Posted May 21, 2023 Share Posted May 21, 2023 And then you have to find why IOAudioFamily is absent. Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804898 Share on other sites More sharing options...
coniman Posted May 21, 2023 Share Posted May 21, 2023 I’m gonna investigate but its weird because it’s a fresh installation I’ve formatted it today. Thanks! Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804899 Share on other sites More sharing options...
coniman Posted May 21, 2023 Share Posted May 21, 2023 I’m seeing that even most of the basic kexts are throwing the same error and say that are not signed (and they are from Apple). Can be OpenCore causing that? Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804901 Share on other sites More sharing options...
Slice Posted May 21, 2023 Share Posted May 21, 2023 Restricted SIP allows you to use unsigned kexts. Remember that if SIP=0 (fully enabled) then VoodooHDA will not work. Quote Link to comment https://www.insanelymac.com/forum/topic/350993-helpall-could-be-built-except-applealckext/#findComment-2804912 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.