Jump to content

AnVAL (ACPI Loader)


valv
 Share

1,538 posts in this topic

Recommended Posts

but icant deal with kernel compilation :D

 

 

yep, exactly. So now we have choice:
  1. stick with wrong values and let the kernel correct them
  2. or correct the kernel and let it trust the boot-loader's values

sure we correct kernel but i didnt compiled any kernel before ;)

so i have no idea on how to apply patch diff to source and compile

can you do it for me :wacko:

Link to comment
Share on other sites

Hello valv.

 

Sorry but your last release dont resolved my problems:

 

cracky sound (only when something starting play, and when I start play second source

 

time is going faster

 

cracky preview on movies.

 

And why I have 665mhz (sometimes 666) RAM speed, but under Windows are 667??

 

Here my all Extra and IOReg.

 

Extra.zip

 

IOReg.zip

 

Last login: Mon Jan 10 20:20:43 on console

/Extra/Util/bdmesg ; exit;

MacBook-Pro-wojnar:~ wojnar$ /Extra/Util/bdmesg ; exit;

Config: [hd(0,2)/Extra/com.apple.Boot.plist] 846 bytes.

CPU: Mobile Intel® Core™2 Duo CPU     T8300  @ 2.40GHz

CPU: Thermal Monitor:              TM, TM2, PROCHOT, FERR

max: 12 current: 6

CPU: Tjmax ~ 104°C 	           Temperature= ~ 44°C

CPU: IDA:                          Enabled!

CPU: Vendor/Family/ExtFamily:      0x756e6547/0x6/0x0

CPU: Model/ExtModel/Stepping:      0x17/0x1/0x6

CPU: Multipliers x10:              max=120, min=60

CPU: MaxDiv/CurrDiv:               0x0/0x0

CPU: TSCFreq:                      2394MHz

CPU: CPUFreq:                      2394MHz

CPU: FSBFreq:                      199MHz

CPU: SLFM:                         1

CPU: Enhanced SpeedStep:           1

CPU: NoCores/NoThreads:            2/2

CPU: Features:                     0x26d803a3

Chipset is 965GM (pci id 0x2a008086)

We have an NVIDIA Card

Creating 2 Mode Tables

New table with id : 0

New table with id : 1

First Standard VESA Table at offset 0x7bbb

Second Standard VESA Table at offset 0x4832

Table #0 has 16 modes

Table #1 has 32 modes

Aspect Ratio is 16/10

Patching Table #0 : 

Mode 1024x768 -> 1440x900 (1047 1183 1343 770 776 805)

Patching Table #1 : 

Mode 640x200 -> 640x400 (664 672 720 408 H- V+)

Mode 640x350 -> 640x400 (664 678 720 408 H- V+)

Mode 640x480 -> 640x400 (669 685 720 408 H- V+)

Mode 640x480 -> 640x400 (669 685 720 408 H- V+)

Mode 800x600 -> 800x500 (836 852 900 512 H- V+)

Mode 800x600 -> 800x500 (836 852 900 512 H- V+)

Mode 1024x768 -> 1024x640 (1071 1087 1152 656 H- V+)

Mode 1024x768 -> 1024x640 (1071 1087 1152 656 H- V+)

Mode 1280x1024 -> 1280x800 (1343 1359 1440 823 H- V+)

Mode 1280x1024 -> 1280x800 (1343 1359 1440 823 H- V+)

Mode 1400x1050 -> 1400x875 (1474 1488 1575 908 H+ V+)

Mode 1600x1200 -> 1600x1000 (1674 1690 1800 1025 H- V+)

Mode 2048x1536 -> 2048x1280 (2144 2160 2048 1314 H+ V+)

Theme: [hd(0,2)]/Extra/Themes/Mint

Resolution : 1440x900 (Graphics Mode key)

Theme: [hd(0,2)]/Extra/Themes/Mint

Found mode 1440x900 in VESA Table

Config: [hd(0,2)/Extra/com.apple.Boot.plist] 846 bytes.

Setting boot-uuid to: F959FE65-8D2E-348F-B794-62B4A262E3CA

Closing VBios

Table #0 : Freeing backup	[OK]

Table #0 : Freeing		[OK]

Table #1 : Freeing backup	[OK]

Table #1 : Freeing		[OK]

Freeing map			[OK]

header read size 200

Incorrect image signature

Loading Darwin 10.6

Loading kernel /mach_kernel

LoadDrivers: /Extra/Extensions.mkext

LoadDrivers: /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext

ACPI: [hd(0,2)/Extra/DSDT.aml] 27423 bytes.

Using PCI-Root-UID value: 0

LAN Controller [10ec:8168] :: PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)

