Contribute
Register

B660M-k DDR4 DSDT Compiling

Status
Not open for further replies.
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)
 
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.....?????
 
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.
 
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
 
The method that I explained earlier perfectly works. Thank you anyway Feartech.
 
Last edited:
Status
Not open for further replies.
Back
Top