Jump to content

[HOW TO] Modification of AMD FB + Clover injection

AMD Radeon Frame Buffer

  • Please log in to reply
381 replies to this topic

#261
cady_design2009

cady_design2009

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Helloo guys, i have a Sapphire R9 290 Vapor-x videocard and i cannot enable video acceleration in El Capitan. When i enable Ati injection the screen goes black. Can u help me with FB and Clover inection? becase i`m new in this and i cannot understand various steps on the tutorial :). Thank you! I`m usin 2 monitors. Thank you in advance!

Attached Files



#262
Matthew82

Matthew82

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 320 posts
  • Gender:Male
  • Location:Poland

Helloo guys, i have a Sapphire R9 290 Vapor-x videocard and i cannot enable video acceleration in El Capitan. When i enable Ati injection the screen goes black. Can u help me with FB and Clover inection? becase i`m new in this and i cannot understand various steps on the tutorial :). Thank you! I`m usin 2 monitors. Thank you in advance!

 

Try this in clover:

</dict>
<key>KernelAndKextPatches</key>
<dict>
<key>ATIConnectorsController</key>
<string>8000</string>
<key>ATIConnectorsData</key>
<string>000400000403000000010300120403030004000004030000000101001102010100040000040300000001020021030202000400000403000000010400220504040004000004030000000105001000050500040000040300000001060020010606</string>
<key>ATIConnectorsPatch</key>
<string>000800000402000000010300220503030004000004030000000101001204010100040000040300000001020012040201040000000400000000010400010204040400000004000000000105000000050600040000040300000001060020010605</string>

and in graphic section:

 
Spoiler
 
in device section ad fake id in ATI:
0x67B01002

Edited by Allan, 07 March 2016 - 10:40 PM.
Specials BBCodes added.


#263
0000-1248

0000-1248

    InsanelyMac Shekelmeister

  • Members
  • PipPipPipPipPip
  • 294 posts
  • Gender:Male
  • Location:Brisbane, Australia
  • Interests:OSx86 Project, Computer Hardware, Physics, Paleontology, Pink Floyd

Cheers mate, solved my R9 270X Dual-Display issue. Although, Futomaki didn't work; I had to use Hamachi for some reason. Mine is a Sapphire Dual-X 2GB. Another odd thing is that I have to plug in my second display after I log in, or I get screen artifacts. Anyway, not complaining!

 

Thanks,

 

- Matt



#264
keksonja

keksonja

    InsanelyMac Protégé

  • Members
  • Pip
  • 27 posts

Hello guys,

 

I am going crazy trying to figure out my Sapphire 7970 3GB card.  Whatever i do i get black screen the only way I can go to desktop is if I use fake id 0x6798 for ATI and put FBName Hamachi.  I am booting in El Capitan 10.11.3

 

I have tried to load vBios but i get black screen.  When i look at DPCIManager i see underframbuffer .Display_boot port5.  What do I need to try next... 

 

Thanks all!



#265
Nyxzn

Nyxzn

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

Meh am so confused  http://imgur.com/ozddIZ6I can only get one monitor working not sure why. Here is my rom, https://dl.dropboxus...4150/Hawaii.rom



#266
haegar33

haegar33

    InsanelyMac Protégé

  • Members
  • Pip
  • 12 posts
  • Gender:Male
  • Interests:My Hackintosh: GA-Z97X-UD7-TH | i7 4790K | Radeon R9 290x

Does not work with my Saphire R9 290X. In fact none of the Baladi frame buffer ever had success for me. The only 2-screen-on patch I found was with Exmoor:

 

00 04 00 00  04 03 00 00  00 01  04 00  12  04  02  01 DP

00 08 00 00  00 02 00 00  00 01  03 07  22  05  03  03 HDMI
00 04 00 00  04 03 00 00  00 01  02 07  11  02  01  04 DVI-D (upper)
00 04 00 00  04 03 00 00  00 01  01 07  10  00  06  06 DVI-D (lower)
 

but its rather unstable with a lot of WindowServer error message in the system.log

 

This is on OS X 10.10.5

 

 

Try this in clover:

