Jump to content

DSDT editor and patcher


oldnapalm
 Share

999 posts in this topic

Recommended Posts

Here the ETH0 and ETH1

I use it for my marvell dual LAN.

 

Device location ETH0 --> 0x001C0002

Device location ETH1 --> 0x001C0005

 

ETH0.txt

ETH1.txt

 

Enjoy!

 

Fabio

 

@iFabio

i'm not sure to completely understand; but with this patch is it possible to enable both 88E8056 and 88E8001 via dsdt without editing plist?

Could you explain better (for a poor noob)?

Link to comment
Share on other sites

@iFabio

i'm not sure to completely understand; but with this patch is it possible to enable both 88E8056 and 88E8001 via dsdt without editing plist?

Could you explain better (for a poor noob)?

 

This is for Ethernet built-in.

Is an example of customization, similar to the patch LAN also in this trend...

 

You still need edit the info.plist into the Yukon2 plug-in or use a legacy in E/E

/System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleYukon2.kext/Contents/Info.plist

--> here a pre-edited ready to use info.plist with 88E8056(also 88E8057 no idea if works)

 

 

[size=1]
	<key>Yukon-88E805[b]6[/b]</key>
	<dict>
		<key>CFBundleIdentifier</key>
		<string>com.apple.iokit.AppleYukon2</string>
		<key>EnableLowPwr</key>
		<integer>1</integer>
		<key>IOClass</key>
		<string>yukon2osx</string>
		<key>IOPCIPrimaryMatch</key>
		<string>0x43[b]64[/b]11ab</string>
		<key>IOProviderClass</key>
		<string>IOPCIDevice</string>
		<key>MACNumber</key>
		<integer>1</integer>
		<key>Model</key>
		<string>Yukon Gigabit Adapter 88E805[b]6[/b] Singleport Copper SA</string>
		<key>NetworkNumber</key>
		<integer>1</integer>
		<key>RxDeadman</key>
		<integer>60</integer>
		<key>RxRingGrowOnPause</key>
		<integer>10</integer>
		<key>RxRingSize</key>
		<integer>0</integer>
		<key>RxRingSize_100MBit</key>
		<integer>128</integer>
		<key>RxRingSize_10MBit</key>
		<integer>64</integer>
		<key>RxRingSize_GigaBit</key>
		<integer>256</integer>
		<key>TxRingSize</key>
		<integer>256</integer>
		<key>Vendor</key>
		<string>Marvell</string>
	</dict>
	<key>Yukon-88E805[color="#FF0000"]7[/color]</key>
	<dict>
		<key>CFBundleIdentifier</key>
		<string>com.apple.iokit.AppleYukon2</string>
		<key>EnableLowPwr</key>
		<integer>1</integer>
		<key>IOClass</key>
		<string>yukon2osx</string>
		<key>IOPCIPrimaryMatch</key>
		<string>0x43[color="#8B0000"]80[/color]11ab</string>
		<key>IOProviderClass</key>
		<string>IOPCIDevice</string>
		<key>MACNumber</key>
		<integer>1</integer>
		<key>Model</key>
		<string>Yukon Gigabit Adapter 88E805[color="#8B0000"]7[/color] Singleport Copper SA</string>
		<key>NetworkNumber</key>
		<integer>1</integer>
		<key>RxDeadman</key>
		<integer>60</integer>
		<key>RxRingGrowOnPause</key>
		<integer>10</integer>
		<key>RxRingSize</key>
		<integer>0</integer>
		<key>RxRingSize_100MBit</key>
		<integer>128</integer>
		<key>RxRingSize_10MBit</key>
		<integer>64</integer>
		<key>RxRingSize_GigaBit</key>
		<integer>256</integer>
		<key>TxRingSize</key>
		<integer>256</integer>
		<key>Vendor</key>
		<string>Marvell</string>
	</dict>
[/size]

 

Fabio

 

credits --> How to set the network adapter to en0 with DSDT by Krazubu

Link to comment
Share on other sites

iFabio,

thanks for your answer. I did not realize that the patch was only for Ethernet built-in; I was hoping to avoid editing /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleYukon2.kext/Contents/Info.plist and enable ethernet using only the DSDT

(but I understand it is not possible).

 

PS next time talk in Italian on Italian forum (my English is not very good)

 

thanks again

Link to comment
Share on other sites

