Jump to content
31 posts in this topic

Recommended Posts

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?

 

@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

 

  • Like 3

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 by miliuco
  • Haha 1
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

  • Sad 1

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 1626338072_2022-03-0911_49_20.thumb.png.5475e559a84cc516b72cdf36e83870ef.png

Edited by superjill
add up files

@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 by miliuco

@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.

@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.

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  

  • 3 weeks later...

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

  • 1 year later...
  • 4 weeks later...
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?

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.

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.

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.

 

1250525500_systemprefs.thumb.png.32be500112b021d83f9046c96c6128bb.png

 

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.

180878602_withapplealc.thumb.png.a05e39114147bf8b07bdba6adf51bb31.png

 

And this is without AppleALC

594719542_withoutapplealc.thumb.png.b7b42c9b7ad024120a53e1b25adec184.png

 

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 by coniman
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.

image.thumb.png.c579b46735aff250b769bea4234fee29.png

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...