Setting up lan keys

SMBios: [hd(0,2)/Extra/smbios.plist] 646 bytes.

Intel GM965/GL960 DRAM Controller [8086:2a00] at 00:00.0

Frequency detected: 332 MHz (665) Dual Channel 

CAS:5 tRC:5 tRP:5 RAS:15 (5-5-5-15)

Slot: 0 Type 19 1024MB (DDR2 SDRAM) 666MHz Vendor=Samsung

     PartNo=M470T2953EZ3-CE63E SerialNo=74225C19

Slot: 2 Type 19 2048MB (DDR2 SDRAM) 666MHz Vendor=Samsung

     PartNo=M470T5663CZ3-CE63C SerialNo=261D3F87

Patched DMI Table

Found SMBIOS System Information Table 1

Customizing SystemID with : 108adec0-ab9b-11dc-805a-efb9f38380ca

ACPI: [hd(0,2)/Extra/DSDT.aml] 27423 bytes.

ACPI: [hd(0,2)/Extra/SSDT-0.aml] 733 bytes.

Table /Extra/SSDT-0.aml read and stored at: 1ad8000

ACPI: [hd(0,2)/Extra/SSDT-1.aml] 1254 bytes.

Table /Extra/SSDT-1.aml read and stored at: 1ad9000

ACPI: [hd(0,2)/Extra/SSDT-2.aml] 1514 bytes.

Table /Extra/SSDT-2.aml read and stored at: 1ada000

ACPI: [hd(0,2)/Extra/SSDT-3.aml] 700 bytes.

Table /Extra/SSDT-3.aml read and stored at: 1adb000

ACPI: [hd(0,2)/Extra/SSDT-4.aml] 133 bytes.

Table /Extra/SSDT-4.aml read and stored at: 1adc000

ACPI: [hd(0,2)/Extra/SSDT-5.aml] 200 bytes.

Table /Extra/SSDT-5.aml read and stored at: 1add000

FADT: changing Preferred_PM_Profile from 0x00 to 0x02

FADT: Restart Fix applied !

FADT: Restart Fix applied !

Patched ACPI version 2 DSDT

Starting Darwin x86_64



logout



[Proces zakończony]



 

 

 

 

PS. I know I should use ForceFSB=184, but now is faster. ;)

 

Thanks

 

 

 

 

BTW. Sometimes when I work on DSDT and I change repleace DSDT in my Extra I got this:

 

post-256765-1294692834_thumb.jpg

 

 

could you fix that.

 

 

 

 

 

One more Big thanks for you hard work.

Link to comment
Share on other sites

keep in mind that this version has no kabyl's ati code merged yet.

 

Took my first dive into chameleon source editing last night and added Kabyl's ati code to your branch. ;)

 

It works but I have one problem valv - I'm using UseAtiROM=Yes and appleROm in Extra.

and I'm not sure it's actually using the ROM.

 

