Contribute
Register

B660M-k DDR4 DSDT Compiling

Joined
Jul 17, 2022
Messages
8
Motherboard
B660m-k > Need make and full model name > See Rules!
CPU
i5-12400F
Graphics
GTX 1080 Ti
you need to be editing the de compiled dsl file
Replaced the faulty code with this one (missing _T_0)
Code:
While(One)
                {
                    Store(ToInteger(Arg2), _T_0)
                    If(LEqual(_T_0, Zero))
                    {
                        Store("NBCI-Func Zero", Debug)
                        Return(Buffer(0x04)
                        {
                            0x21, 0x00, 0x11, 0x00
                        })
                    }
                    Else
                    {
                        If(LEqual(_T_0, 0x10))
                        {
                            Store("NBCI-Func 0x10", Debug)
                            CreateWordField(Arg3, 0x02, USRG)
                            CreateField(Arg3,0x0C,0x04,OBJS)
                            If(LEqual(USRG, 0x4452))
                            {
                                If(LEqual(ToInteger(OBJS), Zero))
                                {
                                    Store(NBSH, Debug)
                                    Return(NBSH)
                                }
                            }
                        }
                    }
                }
            }

Now it is compiling without errors, it is good or it could be done in a better way? (or working still have to test)
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
29,040
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
Replaced the faulty code with this one (missing _T_0)
Code:
While(One)
                {
                    Store(ToInteger(Arg2), _T_0)
                    If(LEqual(_T_0, Zero))
                    {
                        Store("NBCI-Func Zero", Debug)
                        Return(Buffer(0x04)
                        {
                            0x21, 0x00, 0x11, 0x00
                        })
                    }
                    Else
                    {
                        If(LEqual(_T_0, 0x10))
                        {
                            Store("NBCI-Func 0x10", Debug)
                            CreateWordField(Arg3, 0x02, USRG)
                            CreateField(Arg3,0x0C,0x04,OBJS)
                            If(LEqual(USRG, 0x4452))
                            {
                                If(LEqual(ToInteger(OBJS), Zero))
                                {
                                    Store(NBSH, Debug)
                                    Return(NBSH)
                                }
                            }
                        }
                    }
                }
            }

Now it is compiling without errors, it is good or it could be done in a better way? (or working still have to test)
depends on exactly what it is you are trying to fix on your hackintosh.....?????
 
Joined
Jul 17, 2022
Messages
8
Motherboard
B660m-k > Need make and full model name > See Rules!
CPU
i5-12400F
Graphics
GTX 1080 Ti
A little update on the problem, just to keep up the hopes to everyone that is trying to do this.
The DSDT I made in that way doesn't work (as expected) because the iASL compiler has some internal problems in decompiling the code, it eats away 400-500kbyte of .dsl data from the original DSDT and when you try to recompile it without touching anything, 4kbytes disappear.
You can circumvent this by manually editing the original .aml file with an hex editor.
You can do this by recompiling the modified DSDT with the modification you've done.
Comparing hex to hex with the original and copypasting the modified code into the original aml without actually decompiling/recompiling the final dsdt you are going to use.
Thanks to this you will avoid all sort of errors and incompatibilies.

I'll update the topic if it will work correctly.
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
29,040
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
A little update on the problem, just to keep up the hopes to everyone that is trying to do this.
The DSDT I made in that way doesn't work (as expected) because the iASL compiler has some internal problems in decompiling the code, it eats away 400-500kbyte of .dsl data from the original DSDT and when you try to recompile it without touching anything, 4kbytes disappear.
You can circumvent this by manually editing the original .aml file with an hex editor.
You can do this by recompiling the modified DSDT with the modification you've done.
Comparing hex to hex with the original and copypasting the modified code into the original aml without actually decompiling/recompiling the final dsdt you are going to use.
Thanks to this you will avoid all sort of errors and incompatibilies.

I'll update the topic if it will work correctly.
this tool:

can extract your DSDT and then use that DSDT to make your needed required SSDT's and required config.plist renames for your hackintosh
 
Joined
Jul 17, 2022
Messages
8
Motherboard
B660m-k > Need make and full model name > See Rules!
CPU
i5-12400F
Graphics
GTX 1080 Ti
The method that I explained earlier perfectly works. Thank you anyway Feartech.
 
Last edited:
Top