</dict>
<key>KernelAndKextPatches</key>
<dict>
<key>ATIConnectorsController</key>
<string>8000</string>
<key>ATIConnectorsData</key>
<string>000400000403000000010300120403030004000004030000000101001102010100040000040300000001020021030202000400000403000000010400220504040004000004030000000105001000050500040000040300000001060020010606</string>
<key>ATIConnectorsPatch</key>
<string>000800000402000000010300220503030004000004030000000101001204010100040000040300000001020012040201040000000400000000010400010204040400000004000000000105000000050600040000040300000001060020010605</string>
in device section ad fake id in ATI:
0x67B01002

 



#267
aria_perdana

aria_perdana

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

Hi, i'm using a MSI R7 260X (1DVI-D,1 DVI-I, 1HDMI, 1DP) on 10.10.1 and can't get it work by patching the Baladi Framebuffer.

Can anybody here take a look at this and help me? I'm stuck, and don't know what to do from this, hehe.

 

Here is my radeon bios decode and redsock bios decoder:

 

ATOM BIOS Rom: 

SubsystemVendorID: 0x1462 SubsystemID: 0x2935
IOBaseAddress: 0x0000
Filename: 918.bin     
BIOS Bootup Message: 113-MSITV293MS.300 
C58204 BONAIRE XTX A1 GDDR5 2GB 128MX32 300E/150M          
PCI ID: 1002:6658
Connector at index 0
Type [@offset 43730]: DisplayPort (10)
Encoder [@offset 43734]: INTERNAL_UNIPHY2 (0x21)
i2cid [@offset 43840]: 0x90, OSX senseid: 0x1
Connector at index 1
Type [@offset 43740]: HDMI-A (11)
Encoder [@offset 43744]: INTERNAL_UNIPHY2 (0x21)
i2cid [@offset 43867]: 0x92, OSX senseid: 0x3
Connector at index 2
Type [@offset 43750]: DVI-D (3)
Encoder [@offset 43754]: INTERNAL_UNIPHY1 (0x20)
i2cid [@offset 43894]: 0x93, OSX senseid: 0x4
Connector at index 3
Type [@offset 43760]: DVI-I (2)
Encoder [@offset 43764]: INTERNAL_UNIPHY (0x1e)
i2cid [@offset 43931]: 0x95, OSX senseid: 0x6
Connector at index 4
Type [@offset 43770]: DVI-I (2)
Encoder [@offset 43774]: INTERNAL_KLDSCP_DAC1 (0x15)
i2cid [@offset 43931]: 0x95, OSX senseid: 0x6
 

 

 

113-MSITV293MS.300 

C58204 BONAIRE XTX A1 GDDR5 2GB 128MX32 300E/150M          
Subsystem Vendor ID: 1462
       Subsystem ID: 2935
Object Header Structure Size: 355
Connector Object Table Offset: 48
Router Object Table Offset: 0
Encoder Object Table Offset: fd
Display Path Table Offset: 12
Connector Object Id [19] which is [DISPLAY_PORT]
encoder obj id [0x21] which is [INTERNAL_UNIPHY2 (osx txmit 0x12 [duallink 0x2] enc 0x4)] linkb: false
Connector Object Id [12] which is [HDMI_TYPE_A]
encoder obj id [0x21] which is [INTERNAL_UNIPHY2 (osx txmit 0x22 [duallink 0x2] enc 0x5)] linkb: true
Connector Object Id [4] which is [DVI_D]
encoder obj id [0x20] which is [INTERNAL_UNIPHY1 (osx txmit 0x11 [duallink 0x1] enc 0x2)] linkb: false
Connector Object Id [2] which is [DVI_I]
encoder obj id [0x1e] which is [INTERNAL_UNIPHY (osx txmit 0x10 [duallink 0x0] enc 0x0)] linkb: false
Connector Object Id [2] which is [DVI_I]
encoder obj id [0x15] which is [INTERNAL_KLDSCP_DAC1 (osx txmit 0x00 enc 0x10?)] linkb: false
 

 

I've tried to patch Baladi Framebuffer but i just got a black screen (connected using HDMI to 1 monitor)

 

 

Original Baladi:

0000000    00  04  00  00  04  03  00  00  00  01  03  00  12  04  03  03
0000010    00  04  00  00  04  03  00  00  00  01  01  00  11  02  01  01
0000020    00  04  00  00  04  03  00  00  00  01  02  00  21  03  02  02
0000030    00  04  00  00  04  03  00  00  00  01  04  00  22  05  04  04
0000040    00  04  00  00  04  03  00  00  00  01  05  00  10  00  05  05
0000050    00  04  00  00  04  03  00  00  00  01  06  00  20  01  06  06
 
Patched Baladi:
0000000    00  04  00  00  04  03  00  00  00  01  03  00  12  04  01  01 - DP
0000010    00  08  00  00  00  02  00  00  00  01  01  00  22  05  02  03 - HDMI
0000020    04  00  00  00  14  02  00  00  00  01  02  00  11  02  03  04 - DVI D
0000030    00  02  00  00  04  02  00  00  00  01  04  00  10  00  04  06 - DVI I
0000040    00  02  00  00  04  02  00  00  00  01  05  00  00  10  05  06 - DVI I
0000050    00  04  00  00  04  03  00  00  00  01  06  00  20  01  06  06
 


#268
interpolgp

interpolgp

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

Hey all,

 

I am trying to understand the guide as best I can before I start trying this out. One question I have is, I see some post with the following format

0000000 00  02  00  00  04  00  00  00  00  01  00  00  11  02  01  06
0000010 00  08  00  00  00  02  00  00  00  01  00  00  22  05  06  04
0000020 00  04  00  00  04  03  00  00  00  01  00  00  12  04  04  01  
0000030 04  00  00  00  14  02  00  00  00  01  00  00  10  00  03  05
0000040

vs this format

00  02  00  00  04  00  00  00  00  01  00  00  11  02  01  06
00  08  00  00  00  02  00  00  00  01  00  00  22  05  06  04
00  04  00  00  04  03  00  00  00  01  00  00  12  04  04  01  
04  00  00  00  14  02  00  00  00  01  00  00  10  00  03  05

What do the extra 7 digits (0000010) at the start do of every line do? Do I need to include them in Clover to get the Kext patching to work?


Edited by Allan, 01 May 2016 - 01:09 AM.
Code box added


#269
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,739 posts
  • Gender:Male
  • Location:Moscow

 

Hey all,

 

I am trying to understand the guide as best I can before I start trying this out. One question I have is, I see some post with the following format

0000000 00  02  00  00  04  00  00  00  00  01  00  00  11  02  01  06
0000010 00  08  00  00  00  02  00  00  00  01  00  00  22  05  06  04
0000020 00  04  00  00  04  03  00  00  00  01  00  00  12  04  04  01  
0000030 04  00  00  00  14  02  00  00  00  01  00  00  10  00  03  05
0000040

vs this format

00  02  00  00  04  00  00  00  00  01  00  00  11  02  01  06
00  08  00  00  00  02  00  00  00  01  00  00  22  05  06  04
00  04  00  00  04  03  00  00  00  01  00  00  12  04  04  01  
04  00  00  00  14  02  00  00  00  01  00  00  10  00  03  05

What do the extra 7 digits (0000010) at the start do of every line do? Do I need to include them in Clover to get the Kext patching to work?

 

There are addresses that you must exclude from every line before write into Clover config.

Second example is good.



#270
HdKero

HdKero

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts

I'm having some problems...

 

I have a SAPPHIRE R9 280X VAPOR-X

 

I can only make work 2 screens at time... 

 

Using the kext patch i can make the 2 DVI works or DP + DVI.

 

Can't do the 3 at the same time...

 

If i dont use any patch the three screens are recognizable on the system configuration, but one screen one shows black screen if i for example print screen it shows perfectly like its working...

 

Any ideia?

01[ Display Port ]
redneck:
encoder obj id [0x21] which is [INTERNAL_UNIPHY2 (osx txmit 0x12 [duallink 0x2] enc 0x4)] linkb: false
radeon:
Connector at index 0
	Type [@offset 43576]: DisplayPort (10)
	Encoder [@offset 43580]: INTERNAL_UNIPHY2 (0x21)
	i2cid [@offset 43694]: 0x90, OSX senseid: 0x1

Code construction: 00040000040300000001000012040101
00040000040300000001010112040401