...To get what you are looking for (repeat for all tables). And yes the names and addresses will be different (again. It's just an example),

Searched my SSDTs but found nothing.

 

...And they add it by calling Method FPED (in _INI () when available) with:
				Method (_INI, 0, Serialized)
			{
				If (CondRefOf (FPED))
				{
					FPED ()
				}
			}

In short: When you have values that need to overlap... use this. It is a bit complicated to explain, but you may finds additional info / clues in the ACPI specification.

 

Anyway. I hope this helps you to understand what it does, and to fix the errors in your DSDT.

Also i hit on that idea (accidentally) but didn't shure if i'm on right way, but thanks for your explanation, very helpful for future.

Out of curiosity where did you found a method FPED?

May would be better to remove buggy code, it belongs to GFX0 device that is not present in my lap?

Link to comment
Share on other sites

Searched my SSDTs but found nothing.

 

Also i hit on that idea (accidentally) but didn't shure if i'm on right way, but thanks for your explanation, very helpful for future.

Out of curiosity where did you found a method FPED?

May would be better to remove buggy code, it belongs to GFX0 device that is not present in my lap?

Hi Bungo,

 

The name can be literally anything, for as long as it is allowed by the ACPI specs. And I found method FPED in one of my SSDT tables.

 

Cheers

Link to comment
Share on other sites

Hi guys,

I've made a massive, comprehensive compilation of patches (and have written most of them), to patch any HP DV6, DV7 or DV8 notebook with Core i7 and Geforce GT 230M/320M/330M. It's still in beta, and it only works on previously unpatched DSDT, but people have used some pre-beta versions and they seem happy with it :(

Here's the post:

http://www.insanelymac.com/forum/index.php...t&p=1605954

Link to comment
Share on other sites

  • 3 weeks later...

Just extract and save the file without making any change.

 

You are not editing actual DSDT in BIOS, it's just a file that will be used by the boot loader to replace the original when booting Mac OS X. Don't need to backup, you can always extract the original again.

Link to comment
Share on other sites

Is the DSDT Editor still being maintained? I have this weird problem where sometimes at the start of the first scope, e.g where Scope (_SB) should start, only the text [child] appears and the rest of the DSDT is missing.

 

Is the code downloadable (SVN, git)?

 

Cheers

Link to comment
Share on other sites

Yes, it's still being maintained, but we don't have bug reports for a while.

 

Looks like a problem in the parser, maybe your DSL file has some inconsistency. It shouldn't happen if you are opening an AML file.

 

Are you using the latest version?

 

Can you attach the file that causes this problem?

 

The source is not available for now, but if you want to help in development you can contact the author (el coniglio) via PM (he doesn't check the forum very often).

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

I need your help, please.

 

Can someone please take a look at the attached DSDT files.

Is there something to improve? Is anything missing?

I am not able to get sleep working for example. :)

 

The original one is extracted by Ubuntu by a live DVD.

 

My System

 

AMD using latest legacy 10.6 Kernel

Athlon 4400+

Geforce 9800 GT

4GB Ram

Nforce System MCP55 Devices

Marvel 81116 LAn

 

Mainboard: Gigabyte M57SLI-S4

 

Bootloader: AnVAL (ACPI Loader) 5.1.4 32bit

 

Do you need more to know?

 

my log file:

Jan 26 13:12:39 localhost kernel[0]: npvhash=4095
Jan 26 13:12:39 localhost kernel[0]: PAE enabled
Jan 26 13:12:39 localhost kernel[0]: 64 bit mode enabled
Jan 26 13:12:39 localhost kernel[0]: rtclock_init: Taking bus ratio path 1 (AMD Athlon)
Jan 26 13:12:39 localhost kernel[0]: TSC: Reported FSB:  308.246008MHz, corrected FSB:  201.29382MHz
Jan 26 13:12:39 localhost kernel[0]: TSC: Verification of clock speed failed. Fallback correction was performed. Please upgrade bootloader.
Jan 26 13:12:39 localhost kernel[0]: TSC: Frequency =   2311.837893MHz, FSB frequency =  201.29382MHz, bus ratio = 11.5
Jan 26 13:12:39 localhost kernel[0]: Darwin Kernel Version 10.6.0: Sun Jan  9 16:31:48 EST 2011; legacy kernel v6 :xnu-1504.9.26/BUILD/obj/RELEASE_I386
Jan 26 13:12:39 localhost kernel[0]: vm_page_bootstrap: 1021917 free pages and 18467 wired pages
Jan 26 13:12:39 localhost kernel[0]: standard timeslicing quantum is 10000 us
Jan 26 13:12:39 localhost kernel[0]: mig_table_max_displ = 73
Jan 26 13:12:39 localhost kernel[0]: Local APIC version 0x10, 0x14 or more expected
Jan 26 13:12:39 localhost kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelCPUPowerManagement
Jan 26 13:12:39 localhost kernel[0]: [sleepEnabler] Registering PowerManagement dispatch table...
Jan 26 13:12:39 localhost kernel[0]: [sleepEnabler] To disable (if the kernel panics), please specify the boot argument pmVersion=0
Jan 26 13:12:39 localhost kernel[0]: Warning: Version mis-match between Kernel and CPU PM (0x	  15 != 0x	  15)
Jan 26 13:12:39 localhost kernel[0]: [sleepEnabler] Calling pmInitComplete()...
Jan 26 13:12:39 localhost kernel[0]: AppleACPICPU: ProcessorId=0 LocalApicId=0 Enabled
Jan 26 13:12:39 localhost kernel[0]: AppleACPICPU: ProcessorId=1 LocalApicId=1 Enabled
Jan 26 13:12:39 localhost kernel[0]: AppleACPICPU: ProcessorId=2 LocalApicId=2 Disabled
Jan 26 13:12:39 localhost kernel[0]: AppleACPICPU: ProcessorId=3 LocalApicId=3 Disabled
Jan 26 13:12:39 localhost kernel[0]: calling mpo_policy_init for Quarantine
Jan 26 13:12:39 localhost kernel[0]: Security policy loaded: Quarantine policy (Quarantine)
Jan 26 13:12:39 localhost kernel[0]: calling mpo_policy_init for Sandbox
Jan 26 13:12:39 localhost kernel[0]: Security policy loaded: Seatbelt sandbox policy (Sandbox)
Jan 26 13:12:39 localhost kernel[0]: calling mpo_policy_init for TMSafetyNet
Jan 26 13:12:39 localhost kernel[0]: Security policy loaded: Safety net for Time Machine (TMSafetyNet)
Jan 26 13:12:39 localhost kernel[0]: Copyright © 1982, 1986, 1989, 1991, 1993
Jan 26 13:12:39 localhost kernel[0]: The Regents of the University of California. All rights reserved.
Jan 26 13:12:39 localhost kernel[0]: MAC Framework successfully initialized
Jan 26 13:12:39 localhost kernel[0]: using 16384 buffer headers and 4096 cluster IO buffer headers
Jan 26 13:12:39 localhost kernel[0]: Unsynchronized  TSC for cpu 1: 0x0000001c2e7f1a6f, delta 0xffffffffffcddb4c
Jan 26 13:12:39 localhost kernel[0]: IOAPIC: Version 0x11 Vectors 64:87
Jan 26 13:12:39 localhost kernel[0]: ACPI: System State [s0 S3 S4 S5] (S3)
Jan 26 13:12:39 localhost kernel[0]: RTC: Only single RAM bank (128 bytes)
Jan 26 13:12:39 localhost kernel[0]: FakeSMC: Opensource SMC device emulator by netkas © 2009
Jan 26 13:12:39 localhost kernel[0]: FakeSMC: Modified for plugins support by mozodojo © 2010 v3.0
Jan 26 13:12:39 localhost kernel[0]: FakeSMC: Idea of FakeSMC plugins and code sample by usr-sse2
Jan 26 13:12:39 localhost kernel[0]: FakeSMC: Thanks to slice for help with hardware support code and plugins
Jan 26 13:12:39 localhost kernel[0]: FakeSMCDevice: 17 keys added
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: sata phy reset done.
Jan 26 13:12:39: --- last message repeated 2 times ---
Jan 26 13:12:39 localhost kernel[0]: USBF:	0.529	Attempting to get EHCI Controller from BIOS
Jan 26 13:12:39 localhost kernel[0]: USBF:	0.529	USBLEGCTLSTS value 0xe0040000
Jan 26 13:12:39 localhost kernel[0]: USBF:	0.529	acquireOSOwnership done - value 0x1000001
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: found 1 units.
Jan 26 13:12:39: --- last message repeated 1 time ---
Jan 26 13:12:39 localhost kernel[0]: FireWire runtime power conservation disabled. (2)
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: NVIDIA nForce MCP 55 Serial ATA by MeDevil (CMD 0xa800, CTR 0xac00, IRQ 23, BM 0xb800)
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: found 1 units.
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: found 2 units.
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: NVIDIA nForce MCP 55 by MeDevil (CMD 0x1f0, CTR 0x3f4, IRQ 14, BM 0xf000)
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: NVIDIA nForce MCP 55 Serial ATA by MeDevil (CMD 0xb000, CTR 0xb400, IRQ 23, BM 0xb808)
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: NVIDIA nForce MCP 55 Serial ATA by MeDevil (CMD 0xbc00, CTR 0xc000, IRQ 23, BM 0xcc00)
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: warning: phy connection failed. status=0x00000000
Jan 26 13:12:39: --- last message repeated 2 times ---
Jan 26 13:12:39 localhost kernel[0]: AppleNForceATA: found 0 units.
Jan 26 13:12:39: --- last message repeated 2 times ---
Jan 26 13:12:39 localhost kernel[0]: FireWire (OHCI) TI ID 8024 PCI now active, GUID 001a4d5600ed34f4; max speed s400.
Jan 26 13:12:39 localhost kernel[0]: IT87x: found ITE IT8716F
Jan 26 13:12:39 localhost kernel[0]: mbinit: done (64 MB memory set for mbuf pool)
Jan 26 13:12:39 localhost kernel[0]: From path: "uuid", 
Jan 26 13:12:39 localhost kernel[0]: Waiting for boot volume with UUID C2BD4AB8-4D30-302C-B1AA-867CAD8B5FE6
Jan 26 13:12:39 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
Jan 26 13:12:39 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib kmod start
Jan 26 13:12:39 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeeded
Jan 26 13:12:39 localhost kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SAT1@5/AppleNForceATARoot/PRI0@0/AppleNForceATA/ATADeviceNub@0/AppleATADiskDriver/IOATABlockStorageDevice/IOBlockStorageDriver/SAMSUNG HD502IJ SAMSUNG HD502IJ/IOGUIDPartitionScheme/Apple_HFS_Untitled_2@3
Jan 26 13:12:39 localhost kernel[0]: BSD root: disk0s3, major 14, minor 5
Jan 26 13:12:39 localhost kernel[0]: jnl: unknown-dev: replay_journal: from: 262656 to: 2227712 (joffset 0x129000)
Jan 26 13:12:39 localhost kernel[0]: jnl: unknown-dev: journal replay done.
Jan 26 13:12:39 localhost kernel[0]: warning: kernel was not built with custom dyld blob
Jan 26 13:12:39 localhost kernel[0]: warning: using standard dyld with patcher enabled
Jan 26 13:12:39 localhost kernel[0]: hfs: Removed 2 orphaned / unlinked files and 0 directories 
Jan 26 13:12:40 localhost kernel[0]: systemShutdown false
Jan 26 13:12:44 localhost kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelMeromProfile
Jan 26 13:12:44 localhost kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelNehalemProfile
Jan 26 13:12:44 localhost kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelPenrynProfile
Jan 26 13:12:44 localhost kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelYonahProfile
Jan 26 13:12:44 localhost kernel[0]: Waiting for DSMOS...
Jan 26 13:12:44 localhost kernel[0]: Decryption hasn't succeeded yet (probably will retry)
Jan 26 13:12:44 localhost kernel[0]: patch_exec_obj_segment failed
Jan 26 13:12:44 localhost kernel[0]: map_segment failed
Jan 26 13:12:44 localhost kernel[0]: Decryption hasn't succeeded yet (probably will retry)
Jan 26 13:12:44 localhost kernel[0]: patch_exec_obj_segment failed
Jan 26 13:12:44 localhost kernel[0]: map_segment failed
Jan 26 13:12:45 ServerAdmins-Mac kernel[0]: NTFS driver 3.3 [Flags: R/W].
Jan 26 13:12:45 ServerAdmins-Mac kernel[0]: NTFS volume name , version 3.1.
Jan 26 13:12:45 ServerAdmins-Mac kernel[0]: NTFS volume name Volume, version 3.1.
Jan 26 13:12:45 ServerAdmins-Mac kernel[0]: jnl: disk0s4: replay_journal: from: 20788736 to: 20875264 (joffset 0xd63000)
Jan 26 13:12:47 ServerAdmins-Mac kernel[0]: NTFS volume name Volume2, version 3.1.
Jan 26 13:12:47 ServerAdmins-Mac kernel[0]: jnl: disk0s4: journal replay done.
Jan 26 13:12:47 ServerAdmins-Mac kernel[0]: Apple16X50ACPI1: Identified Serial Port on ACPI Device=UAR1
Jan 26 13:12:47 ServerAdmins-Mac kernel[0]: Apple16X50UARTSync1: Detected 16550AF/C/CF FIFO=16 MaxBaud=115200
Jan 26 13:12:47 ServerAdmins-Mac kernel[0]: Previous Shutdown Cause: 3
Jan 26 13:12:47 ServerAdmins-Mac kernel[0]: Decryption hasn't succeeded yet (probably will retry)
Jan 26 13:12:47 ServerAdmins-Mac kernel[0]: patch_exec_obj_segment failed
Jan 26 13:12:47 ServerAdmins-Mac kernel[0]: map_segment failed
Jan 26 13:12:48 ServerAdmins-Mac kernel[0]: NVDANV50HAL loaded and registered.
Jan 26 13:12:48 ServerAdmins-Mac kernel[0]: nForceLAN: found nVidia MCP55 Ethernet Controller device 10de:0373 with flags 0x010937fe
Jan 26 13:12:48 ServerAdmins-Mac kernel[0]: nForceLAN: Version 0.64.5 starting
Jan 26 13:12:52 ServerAdmins-Mac kernel[0]: ACPI_SMC_PlatformPlugin::start - waitForService(resourceMatching(AppleIntelCPUPowerManagement) timed out
Jan 26 13:12:52 ServerAdmins-Mac kernel[0]: WARNING: ACPI_SMC_PlatformPlugin - getCPUIDInfo unknown CPU family: family 0xf, model 0x6b
Jan 26 13:12:52 ServerAdmins-Mac kernel[0]: -- power management may be incomplete or unsupported
Jan 26 13:12:52 ServerAdmins-Mac kernel[0]: DSMOS has arrived
Jan 26 13:12:52 ServerAdmins-Mac kernel[0]: nForceLAN: Ethernet address 00:1d:7d:91:6d:76
Jan 26 13:12:52 ServerAdmins-Mac kernel[0]: nForceLAN(en0): enabling interrupts with mask: 0x000000df and msiEnable: 0x00000007
Jan 26 13:12:52 ServerAdmins-Mac kernel[0]: nForceLAN(en0): Network link down.
Jan 26 13:12:55 ServerAdmins-Mac kernel[0]: nForceLAN(en0): Link speed now 100Mbps(duplex = Full, flow control = Yes), code 0x10064.
Jan 26 13:13:05 ServerAdmins-Mac kernel[0]: AppleNForceATA: found 0 units.
Jan 26 13:13:36 ServerAdmins-Mac kernel[0]: AppleNForceATA: found 0 units.
Jan 26 13:17:34 ServerAdmins-Mac kernel[0]: IOSCSIPeripheralDeviceType05::setPowerState(0x6f51100, 4 -> 3) timed out after 100481 ms
Jan 26 13:22:35 ServerAdmins-Mac kernel[0]: IOSCSIPeripheralDeviceType05::setPowerState(0x6f51100, 3 -> 2) timed out after 100553 ms
Jan 26 13:27:35 ServerAdmins-Mac kernel[0]: IOSCSIPeripheralDeviceType05::setPowerState(0x6f51100, 2 -> 1) timed out after 100458 ms

 

 

Many thanks in advance!!!

 

Greetings

 

URBANsUNITED

DSDT_URBANsUNITED.zip

Link to comment
Share on other sites

  • 5 weeks later...

Where it warns

Not all control paths return a value (_CST)

Reserved method must return a value (Package required for _CST)

you should add

Return (Package (Zero) {})

or

Return (Package (One) { 0x00 })

and where it warns

Not all control paths return a value (_ROM)

Reserved method must return a value (Buffer required for _ROM)

you should add

Return (Buffer (Zero) {})

or

Return (Buffer (One) { 0x00 })

 

But I think it won't make much of a difference, other than suppressing the warnings.

micro_dsdt.dsl.zip

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...