CPU: Intel® Core™2 Quad  CPU   Q9450  @ 2.66GHz
CPU: Thermal Monitor:              TM, TM2, PROCHOT, FERR
max: 8 current: 6
CPU: Tjmax ~ 100°C 	           Temperature= ~ 45°C
CPU: Attempting to enable IDA      Failed!
CPU: Vendor/Family/ExtFamily:      0x756e6547/0x6/0x0
CPU: Model/ExtModel/Stepping:      0x17/0x1/0x7
CPU: Multipliers x10:              max=80, min=60
CPU: MaxDiv/CurrDiv:               0x0/0x0
CPU: TSCFreq:                      3199MHz
CPU: CPUFreq:                      3199MHz
CPU: FSBFreq:                      399MHz
CPU: Enhanced SpeedStep:           1
CPU: NoCores/NoThreads:            4/4
CPU: Features:                     0x26d803a1
Config: [hd(0,3)/Extra/com.apple.Boot.plist] 1212 bytes.
Chipset is P45 (pci id 0x2e208086)
We have an AtomBios Card
Creating 1 Mode Tables
New table with id : 0
Standard VESA Table at offset * 0x94
Using DTD Format modelines
EDID claims 1 more blocks left
Aspect Ratio is 16/9
Patching Table #0 : 
Mode 320x200 -> 1920x1080
Theme: [hd(0,3)]/Extra/Themes/Daves
EDID claims 1 more blocks left
Resolution : 1920x1080 (EDID)
Theme: [hd(0,3)]/Extra/Themes/Daves
Found mode 1920x1080 in VESA Table
Config: [hd(0,3)/Extra/com.apple.Boot.plist] 1212 bytes.
EDID claims 1 more blocks left
Closing VBios
Table #0 : Freeing backup	[OK]
Table #0 : Freeing		[OK]
Freeing map			[OK]
Loading Darwin 10.6
Loading kernel com.apple.boot.P/mach_kernel
LoadDrivers: /Extra/Extensions.mkext
LoadDrivers: /com.apple.boot.P/System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext
ACPI: [hd(0,3)/Extra/DSDT.aml] 45310 bytes.
Using PCI-Root-UID value: 0
[color="#ff0000"]ATI card POSTed, reading VBIOS from legacy space
ATI Juniper ATI Radeon HD 5700 Series 1024MB (Vervet) [1002:68b8] (subsys [0000:0000]):: [/color]PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)
LAN Controller [1969:1026] :: PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0)
Setting up lan keys
Intel P45/G45 DRAM Controller [8086:2e20] at 00:00.0
Frequency detected: 533 MHz (1066) Dual Channel 
CAS:7 tRC:7 tRP:7 RAS:24 (7-7-7-24)
Slot: 0 Type 19 2048MB (DDR2 SDRAM) 1066MHz Vendor=Crucial Technology
     PartNo=CT25664AA1067.M16FH SerialNo=00000000
Slot: 2 Type 19 2048MB (DDR2 SDRAM) 1066MHz Vendor=Crucial Technology
     PartNo=CT25664AA1067.M16FH SerialNo=00000000
Patched DMI Table
Found SMBIOS System Information Table 1
Customizing SystemID with : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ACPI: [hd(0,3)/Extra/DSDT.aml] 45310 bytes.
Converted ACPI V2 FADT to ACPI V4 FADT
FADT: Restart Fix applied !
Found ACPI CPU: P001
Found ACPI CPU: P002
Found ACPI CPU: P003
Found ACPI CPU: P004
C-State: Adding 3 states: C1 C2 C3  @ c49000
Voltage: min= 987mV, max= 1112mV
Model detected: iMac9,1
P-State: Added [Frequency 3192 MHz	FID 0x8 	VID 0x20]
P-State: Added [Frequency 2793 MHz	FID 0x7 	VID 0x1d]
P-State: Added [Frequency 2394 MHz	FID 0x6 	VID 0x18]
P-States: 3 states were succefully generated @ c4a000
FADT: Restart Fix applied !
Patched ACPI version 2 DSDT
Starting Darwin x86_64
UHCI controller [8086:3a37] at 00:1a.0 base 540(a801)
UHCI controller [8086:3a38] at 00:1a.1 base 544(a881)
UHCI controller [8086:3a39] at 00:1a.2 base 560(ac01)
EHCI controller [8086:3a3c] at 00:1a.7 DMA @fe7ffc00
Setting Legacy USB Off on controller [8086:3a3c] at 00:1a.7
Legacy USB Off Done
UHCI controller [8086:3a34] at 00:1d.0 base 504(a081)
UHCI controller [8086:3a35] at 00:1d.1 base 520(a401)
UHCI controller [8086:3a36] at 00:1d.2 base 524(a481)
EHCI controller [8086:3a3a] at 00:1d.7 DMA @fe7ff800
Setting Legacy USB Off on controller [8086:3a3a] at 00:1d.7
Legacy USB Off Done

 

Rom in extra as : 1002_68b8_29911682.rom

 

I'm going to have another look at it later.

 

D

Link to comment
Share on other sites

valv it's cool to see you've helped out with the AMD detection - I've just only glanced over this thread a little - that stuff definitely helps - no more need for the kernel to cover that part. :) I'm gonna check out your branch later today.

 

I think I saw a reference regarding the openbsd/freebsd stuff with chameleon - the last diff I posted is for an old version, but you can easily update it to work with the current RC5 builds. If that's something someone wants done I can take care of that, no prob.

Link to comment
Share on other sites

PS. I know I should use ForceFSB=184, but now is faster. ;)
with latest, u should try to boot without overwriting the default value. Boot-loader would take care of it. And the issue would most likely disappear.

 