02 [HDMI ]
redneck:
encoder obj id [0x21] which is [INTERNAL_UNIPHY2 (osx txmit 0x22 [duallink 0x2] enc 0x5)] linkb: true
radeon:
Connector at index 1
	Type [@offset 43586]: HDMI-A (11)
	Encoder [@offset 43590]: INTERNAL_UNIPHY2 (0x21)
	i2cid [@offset 43721]: 0x93, OSX senseid: 0x4

Code construction: 00080000000200000001000022050204
00040000040300000001020122050502

03 [ DVI-D ]
redneck:
encoder obj id [0x20] which is [INTERNAL_UNIPHY1 (osx txmit 0x11 [duallink 0x1] enc 0x2)] linkb: false
radeon:
Connector at index 2
	Type [@offset 43596]: DVI-D (3)
	Encoder [@offset 43600]: INTERNAL_UNIPHY1 (0x20)
	i2cid [@offset 43748]: 0x92, OSX senseid: 0x3

Code construction: 04000000140200000001000011020303
04000000140200000001030000000606

04 [ DVI-I ]
redneck:
encoder obj id [0x1e] which is [INTERNAL_UNIPHY (osx txmit 0x10 [duallink 0x0] enc 0x0)] linkb: false
radeon:
Connector at index 3
	Type [@offset 43606]: DVI-I (2)
	Encoder [@offset 43610]: INTERNAL_UNIPHY (0x1e)
	i2cid [@offset 43785]: 0x95, OSX senseid: 0x6

Code construction: 00020000040200000001000010000406
00080000040200000001040011020103


05 [ DVI-I ]
redneck:
encoder obj id [0x15] which is [INTERNAL_KLDSCP_DAC1 (osx txmit 0x00 enc 0x10?)] linkb: false
radeon:
Connector at index 4
	Type [@offset 43616]: DVI-I (2)
	Encoder [@offset 43620]: INTERNAL_KLDSCP_DAC1 (0x15)
	i2cid [@offset 43785]: 0x95, OSX senseid: 0x6

Code construction: 00020000040200000001000000100506

Attached Files



#271
Luai Kamel

Luai Kamel

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts

Asus R7 260x OC , it works as 7Mb..... I tried fakeid unfortunately I get black screen but monitor stay on, so does this method will fix my issue? I saw some people got R7 260x to work under osx 10.10 ,,, I use AMD Fx 8350/ Asus M5a97 le rev 2.0 / Asus R7 260x OC 2GDD5. what should I do?



#272
telequillo

telequillo

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

Hi everyone!

 

I am trying this on an old Laptop, a HP Pavilion DV6-3035es, with a ATI Mobility Radeon HD 5650 (computer has an i7-720qm processor, with no integrated graphics). I am running El Capitan.

 

I can't extract the ROM for my graphics card using GPU-Z, as I understood after some researching, in my case the graphics card's rom is integrated with the mainboard BIOS. So anyway, I am trying to fix it just trying combinations, but not exactly randomly. I almost got it working.

 

I have:

- (obviosly) a LVDS connector, the monitor integrated on the laptop

- VGA connector

- HDMI connector

 

I am trying to just have my LVDS and HMDI working, I would be more than happy with that. And its almost done, but I am in a strange situation I don't know how to solve:

