Jump to content

Clover and AMD CPU


  • Please log in to reply
45 replies to this topic

#41
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,894 posts
  • Gender:Male
  • Location:português
Yes, it works! But wihout Ethernet

#42
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,028 posts
  • Gender:Male
  • Location:Moscow

Some update for Clover 32bit related to AMD CPU. Rev 2639.

Attached File  Clover-32_AMD.zip   543.73KB   47 downloads

Hope it will work if previous version no.

 

For regular usage rename boot3 to boot.



#43
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,894 posts
  • Gender:Male
  • Location:português

Hi Slice, I have a big problem with Clover_v2k_r2830 and do not know how to fix the problem, I am very grateful for every tip, see attached image

 

Edit:

However, the problem also appears on with an older version of Clover

Attached Files


Edited by spakk, 27 August 2014 - 02:16 AM.


#44
pico joe

pico joe

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 139 posts
  • Gender:Male

@spakk ...

on GUI clover .. spacebar ... boot without cache



#45
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,894 posts
  • Gender:Male
  • Location:português
Thank you for quick response, Pico joe
  I will cange the settings

#46
Hacker Pro

Hacker Pro

    InsanelMac Resident; I try to help if i can.

  • Members
  • PipPipPip
  • 160 posts
  • Gender:Male
  • Location:Canada
  • Interests:Making and using vm's, trying the latest and oldest OS's and,
    Gaming.

I want to ask AMD users to help in Clover development. I have no such cpu and can't test anything. 
All for your testing and propositions.
For now AMD dependent part looks like the follow

  else if(gCPUStructure.Vendor == CPU_VENDOR_AMD ) {
      gCPUStructure.TSCFrequency = MultU64x32(gCPUStructure.CurrentSpeed, Mega); //MHz -> Hz
      gCPUStructure.CPUFrequency = gCPUStructure.TSCFrequency;
		if(gCPUStructure.Extfamily == 0x00 /* K8 */) {
			msr = AsmReadMsr64(K8_FIDVID_STATUS);
      gCPUStructure.MaxRatio = (UINT32)(RShiftU64((RShiftU64(msr, 16) & 0x3f), 2) + 4);
      gCPUStructure.MinRatio = (UINT32)(RShiftU64((RShiftU64(msr, 8) & 0x3f), 2) + 4);
		}
		else if(gCPUStructure.Extfamily >= 0x01 /* K10+ */) {
			msr = AsmReadMsr64(K10_COFVID_STATUS);
			if(gCPUStructure.Extfamily == 0x01 /* K10 */) {
				gCPUStructure.MaxRatio = (UINT32)DivU64x32(((msr & 0x3f) + 0x10), (1 << ((RShiftU64(msr, 6) & 0x7))));
      }
			else {/* K11+ */
				gCPUStructure.MaxRatio = (UINT32)DivU64x32(((msr & 0x3f) + 0x08), (1 << ((RShiftU64(msr, 6) & 0x7))));
      }
         // Get min ratio
      msr = AsmReadMsr64(K10_COFVID_LIMIT);
      msr = AsmReadMsr64(K10_PSTATE_STATUS + ((RShiftU64(msr, 4) & 0x07)));
      if(gCPUStructure.Extfamily == 0x01) { /* K10 */
				gCPUStructure.MinRatio = 5 * (UINT32)DivU64x32(((msr & 0x3f) + 0x10), (1 << ((RShiftU64(msr, 6) & 0x7))));
      } else  {/* K11+ */
				gCPUStructure.MinRatio = 5 * (UINT32)DivU64x32(((msr & 0x3f) + 0x08), (1 << ((RShiftU64(msr, 6) & 0x7))));
      }                                             
		}
    gCPUStructure.MaxRatio >>= 1;
    if (!gCPUStructure.MaxRatio) {
      gCPUStructure.MaxRatio = 1; //??? to avoid zero division
    }
      gCPUStructure.FSBFrequency = DivU64x32(gCPUStructure.TSCFrequency, gCPUStructure.MaxRatio);
      gCPUStructure.MaxRatio *= 10;
	}

Something wrong for your case?
 
Set Debug and try to boot. If no success then attach debug.log here to analyze.
config.plist
	<key>Boot</key>
	<dict>
		<key>Log</key>
		<true/>
	</dict>
	<key>CPU</key>
	<dict>
		<key>Type</key>
		<string>0x0301</string>
	</dict>
	<key>Graphics</key>
	<dict>
		<key>PatchVBios</key>
		<false/>
	</dict>
	<key>SMBIOS</key>
	<dict>
		<key>ProductName</key>
		<string>MacPro3,1</string>
		<key>SerialNumber</key>
		<string>W88A77AA5J4</string>
	</dict>

I proposed you already have AMD_mach_kernel and your patched DSDT.aml that you placed into /EFI/CLOVER/ACPI/patched/

 

Would try but I'm no programmer sorry would help if i could.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy