olarila.com

Mac OS X x86 - Hackintosh
It is currently 19 Jun 2013, 17:38

All times are UTC [ DST ]




Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
PostPosted: 25 Dec 2011, 02:02 
GeekInTraining

Joined: 06 Nov 2011, 20:57
Posts: 17
Hoping someone could help me or point me in the right direction in editing DSDT for my Laptop.
I have tried to patch it using the DV6 sandy bridge generic patch and DV6T sandy bridge generic patch, both had errors, I would delete the lines that cause the errors to compile.
These experiments failed. I'm not sure if I should just start patching each of the different patches for sandy bridge eg. DTGP, EHCI etc.
Patching them one at a time, compile and try to boot with it. If it boots fine then go on and patch the next...
Is this the method that the experts would recommend?


You do not have the required permissions to view the files attached to this post.

_________________
HP DV7-6B32US
i7-2670QM 2.2ghz
Mobile intel HM65 Express Chipset
Board CT#: PCKVP2A2F1P5YV
Bios: F.02
17" display 1600x900
4Gb DDR3
Intel HD Graphics 3000
Blu-ray player
Broadcom 4313 b/g/n wifi (14e4:4727)
Realtek PCIe GBE ethernet (10ec:8168)


Last edited by stuck on 05 Jan 2012, 18:08, edited 1 time in total.

Top
 Profile  
 
PostPosted: 25 Dec 2011, 13:30 
User avatar
iGenius

Joined: 26 Aug 2011, 23:53
Posts: 3761
Your unedited DSDT has ony one error, just remove the line External (\TNOT).

You can apply various patches and compile only once in the end, unless one of the patches is causing compilation errors, then you need to find the culprit.

Don't apply all the Sandy Bridge patches, just the ones you actually need viewtopic.php?f=19&t=634

_________________
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8


Top
 Profile  
 
PostPosted: 26 Dec 2011, 16:15 
GeekInTraining

Joined: 06 Nov 2011, 20:57
Posts: 17
Thanks for responding Cassio,
How do I know what i actually need?
Do I check the kernel.log to try and figure out where the problem is? Or Is ther some other log file to check?

_________________
HP DV7-6B32US
i7-2670QM 2.2ghz
Mobile intel HM65 Express Chipset
Board CT#: PCKVP2A2F1P5YV
Bios: F.02
17" display 1600x900
4Gb DDR3
Intel HD Graphics 3000
Blu-ray player
Broadcom 4313 b/g/n wifi (14e4:4727)
Realtek PCIe GBE ethernet (10ec:8168)


Top
 Profile  
 
PostPosted: 26 Dec 2011, 18:48 
User avatar
iGenius

Joined: 26 Aug 2011, 23:53
Posts: 3761
See the link in my previous reply. Keep reading after "usual patches".

_________________
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8


Top
 Profile  
 
PostPosted: 28 Dec 2011, 06:26 
GeekInTraining

Joined: 06 Nov 2011, 20:57
Posts: 17
I followed each of the suggestion in the section after usual patches.
1. kextstat shows AppleLPC is loaded - so I guess LPC is not needed?
2. I don't have any HPET problems in boot and no mention of it, in kernel.log - so I guess HPET patch is not needed?
3. I did patch the AICPUPM but did not notice any differences except sleep actually turns off the screen now, but the power light is still on and I can't wake it back up. Kernel log shows "ACPI_SMC_PlatformPluging::startForReal - waitForService(resourceMatching(AppleIntelCPUPowerManagement) timed out" -- before or after the patch.
4. Could not find any references to EHCI or UHCI in kernel.log until I patched AICPUPM, so I applied the EHCI patch, didn't seem to make any difference...
5. Could not find any references to Wake or Wake reason
6. Audio: I couldn't figure out if that applies to intel HD audio or just the Azalia audio?
7. DTGP applied, didn't seem to make a difference?
8. SMBUS, I don't know what the smbus kext does, and didn't read anywhere about whether I need it or not?
9. Shutdown, works fine - so I'm guessing I don't need it...