My LVDS is working perfectly with "Baboon" FB, and also with this customized HEX (following the tutorial in first page for the first 12 pairs, and adding the last 4 pairs, from the working Baboon FB:

02000000 40000000 08010000 01020103

 

The HDMI is not working with any of the other FB for AMD5000Controller, I tried them all.... however, if i don't introduce any FB, and then it defults to "ATY,ATY,RadeonFramebuffer" in the IORegistry (Instead of "ATY,Baboon"), I have my HDMI fully working and not my LVDS.

 

So... if i had a way to boot up my laptop on "ATY,ATY,RadeonFramebuffer", and extract the hex code related to the HDMI connector, and then use it together with the Baboon FB hex code for the LVDS... my setup would be completed. But I don't know how to achieve this. I need a way to extract something like "00080000 00020000 00010000 + XXXXXXXX" to use together with "02000000 40000000 08010000 01020103" and introduce this in the ATI connector patch.

 

Any ideas???



#273
Luai Kamel

Luai Kamel

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts

Hi, i'm using a MSI R7 260X (1DVI-D,1 DVI-I, 1HDMI, 1DP) on 10.10.1 and can't get it work by patching the Baladi Framebuffer.

Can anybody here take a look at this and help me? I'm stuck, and don't know what to do from this, hehe.

 

Here is my radeon bios decode and redsock bios decoder:

 

 

I've tried to patch Baladi Framebuffer but i just got a black screen (connected using HDMI to 1 monitor)

Same here, I have Asus R7 260x with AMD FX 8350 , I tried to patch Baladi with no luck yet.



#274
satyajitghana

satyajitghana

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

i have a XFX 7730 1GB GDDR5 device id 0x6837 vendor 0x1002 . VRAM is 7mb. what should i do ? 



#275
Mork vom Ork

Mork vom Ork

    InsanelyMac Sage

  • Donators
  • 344 posts
  • Gender:Male
  • Location:Berlin/Germany

Hello Coders,

 

i have just noticed, that Framebuffer Repository has changed in SIERRA! See, this is the old code of JUNSAI FB in 10.11.6 AMD7000Controller.kext:

00040000 04030000 00010001 11020603
00040000 04030000 00010001 21030104
00040000 04030000 00010001 12040501
00040000 04030000 00010001 20010206
04000000 14000000 00010001 22050402
00020000 14020000 00010001 10000305

Now look, what it looks like in 10.12 AMD7000Controller.kext:

00040000 04030000 00010001 00000000 12040301 00000000
00040000 04030000 00010001 00000000 22050402 00000000
00040000 04030000 00010001 00000000 11020103 00000000
00040000 04030000 00010001 00000000 21030204 00000000
00040000 04030000 00010001 00000000 10000505 00000000
00040000 04030000 00010001 00000000 20010606 00000000

to make my SAMSUNG 46" HDMI FlatTV and my Dell U3415W 4k Monitor via DP port work, i have to change these settings to

00040000 04030000 00010001 00000000 11020603 00000000
00040000 04030000 00010001 00000000 21030104 00000000
00040000 04030000 00010001 00000000 12040501 00000000
00040000 04030000 00010001 00000000 20010206 00000000
04000000 14000000 00010001 00000000 22050402 00000000
00020000 14020000 00010001 00000000 10000305 00000000

otherwise the Dell Monitor gets recognized by Sierra, but wont display anything, cause of wrong connector-codes.

Also the ati-personality.pl script wont work or better say wont detect any FB anymore.

 

So now how to detect framebuffer codes in SIERRAs AMDx000Controller.kext?

Just run the script under EL CAPITAN with the following command: ati-personality.pl /Volumes/your SIERRA drive here/System/Library/Extensions/AMD7000Controller.kext (Change "AMDx000Controller.kext" to the one desired for your gfx-card).

You will get the following output:

Script version 0.15
Kext /Volumes/macOS_SIERRA/System/Library/Extensions/AMD7000Controller.kext/Contents/MacOS/AMD7000Controller
Personality: Ramen
ConnectorInfo count in decimal: 0
Disk offset in decimal 1890192
Personality: Tako
ConnectorInfo count in decimal: 0
Disk offset in decimal 1890448
Personality: Namako
ConnectorInfo count in decimal: 0
Disk offset in decimal 1890592
Personality: Aji
ConnectorInfo count in decimal: 0
Disk offset in decimal 1890784
Personality: Buri
ConnectorInfo count in decimal: 0
Disk offset in decimal 1890880
Personality: Chutoro
ConnectorInfo count in decimal: 0
Disk offset in decimal 1890976
Personality: Dashimaki
ConnectorInfo count in decimal: 0
Disk offset in decimal 1891104
Personality: Ebi
ConnectorInfo count in decimal: 0
Disk offset in decimal 1891200
Personality: Gari
ConnectorInfo count in decimal: 0
Disk offset in decimal 1891328
Personality: Futomaki
ConnectorInfo count in decimal: 0
Disk offset in decimal 1891504
Personality: Hamachi
ConnectorInfo count in decimal: 0
Disk offset in decimal 1891600
Personality: OPM
ConnectorInfo count in decimal: 0
Disk offset in decimal 1891760
Personality: Ikura
ConnectorInfo count in decimal: 0
Disk offset in decimal 1891904
Personality: IkuraS
ConnectorInfo count in decimal: 0
Disk offset in decimal 1891936
Personality: Junsai
ConnectorInfo count in decimal: 0
Disk offset in decimal 1892080
Personality: Kani
ConnectorInfo count in decimal: 0
Disk offset in decimal 1892224
Personality: KaniS
ConnectorInfo count in decimal: 0
Disk offset in decimal 1892256
Personality: DashimakiS
ConnectorInfo count in decimal: 0
Disk offset in decimal 1892400
Personality: Maguro
ConnectorInfo count in decimal: 0
Disk offset in decimal 1892496
Personality: MaguroS
ConnectorInfo count in decimal: 0
Disk offset in decimal 1892528

Notice the Disk offset in decimal of your corresponding framebuffer. (in my case it was JUNSAI with offset 1892080)

Notice the Disk offset in decimal of the next framebuffer, that will be the beginning of the next framebuffer (in my Case it was KANI at 1892224, so JUNSAI ends at 1892220).

 

Open /Volumes/Your SIERRA Volume here/System/Library/Extensions/AMD7000Controller.kext/Contents/MacOS/AMD7000Controller in an hexeditor and jump to that offset (in my case 1892080):

Bildschirmfoto_2016_06_18_um_12_27_23.pn

Find the offset of next framebuffers beginning. Now copy the desired values to clipboard and paste in for example TextEdit:

00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 12 04 03 01 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 22 05 04 02 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 11 02 01 03 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 21 03 02 04 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 10 00 05 05 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 20 01 06 06 00 00 00 00

delete all spaces and get formated like this:

00040000 04030000 00010001 00000000 12040301 00000000
00040000 04030000 00010001 00000000 22050402 00000000
00040000 04030000 00010001 00000000 11020103 00000000
00040000 04030000 00010001 00000000 21030204 00000000
00040000 04030000 00010001 00000000 10000505 00000000
00040000 04030000 00010001 00000000 20010606 00000000

Now change the BOLD values to your desired values to make the frambuffer work for your card:

 

00040000 04030000 00010001 00000000 12040301 00000000
00040000 04030000 00010001 00000000 22050402 00000000
00040000 04030000 00010001 00000000 11020103 00000000
00040000 04030000 00010001 00000000 21030204 00000000
00040000 04030000 00010001 00000000 10000505 00000000
00040000 04030000 00010001 00000000 20010606 00000000

 

In my case for JUNSAI it looks like this after changing the desired values:

 

00040000 04030000 00010001 00000000 11020603 00000000
00040000 04030000 00010001 00000000 21030104 00000000
00040000 04030000 00010001 00000000 12040501 00000000
00040000 04030000 00010001 00000000 20010206 00000000
04000000 14000000 00010001 00000000 22050402 00000000
00020000 14020000 00010001 00000000 10000305 00000000

 

The blue part are the connector type values for DP, HDMI, DVI etc. In my case just 4 times 0403 for DP and one for DVI-I and DVI-D.

Now delete the Line Returns so that u get just one line, like this:

00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 12 04 03 01 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 22 05 04 02 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 11 02 01 03 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 21 03 02 04 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 10 00 05 05 00 00 00 00 00 04 00 00 04 03 00 00 00 01 00 01 00 00 00 00 20 01 06 06 00 00 00 00

do it for both parts, the original code and your modified code.

 

Now paste the following code to your "Kext to patch" section of info.plist file:

			<dict>
				<key>Comment</key>
				<string>Framebuffer JUNSAI</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>AAQAAAQDAAAAAQABAAAAABIEAwEAAAAAAAQAAAQDAAAAAQABAAAAACIFBAIAAAAAAAQAAAQDAAAAAQABAAAAABECAQMAAAAAAAQAAAQDAAAAAQABAAAAACEDAgQAAAAAAAQAAAQDAAAAAQABAAAAABAABQUAAAAAAAQAAAQDAAAAAQABAAAAACABBgYAAAAA</data>
				<key>Name</key>
				<string>AMD7000Controller</string>
				<key>Replace</key>
				<data>AAQAAAQDAAAAAQABAAAAABECBgMAAAAAAAQAAAQDAAAAAQABAAAAACEDAQQAAAAAAAQAAAQDAAAAAQABAAAAABIEBQEAAAAAAAQAAAQDAAAAAQABAAAAACABAgYAAAAABAAAABQAAAAAAQABAAAAACIFBAIAAAAAAAIAABQCAAAAAQABAAAAABAAAwUAAAAA</data>
			</dict>

or use PListEditor or XCode to generate the entry like this:

 

Bildschirmfoto_2016_06_18_um_12_46_23.pn

Use the desired values you just created - not mine in this example or picture  ;-) (just to make sure).

