Contribute
Register

ETHERNET IN DSDT

Status
Not open for further replies.
Joined
Aug 8, 2011
Messages
39
Motherboard
OSX CATALINA 15.3
CPU
CORE i9 9900K LGA 1151
Graphics
RX 5600 TX
Mac
  1. iMac
Mobile Phone
  1. Android
Finally I success put in the code in dsdt and my ethernet card now is really BUILTIN CARD
Many Programs do activation process generating an ID for the MAC ADDRESS.
And these is the fix of the problem
Use you Download DSDTSE Editor, search the tree and look the root of your card, you can see the root and features, like data and string of any device
When you find that search the Root in your dsdt and print this code

VERY IMPORTANT BACK UP YOUR ORIGINAL DSDT FILE

Code:
Device (PEX4)
            {
                Name (_ADR, 0x001C0004)
                Method (_STA, 0, NotSerialized)
                {
                    Return (0x0F)
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x09, 
                        0x05
                    })
                }
                
                Device (LAN0) // <-- Ethernet port 1
                {
                    Name (_ADR, 0x00000000)
                    Name (_PRW, Package (0x02)
                    {
                        0x0B, 
                        0x04
                    })

                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x08)
                            {
                                "built-in", 
                                Buffer (One)
                                {
                                    0x01
                                }, 

                                "location", 
                                Buffer (0x02)
                                {
                                    "1"
                                }, 

                                "device_type", 
                                Buffer (0x09)
                                {
                                    "ethernet"
                                }, 

                                "name", 
                                Buffer (0x22)
                                {
                                    "Realtek RTL8111/8168B PCI-E Gigabit"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
                }
            }

            Device (PEX5)
            {
                Name (_ADR, 0x001C0005)
                Method (_STA, 0, NotSerialized)
                {
                    Return (0x0F)
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x09, 
                        0x05
                    })
                }
                
                Device (LAN1) // <-- Ethernet port 2
                {
                    Name (_ADR, 0x00000000)
                    Name (_PRW, Package (0x02)
                    {
                        0x0B, 
                        0x04
                    })

                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x08)
                            {
                                "built-in", 
                                Buffer (One)
                                {
                                    0x01
                                }, 

                                "location", 
                                Buffer (0x02)
                                {
                                    "2"
                                }, 

                                "device_type", 
                                Buffer (0x09)
                                {
                                    "ethernet"
                                }, 

                                "name", 
                                Buffer (0x22)
                                {
                                    "Realtek RTL8111/8168B PCI-E Gigabit"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
                }
            }


The original source is a gigabyte ep45 ds3r motherboard buy I use it in a gigabyte GAX58A-UD3R
This is for two cards versions motherboards, if you have only one, paste only the first, change the name of the Ethernet card for yours
Clear the "ethernet port 1" and "ethernet port 2"
COMPILE AND INSTALL YOUR NEW DSDT

Sorry for my bad english I do my best
AND GOOD LUCK
 
Hi,
I'm trying to get the NIC to work, but I get some compile errors:

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20091214 [Dec 16 2009]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 4.0

/Users/awand/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 397: Notify (\_SB.PCI0.PEX5, 0x02)
Error 4064 - Object does not exist ^ (\_SB.PCI0.PEX5)

/Users/awand/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 1645: Device (PEX5)
Error 4096 - syntax error, unexpected PARSEOP_DEVICE, expecting '{' ^

ASL Input: /Users/awand/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl - 6168 lines, 206644 bytes, 2759 keywords
Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 18 Optimizations

Any idea what's wrong? See attached dsl file

Motherboard is GA-X58A-UDR3.

Thanks!
Andy
 

Attachments

  • dsdt_nic.dsl
    201.8 KB · Views: 231
I'd be very thankful if someone could spare some time and just have a quick look through my dsl file to see what I'm doing wrong. Probably just a silly thing, but I can't see what I'm doing wrong.

Would be nice to hear if I'm doing something wrong or my compiler (DSDTSE) has some wrong enviroment variables or other problems that I wouldn't know of. :)

Thanks!
Andy
 
I made it work. For some reason I had to use the compare windows of DSDTSE editor to be able to compile my DSDT without errors. See my other post about Dual GFX to get my DSDT files.

/Andy
 
Status
Not open for further replies.
Back
Top