other errors in kernel.log:
nstat_lookup_entry failed: 2
errors relating to applehdadriver eg. Sound assertion "false ==codecFound" failed in AppleHDADriver at line 1449 goto handler
SNB Framebuffer didnot show up, unload
virtual bool IOHIDEvenSystemUserClient::initWithTask .....: Client task not privileged to open IOHIDSystem for mapping memory
AppleUSBCDC: start - initDevice failed (showed up after patching EHCI)
In the meantime, I'm only able to boot into my Lion disk using: -f cpus=1 busratio=22 arch=i386

_________________
HP DV7-6B32US
i7-2670QM 2.2ghz
Mobile intel HM65 Express Chipset
Board CT#: PCKVP2A2F1P5YV
Bios: F.02
17" display 1600x900
4Gb DDR3
Intel HD Graphics 3000
Blu-ray player
Broadcom 4313 b/g/n wifi (14e4:4727)
Realtek PCIe GBE ethernet (10ec:8168)


Top
 Profile  
 
PostPosted: 28 Dec 2011, 12:48 
User avatar
iGenius

Joined: 26 Aug 2011, 23:53
Posts: 3761
Then you don't need to patch your DSDT.

In "3", after patching AICPUPM you have to remove NullCPUPM, or it will surely make no difference.

You may use "DualLink" patch for your video.

Use "lapic kernel" (Taptun) to be able to boot without cpus=1
http://www.osx86.net/view/1945-os_x_lio ... ative.html

_________________
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8


Top
 Profile  
 
PostPosted: 29 Dec 2011, 04:25 
GeekInTraining

Joined: 06 Nov 2011, 20:57
Posts: 17
Cassio, you are a genius!
Thank you so much.
Just patching DTGP and DualLink on my dsdt got the laptop to boot to full resolution and HDMI properly detects a secondary monitor.
Since I've already patched the AICPUPM sleep works as well. It does seem to take 10-15 seconds for the lights to turn off though. Pressing any key wakes it up immediately.
I am now seeing:
AppleUSBEHCI [0xfff....]: unable to get filterInterruptEventSource and
AppleUSBEHCI [0xfff....]::UIMInitialize - error occurred (0x0...)

Patching EHCI for sandy bridge laptops doesn't seem to fix this.
and the USB ports are useless at this point.

Also I'm not sure if any of this is important?
Transcript Offline - Buffer Pool Allocate [181000] failed
VoodooPS2SynapticsTouchPad loaded
No interval found for . Using 8000000
VoodooPS2Trackpad: Synaptics TouchPad v7.5

I'm off to try the kernel patch to get rid of the cpus=1 problem and finding proper drivers for all wifi and Battery stats etc.

Thanks again.

_________________
HP DV7-6B32US
i7-2670QM 2.2ghz
Mobile intel HM65 Express Chipset
Board CT#: PCKVP2A2F1P5YV
Bios: F.02
17" display 1600x900
4Gb DDR3
Intel HD Graphics 3000
Blu-ray player
Broadcom 4313 b/g/n wifi (14e4:4727)
Realtek PCIe GBE ethernet (10ec:8168)


Top
 Profile  
 
PostPosted: 29 Dec 2011, 14:09 
User avatar
iGenius

Joined: 26 Aug 2011, 23:53
Posts: 3761
stuck wrote:
I am now seeing:
AppleUSBEHCI [0xfff....]: unable to get filterInterruptEventSource and
AppleUSBEHCI [0xfff....]::UIMInitialize - error occurred (0x0...)

Patching EHCI for sandy bridge laptops doesn't seem to fix this.

That's strange, it should.