Save edited info.plist file and reboot. In my case it worked for me: Framebuffer JUNSAI in SIERRA detected and well patched.

 

Regards... Mork vom Ork



#276
tyufhl

tyufhl

    InsanelyMac Protégé

  • Members
  • PipPip
  • 50 posts

Hello Coders,

 

i have just noticed, that Framebuffer Repository has changed in SIERRA! See, this is the old code of JUNSAI FB in 10.11.6 AMD7000Controller.kext:


Mork vom Orkhttps://applelife.ru...191#post-596962

Attached File  Снимок экрана 2016-06-18 в 20.42.48.png   460.26KB   61 downloads

 

P.S works in Xcode8, run the script Ati-fram.

Attached Files



#277
Mork vom Ork

Mork vom Ork

    InsanelyMac Sage

  • Donators
  • 344 posts
  • Gender:Male
  • Location:Berlin/Germany

Wow, that was fast. Thanx in advance anyway.

 

It worx for me, too.



#278
principo

principo

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts
  • Gender:Male
  • Location:Ukraine/Kiev

Hi All,

Trying to fix the connections on my ATI Radeon HD5470M I faced a strange problem with the Clover kext patching - for me it simply doesn't work (at all).

So I am trying to replace old Baboon connections in AMD5000Controller

Personality: Baboon
ConnectorInfo count in decimal: 3
Disk offset in decimal 1833584
0000000    04  00  00  00  14  00  00  00  00  01  00  00  01  02  01  03
0000010    00  08  00  00  00  02  00  00  00  71  00  00  22  05  02  01
0000020    10  00  00  00  10  00  00  00  00  01  00  00  00  10  00  02
0000030