Rom in extra as : 1002_68b8_29911682.rom
try renaming it to <your_device_id_only>.ROM

I mean w/o vendor and/or whatever. I think 68b8.ROM or 68B8.ROM/rom ;)

 

A question... do you know if such bootloader works for 10.5.6/.8 too ?
it should work.

 

I'm gonna check out your branch later today.
just before u begin, give me one second to upload latest (fixed Mohamed's issue)
I think I saw a reference regarding the openbsd/freebsd stuff with chameleon - the last diff I posted is for an old version, but you can easily update it to work with the current RC5 builds. If that's something someone wants done I can take care of that, no prob.
yes, and I 'd like to thank u again, being a bsd user. That is, I already made the necessary changes to it (well, I think so). IIRC, There were problems with magic numbers. But hey, u can look at the code and tell me if something looks wrong to u ;)

Edit: branch up to date.

Link to comment
Share on other sites

with latest, u should try to boot without overwriting the default value. Boot-loader would take care of it. And the issue would most likely disappear.

 

try renaming it to <your_device_id_only>.ROM

I mean w/o vendor and/or whatever. I think 68b8.ROM or 68B8.ROM/rom ;)

 

it should work.

 

just before u begin, give me one second to upload latest (fixed Mohamed's issue)

yes, and I 'd like to thank u again, being a bsd user. That is, I already made the necessary changes to it (well, I think so). IIRC, There were problems with magic numbers. But hey, u can look at the code and tell me if something looks wrong to u ;)

Edit: branch up to date.

 

Heh, yeah it looks like you already covered it since i looked at your branch. Nice that blackosx made the icons as well for the new default theme ;)

Link to comment
Share on other sites

indeed. blackosx is willing to make to make it standard (when he time get) for the upcoming/old themes. Kindly offered from him ;)

btw, I was following the guide from boeaja about building the kernel for our friend Mohamed. But I was stuck with some errors. Do u see/know how I could do this ? I must confess, I never needed to.

Link to comment
Share on other sites

indeed. blackosx is willing to make to make it standard (when he time get) for the upcoming/old themes. Kindly offered from him :(

btw, I was following the guide from boeaja about building the kernel for our friend Mohamed. But I was stuck with some errors. Do u see/know how I could do this ? I must confess, I never needed to.

 

Sure, PM me with the errors you are getting. Pretty much all you need for compiling the 10.6 based xnu right now are migcom,decomment,relpath (all apps from the bootstrap_cmds tarball), setsegname and kextsymboltool from a 10.6 release of kext_tools, and the ctf* programs from dtrace. i usually build the libiberty static lib that dtrace needs from gnu binutils, but im sure you can get it from other places as well. PM me more info, let's not get too off topic in this thread here :-P

Link to comment
Share on other sites

let's not get too off topic in this thread here :-P
alright, let me try it again in 32bit mode and I 'll pm from there
Link to comment
Share on other sites

try renaming it to <your_device_id_only>.ROM

I mean w/o vendor and/or whatever. I think 68b8.ROM or 68B8.ROM/rom :D

 

I've got a lot to learn - frankly i may as well be taking a chainsaw to the code right now!

 

I've got a little further (noticed a few mistakes.) At least I now see:

ATI card POSTed, ATI Juniper ATI Radeon HD 5770 1024MB (Vervet) [1002:68b8] (subsys [1682:2991]):: PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)

 

but getting memory allocation errors relating to ati.c when i try to use AtiConfig=XXXX (new key) to change framebuffer. And still not reading ROM in Extra

 

I'm not expecting support - I'm just messing around.

 

Will message what I've done again, I don't want show my shame here :tomato:

 

D

Link to comment
Share on other sites

Will message what I've done again, I don't want show my shame here :tomato:

npb,

just to make u feel good: autodidacts like us, learn things that way (most of the time). so no place for shame.

I'd be glad to see how it evolves.

btw, don't be harsh on the code. take a moil if need is :D

Link to comment
Share on other sites

@b004004, boot.plist & smbios.plist please.

am working on next update since some days. I think it would fix your problem.

btw, did u try FixFSB or ForceFSB keys?

 

Hi valv! I use the latest version boot, and set the FixFSB key, the max freq is 2.0GHz! :) Great work!

But the bdmesg still dont work! :(

 

Does the message "Unsynchronized TSC for cpu 1: " mean something?

Link to comment
Share on other sites

here boot 9

with busratio 17

 

 

CPU: AMD Phenom(tm) II X4 955 Processor
HW-PState 0: Frequency: 3400, Multiplier: 18
HW-PState 1: Frequency: 3400, Multiplier: 9
HW-PState 2: Frequency: 3400, Multiplier: 5
HW-PState 3: Frequency: 1700, Multiplier: 0
CPU: Vendor/Family/ExtFamily:	  0x68747541/0xf/0x1
CPU: Model/ExtModel/Stepping:	  0x4/0x0/0x2
CPU: Multipliers x10:			  max=180, min=0
CPU: MaxDiv/CurrDiv:			   0x0/0x1
CPU: TSCFreq:					  3411MHz
CPU: CPUFreq:					  3411MHz
CPU: FSBFreq:					  189MHz
CPU: NoCores/NoThreads:			1/4
CPU: Features:					 0x36900221

 

 

this is report you want

THE_KING.txt

Link to comment
Share on other sites

this with fsb oc to 220

 

 

CPU: AMD Phenom(tm) II X4 955 Processor
HW-PState 0: Frequency: 3200, Multiplier: 16
HW-PState 1: Frequency: 3200, Multiplier: 9
HW-PState 2: Frequency: 3200, Multiplier: 5
HW-PState 3: Frequency: 1600, Multiplier: 0
CPU: Vendor/Family/ExtFamily:	  0x68747541/0xf/0x1
CPU: Model/ExtModel/Stepping:	  0x4/0x0/0x2
CPU: Multipliers x10:			  max=160, min=0
CPU: MaxDiv/CurrDiv:			   0x0/0x1
CPU: TSCFreq:					  3520MHz
CPU: CPUFreq:					  3520MHz
CPU: FSBFreq:					  220MHz
CPU: NoCores/NoThreads:			1/4
CPU: Features:					 0x36900221

 

which busratio did u use on windows ?

busratio 17

sorry i took report and i overclcoked

if you want anther one tell me

Link to comment
Share on other sites

npb, we are getting same results as on windows (same oc'ed busratio:17); I see this:

	P-State			FID 0x12
P-State			FID 0x9
P-State			FID 0x5

Link to comment
Share on other sites

I've pm'ed u next one.

busratio, when oc'ed to 17 would give same thing (18). As this happens on windows too, I feel it is actually bios related

Link to comment
Share on other sites

this with 16*200

 

 

CPU: AMD Phenom(tm) II X4 955 Processor
P-State 0: Frequency: -1084106032, Multiplier: 16
P-State 1: Frequency: 1806109461, Multiplier: 9
P-State 2: Frequency: 1003394145, Multiplier: 5
P-State 3: Frequency: 0, Multiplier: 0
Invalid MSR!
CPU: Vendor/Family/ExtFamily:	  0x68747541/0xf/0x1
CPU: Model/ExtModel/Stepping:	  0x4/0x0/0x2
CPU: Multipliers x10:			  max=160, min=0
CPU: MaxDiv/CurrDiv:			   0x0/0x1
CPU: TSCFreq:					  3210MHz
CPU: CPUFreq:					  0MHz
CPU: FSBFreq:					  200MHz
CPU: NoCores/NoThreads:			1/4
CPU: Features:					 0x36900221

 

 

this with 16.5*210

 

 

CPU: AMD Phenom(tm) II X4 955 Processor
P-State 0: Frequency: -829768046, Multiplier: 17
P-State 1: Frequency: 1834517250, Multiplier: 9
P-State 2: Frequency: 1019176250, Multiplier: 5
P-State 3: Frequency: 0, Multiplier: 0
Invalid MSR!
CPU: Vendor/Family/ExtFamily:	  0x68747541/0xf/0x1
CPU: Model/ExtModel/Stepping:	  0x4/0x0/0x2
CPU: Multipliers x10:			  max=170, min=0
CPU: MaxDiv/CurrDiv:			   0x0/0x1
CPU: TSCFreq:					  3465MHz
CPU: CPUFreq:					  0MHz
CPU: FSBFreq:					  203MHz
CPU: NoCores/NoThreads:			1/4
CPU: Features:					 0x36900221

 

I've pm'ed u next one.

busratio, when oc'ed to 17 would give same thing (18). As this happens on windows too, I feel it is actually bios related

 

i will check it on windows :rolleyes:

Link to comment
Share on other sites

 Share

×
×
  • Create New...