Try this patch
Code:
into device name_adr 0x001D0000 insert
begin
OperationRegion (EOWN, PCI_Config, 0x68, 0x04)\n
Field (EOWN, ByteAcc, NoLock, Preserve)\n
{\n
            Offset (0x02), \n
    HCBO,   1, \n
            Offset (0x03), \n
    HCOO,   1\n
}
end;
into device name_adr 0x001A0000 insert
begin
OperationRegion (EOWN, PCI_Config, 0x68, 0x04)\n
Field (EOWN, ByteAcc, NoLock, Preserve)\n
{\n
            Offset (0x02), \n
    HCBO,   1, \n
            Offset (0x03), \n
    HCOO,   1\n
}
end;
into definitionblock code_regex . insert
begin
Method (PINI, 0, NotSerialized)\n
{\n
    Store (Zero, \_SB.PCI0.EHC1.HCBO)\n
    Store (One, \_SB.PCI0.EHC1.HCOO)\n
    Store (Zero, \_SB.PCI0.EHC2.HCBO)\n
    Store (One, \_SB.PCI0.EHC2.HCOO)\n
}
end;
into method label _INI insert
begin
PINI ()
end;
into method label _WAK code_regex Return replace_matched
begin
PINI ()\n
Return
end

_________________
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8


Top
 Profile  
 
PostPosted: 29 Dec 2011, 17:28 
User avatar
Staff

Joined: 05 Dec 2010, 21:49
Posts: 1123
Try to add more IRQs in device HPET
http://www.insanelymac.com/forum/index. ... pic=206313

It's like the "IRQs" patch, but insert 4 IRQs instead of 2. Check patches for other HP laptops
http://olarila.com/Packs/HP/DV6%20Sandy ... ENERIC.txt
Code:
into device name_hid PNP0000 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0100 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0B00 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0103 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} removeall_matched;
into device name_hid PNP0103 code_regex Name\s\(([^,]+),\sResourceTemplate\s\(\)\n\s+\{((?:.|\n)*)\}\) replace_matched
begin
Name (%1, ResourceTemplate ()\n
                    {\n
                        IRQNoFlags ()\n
                            {0}\n
                        IRQNoFlags ()\n
                            {8}\n
                        IRQNoFlags ()\n
                            {11}\n
                        IRQNoFlags ()\n
                            {15}\n
%2
})
end


Top
 Profile  
 
PostPosted: 29 Dec 2011, 22:32 
GeekInTraining

Joined: 06 Nov 2011, 20:57
Posts: 17
Thanks for the suggestions Cassio and Oldnapalm,
I will try each of these patches. But I have a question on the HPET patch. My DSDT doesn't have IRQs in the HPET section at all so do I use this "new HPET" patch:
Code:
into device name_hid PNP0103 parent_adr 0x001F0000 remove_entry;
into device name_adr 0x001F0000 insert
begin
Device (HPET)\n
{\n
    Name (_HID, EisaId ("PNP0103"))\n
    Name (CRS, ResourceTemplate ()\n
    {\n
        IRQNoFlags ()\n
            {0}\n
        IRQNoFlags ()\n
            {8}\n
        Memory32Fixed (ReadOnly,\n
            0xFED00000,         // Address Base\n
            0x00000400,         // Address Length\n
            _Y09)\n
    })\n
    Method (_STA, 0, NotSerialized)\n
    {\n
        Return (0x0F)\n
    }\n
    Method (_CRS, 0, NotSerialized)\n
    {\n
        Return (CRS)\n
    }\n
}
end

and just add this section into that patch?
Code:
        IRQNoFlags ()\n
            {11}\n
        IRQNoFlags ()\n
            {15}\n


Or just create a new patch using the link you provided? His code seems to be just a section of the entire patch.

_________________
HP DV7-6B32US
i7-2670QM 2.2ghz
Mobile intel HM65 Express Chipset
Board CT#: PCKVP2A2F1P5YV
Bios: F.02
17" display 1600x900
4Gb DDR3
Intel HD Graphics 3000
Blu-ray player
Broadcom 4313 b/g/n wifi (14e4:4727)
Realtek PCIe GBE ethernet (10ec:8168)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group