with those I cooked using this guide

02 00 00 00  40 00 00 00  09 01 00 00  10 00 01 07
00 08 00 00  00 02 00 00  00 71 00 00  11 02 02 02
10 00 00 00  10 00 00 00  00 00 00 00  00 10 00 01

I used both ATIConnectorsController,

	<key>KernelAndKextPatches</key>
	<dict>
		<key>ATIConnectorsController</key>
		<string>5000</string>
		<key>ATIConnectorsData</key>
		<string>040000001400000000010000010201030008000000020000007100002205020110000000100000000001000000100002</string>
		<key>ATIConnectorsPatch</key>
		<string>020000004000000009010000100001070008000000020000007100001102020210000000100000000000000000100001</string>
		<key>AppleRTC</key>
		<true/>
		<key>AsusAICPUPM</key>
		<false/>
		<key>Debug</key>
		<false/>
		<key>KernelCpu</key>
		<false/>
		<key>KernelHaswellE</key>
		<false/>
		<key>KernelLapic</key>
		<false/>
		<key>KernelPm</key>
		<false/>
	</dict>

and KextToPatch,

		<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				BAAAABQAAAAAAQAAAQIBAwAIAAAAAgAAAHEAACIFAgEQ
				AAAAEAAAAAABAAAAEAAC
				</data>
				<key>Name</key>
				<string>AMD5000Controller</string>
				<key>Replace</key>
				<data>
				AgAAAEAAAAAJAQAAEAABBwAIAAAAAgAAAHEAABECAgIQ
				AAAAEAAAAAAAAAAAEAAB
				</data>
			</dict>
		</array>

but as a result I still have my old Baboon connections in IORegistryExplorer:
 

91b0d4ac5a.jpg

 

91b0e38778.jpg

91b0f04fba.jpg

That's my config.plist:
 

Attached File  config.plist.txt   5.22KB   24 downloads
 

And here is the decoded bios:

ATOM BIOS Rom: 
	SubsystemVendorID: 0x1462 SubsystemID: 0x1055
	IOBaseAddress: 0xd000
	Filename: BR38191.003 
	BIOS Bootup Message: 
MSI MS1688 PARK S3 XT DDR3 64Mx16 1GB                                       

PCI ID: 1002:68e0
Connector at index 0
	Type [@offset 45234]: LVDS (7)
	Encoder [@offset 45238]: INTERNAL_UNIPHY (0x1e)
	i2cid [@offset 45308]: 0x96, OSX senseid: 0x7
Connector at index 1
	Type [@offset 45244]: HDMI-A (11)
	Encoder [@offset 45248]: INTERNAL_UNIPHY1 (0x20)
	i2cid [@offset 45331]: 0x91, OSX senseid: 0x2
	HotPlugID: 1
Connector at index 2
	Type [@offset 45254]: VGA (1)
	Encoder [@offset 45258]: INTERNAL_KLDSCP_DAC1 (0x15)
	i2cid [@offset 45358]: 0x90, OSX senseid: 0x1
BR38191.003 :

MSI MS1688 PARK S3 XT DDR3 64Mx16 1GB                                       

Subsystem Vendor ID: 1462
       Subsystem ID: 1055
Object Header Structure Size: 199
Connector Object Table Offset: 34
Router Object Table Offset: 0
Encoder Object Table Offset: 99
Display Path Table Offset: 12
Connector Object Id [14] which is [LVDS]
	encoder obj id [0x1e] which is [INTERNAL_UNIPHY (osx txmit 0x10 [duallink 0x0] enc 0x0)] linkb: false
Connector Object Id [12] which is [HDMI_TYPE_A]
	encoder obj id [0x20] which is [INTERNAL_UNIPHY1 (osx txmit 0x11 [duallink 0x1] enc 0x2)] linkb: false
Connector Object Id [5] which is [VGA]
	encoder obj id [0x15] which is [INTERNAL_KLDSCP_DAC1 (osx txmit 0x00 enc 0x10?)] linkb: false

I'm totally stuck with this and really don't know what to do, so any advice would be helpful.

PS. I use ElCapitan 10.11.5.

PPS. I've also tried to patch AMD5000Controller.kext directly via hex editor with completely the same result - no connections have changed. It looks like the kernel takes the information about connections not from the .kext but from the Clover directly (during injection). Is it possible?

Thank you!

Attached Files


Edited by principo, 21 June 2016 - 10:55 AM.


#279
polyzargone

polyzargone

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,980 posts
  • Gender:Male
  • Location:France

 

Sorry if it's a stupid question but where the file od is supposed to be installed ? I've tried in both /usr/bin and /usr/local/bin in Sierra but it gaves me this :

MacBook-Optimus:ati-personality polyzargone$ ./ati-personality.pl
Script version 0.15
Kext /System/Library/Extensions/AMD2400Controller.kext/Contents/MacOS/AMD2400Controller
warning: /Library/Developer/CommandLineTools/usr/bin/otool: -Q functionality obsolete
warning: /Library/Developer/CommandLineTools/usr/bin/otool: -Q functionality obsolete
Personality: Iago

and stops here forever… What's wrong ? I guess it has something to do with otool but where can I find a working or recent one ?

 

Anyway, thanks to Mork vom Ork's post, I successfuly updated my FB Clover patch in 10.12 so I'm just wondering ;).



#280
polyzargone

polyzargone

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,980 posts
  • Gender:Male
  • Location:France

Thanks but it's the same. I already had od file in ati-personality folder along with ati-personality.pl in my previous attempt.

 

SXbGAVQ.png

 

I also ran the Ati-fram.command and still :

 

MacBook-Optimus:~ polyzargone$ /Users/polyzargone/Downloads/ati-personality/Ati-fram.command ; exit;
Script version 0.15
Kext /System/Library/Extensions/AMD2400Controller.kext/Contents/MacOS/AMD2400Controller
warning: /Library/Developer/CommandLineTools/usr/bin/otool: -Q functionality obsolete
warning: /Library/Developer/CommandLineTools/usr/bin/otool: -Q functionality obsolete
Personality: Iago
…

 

It's supposed to start immediately, isn't it ?


BTW : Since I'm not the author of it, I won't but maybe it would be nice to publish the full content of FBati_10.12.x.txt of this post here ? ;)








0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy