Jump to content

Mobility Radeon HD 4650:Full Resolution with QE & CI working on Internal LVDS screen


  • Please log in to reply
692 replies to this topic

#1
mucha

mucha

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
  • Gender:Male
Many thanks to bcc9 :thumbsup_anim: for his genius discovery and for his method for finding and editing framebuffer personalities
I was planning to add this to bbc9 topics, but i couldn't add a replay only a new topic in new users lounge is allowed for me (I'm a member since 2006 ),so if a moderator can attach it it's welcome.
Most credit should go to bcc9 (radeondump & tutorial) & Dong (RadeonHD), this was not possible without his finding ,a previous knowledge of bbc9 method with some basic binary editing and terminal skills is a must have.
Sorry for my bad English and my Bad teaching skills, the most important is the idea.
Any additional useful information and feed-back is welcome
The bootlaoder is chameleon rev 747 with modded ati.c with corrected default framebuffer to Shrike and model name for my DeviceId: 0x9480 (Kabyl boot file is no go for me).

The Guide (HowTo.rtf outdated ) in the attachements with some usefull files for quick editing

I have received many PM from people asking for my patched kext, i have uploaded them with my boot file, remember those files are specific for Mobility Radeon 4650 on a HP Pavilion DV6 series & there is NO guaranty they will work on other models

http://www.megaupload.com/?d=4SN7VDMK
http://hotfile.com/dl/113477176/da80b51/ATI.zip.html

Updates:

1- the same method is tested in Mac OS X version 10.6.3 & the lastest update 10.6.7 and i report it's working perfectly for both

2- for the 10.6.3 system the personnality is 20 bytes (the SenseID byte is replaced by i2cid & SenseID is 4 bytes);

a-the original 10.6.3 Shrike ConnectorInfo:

02 00 00 00 40 00 00 00 09 00 00 00 02 01 00 00 03 00 00 00 
02 00 00 00 00 01 00 00 09 01 00 00 20 01 02 91 02 00 00 00 
00 04 00 00 04 03 00 00 00 01 00 00 10 00 01 90 01 00 00 00

b-My modded working 10.6.3 Shrike ConnectorInfo :

02 00 00 00 40 00 00 00 09 00 00 00 12 00 00 96 07 00 00 00 
10 00 00 00 10 00 00 00 00 01 00 00 00 10 01 95 06 00 00 00 
00 08 00 00 00 02 00 00 00 01 00 00 20 01 02 90 01 00 00 00


3- About the 10.6.7 Update:

a-ConnectorInfo are located in ATIFramebuffer.kext for the general combo update (the same as 10.6.6 system)
b-ConnectorInfo have migrated to ATIControlerXXXX.kext for 2011 MBP update (the kernel & ATi Drivers structure are closer to Lion 10.7 than to 10.6.6),
ATIController4600.kext contain only Shrike, Flicker & Gliff ConnectorInfo (which theorically restrict the possible framebuffer to use with a specific controller.kext)
ATIController4800.kext contain only Cardinal,Motmot & Quail ConnectorInfo.

The Online guide:

A- The Structure of a personality:

I'll take Shrike as framebuffer for the demonstration, cause it's used as default by Radeon HD 4670 (M96XT, DevID 0x9488 ) on iMac 10,1 & iMac11,2
which is the closest to the Mobility Radeon HD 4650 (M96, DevID 0x9480) on my board.

for Shrike we have by default 3 personalities , one for each connector (3 connectors allowed): port0, port1, port2.

02 00 00 00 40 00 00 00 09 01 00 00 02 01 00 03
02 00 00 00 00 01 00 00 09 01 00 00 20 01 02 02
00 04 00 00 04 03 00 00 00 01 00 00 10 00 01 01

let's take the first one which is for port 0 :

02 00 00 00 40 00 00 00 09 01 00 00 02 01 00 03

divide it to 8 parts:

02 00 00 00 - 40 00 00 00 - 09 01 - 00 00 - 02 - 01 - 00 - 03

Then byte swapped

1- ConnectorType : 02 00 00 00 > 0x00000002 - - -
2- ATY,ControlFlags : 40 00 00 00 > 0x00000040 +++
3- Features : 09 01 > 0x0109 +++
4- Unkown : 00 00 > 0x0000 - - -
5- Transmitter : 02 > 0x02 - - -
6- Encoder : 01 > 0x01 - - -
7- HotplugID : 00 > 0x00 - - -
8- SenseID : 03 > 0x03 ++++++

- - - > Value not important, but need to be accurate for better result
+++ > Important value, incorrect value == not working personality

Detailed info about possible value for each field is list below ( some are confirmed, some only guessed by studying different personalities and need some feed-back
from working system (for me LVDS and VGA value are confirmed)

1- ConnectorType;

/* 4 byte  ,from bbc9 radeondump */
		 #define CONNECTORTYPE_LVDS   0x00000002	
		 #define CONNECTORTYPE_DVI	  0x00000004
		#define CONNECTORTYPE_VGA	  0x00000010
		#define CONNECTORTYPE_S-V	  0x00000080		
		#define CONNECTORTYPE_DP	  0x00000400	
		 #define CONNECTORTYPE_HDMI   0x00000800

2- ATY,ControlFlags;

/* 4 byte the same as found on ioreg key: ATY,ControlFlags. hardcoded for each connector type 
	u can try one by one until u find the working one for u
	0x0002 : LVDS		>	ControlFlag : 0x0040 / 0x0100
	0x0004 : DVI-?		>	ControlFlag : 0x0016 - 0x0014 / 0x214
	0x0010 : VGA		>	ControlFlag : 0x0010
	0x0080 : S-Video   	>	ControlFlag : 0x0002	  
	0x0200 : DVI-?		>	ControlFlag : 0x0014 / 0x0214 - 0x0204
	0x0400 : DisplayPort	>	ControlFlag : 0x0100 - 0x0104 - 0x0304 / 0x0604 - 0x0400
	0x0800 : HDMI		>	ControlFlag : 0x0200
	0x1000 : DVI-?		>	ControlFlag : 0x0016
	*/

3-Features;

/* Features byte 0 , for example for LVDS screen it's almost 0x09 = 0x01 + 0x08 > Internal + Backlight */
	#define FEATURE_USE_INTERNAL	   		0x01
	#define FEATURE_USE_RGB_ON_YUV		0x04
	#define FEATURE_USE_BACKLIGHT		  0x08
	#define FEATURE_BACKLIGHT_INVERTED 	0x10
	#define FEATURE_USE_CLAMSHELL		  0x20

	/* 1 byte, hardcoded for each connector type
	0x0002 : LVDS		>	Features  :  0x09
	0x0004 : DVI-?		>	Features  :  0x00
	0x0010 : VGA		>	Features  :  0x00
	0x0080 : S-Video   	>	Features  :  0x04	 
	0x0200 : DVI-?		>	Features  :  0x00
	0x0400 : DisplayPort	>	Features  :  0x00
	0x0800 : HDMI		>	Features  :  0x00
	0x1000 : DVI-?		>	Features  :  0x00
	*/

	/* Features byte 1 , no idea ???*/

4- Unkown ;

5- Transmitter;

/* u can get this from dmesg after installing  Dong's RadeonHD with debug info */ 
	/* Transmitter Bits 0-3 (TransmitterID) */
	#define UNIPHY	  0x00
	#define UNIPHY1   0x01
	#define UNIPHY2   0x02

	/* Transmitter Bits 4-7 (LinkID) */
	#define DUALLINK  0x00 // LINKA + LINKB
	#define LINKA		  0x10
	#define LINKB		  0x20

	/* Transmitter byte  */
	#define UNIPHYA	 0x10 // = UNIPHY:LINKA
	#define UNIPHYB	 0x20 // = UNIPHY:LINKB
	#define UNIPHYAB   0x00 // = UNIPHY:DUALLINK
	#define UNIPHYC	 0x11 // = UNIPHY1:LINKA
	#define UNIPHYD	 0x21 // = UNIPHY1:LINKB
	#define UNIPHYCD   0x01 // = UNIPHY1:DUALLINK
	#define UNIPHYE	 0x12 // = UNIPHY2:LINKA
	#define UNIPHYF	  0x22 // = UNIPHY2:LINKB
	#define UNIPHYEF	0x02 // = UNIPHY2:DUALLINK
	#define DACA			  0x00
	#define DACB		  0x10


6- Encoder;

/* u can get this from Dmesg as above  for R8XX architecture and above there is 06 Digital Encoder: DIG_1 > DIG_6*/ 
	/* Encoder Bits 0-3 (DIG_ID : Digital) */
	#define DIG1   0x00 // = DIGA
	#define DIG2   0x01 // = DIGB
	#define DIG3   0x02 // = DIGC  Only for Radeon HD 5XXX Series  and above
	#define DIG4   0x03 // = DIGD  Only for Radeon HD 5XXX Series  and above
	#define DIG5   0x04 // = DIGE  Only for Radeon HD 5XXX Series  and above
	#define DIG6   0x05 // = DIGF  Only for Radeon HD 5XXX Series  and above
 
	/* Encoder Bits 4-7 (DAC_ID : Analog) */
	#define DAC	 0x10

7- HotplugID;

/* 4 bits it's a unique id for each port, i have tried with 0 for port0, 1 for port1 and 2 for port2 and it's just working */

8- SenseID;

/* SenseLine = (i2cid & 0xf) +1 ,you get  i2cid from bbc9 radeondump */   
	 Bits 0-3: Sense Line   
	 Bit	4: Use hw i2c flag


Now to some practice


B- Getting the ConnectorType, ATY,ControlFlags,Features, HotplugId and SenseLineId Values:


You will need :
1- videocard bios dump ( i have used everest for that and renamed it 1002_9480.rom ) ,
2- radeondump tool from bbc9
launch Terminal & type ./radeondump < your_videobios.rom > connector.txt
you will get something like this :

Desktop Mucha$ ./radeondump < 1002_9480.rom 
ATOM BIOS Rom: 
	SubsystemVendorID: 0x103c SubsystemID: 0x3629
	IOBaseAddress: 0x7000
	Filename: br33507.001 
	BIOS Bootup Message: 
HP_Quanta_Jones_Cujo_M96M_DDR3 M96 DDR3 128bit 550e/667m					

Connector at index 0 type: LVDS (7)
Connector's i2cid: 96
Connector at index 1 type: VGA (1)
Connector's i2cid: 95
Connector at index 2 type: HDMI-A (11)
Connector's i2cid: 90


which means:

port0 > LVDS=0x00000002 - ControlFlag=0x0040 - Features = 0x09-------------------------HotplugId=0x00 - i2cid=96 > SenseLine = 0x07
port1 > VGA =0x00000010 - ControlFlag=0x0010 - Features = 0x00 ------------------------ HotplugId=0x01 - i2cid=95 > SenseLine = 0x06
port2 > HDMI=0x00000800 - ControlFlag=0x0200 - Features = 0x00 -------------------------HotplugId=0x02 - i2cid=90 > SenseLine = 0x01


C- Getting the Encoder & Transmitter ID Values:


For some useful info you may visit : "http://www.botchco.c...om/agd5f/?p=51"
and some Encoder-Transmitter Routing rules taking from commentary of linux drivers
"http://lxr.free-elec...eon_encoders.c"

682 /*
683  * DIG Encoder/Transmitter Setup
684  *
685  * DCE 3.0/3.1 (RV6XX, Radeon HD 3XXX Series and older)
686  * - 2 DIG transmitter blocks. UNIPHY (links A and B ) and LVTMA.
687  * Supports up to 3 digital outputs
688  * - 2 DIG encoder blocks.
689  * DIG1 can drive UNIPHY link A or link B
690  * DIG2 can drive UNIPHY link B or LVTMA
691  *
692  * DCE 3.2 (RV7XX, Radeon HD 4XXX Series)
693  * - 3 DIG transmitter blocks. UNIPHY0/1/2 (links A and B ).
694  * Supports up to 5 digital outputs
695  * - 2 DIG encoder blocks.
696  * DIG1/2 can drive UNIPHY0/1/2 link A or link B
697  *
698  * DCE 4.0 (RV8XX, Radeon HD 5XXX Series)
699  * - 3 DIG transmitter blocks UNPHY0/1/2 (links A and B ).
700  * Supports up to 6 digital outputs
701  * - 6 DIG encoder blocks.
702  * - DIG to PHY mapping is hardcoded
703  * DIG1 drives UNIPHY0 link A, A+B
704  * DIG2 drives UNIPHY0 link B
705  * DIG3 drives UNIPHY1 link A, A+B
706  * DIG4 drives UNIPHY1 link B
707  * DIG5 drives UNIPHY2 link A, A+B
708  * DIG6 drives UNIPHY2 link B
709  *
710  * Routing
711  * crtc -> dig encoder -> UNIPHY/LVTMA (1 or 2 links)
712  * Examples:
713  * crtc0 -> dig2 -> LVTMA   links A+B -> TMDS/HDMI
714  * crtc1 -> dig1 -> UNIPHY0 link  B   -> DP
715  * crtc0 -> dig1 -> UNIPHY2 link  A   -> LVDS
716  * crtc1 -> dig2 -> UNIPHY1 link  B+A -> TMDS/HDMI
717  */


You need Dong's RadeonHD.kext , i have used the 10/20/2009 update, edit the info.plist to set the debug to true and verbose level to 2
then delete ATI4600 & ATIFramebuffer from S/L/E (make a back-up first) and install radeonHD reboot (your external VGA,DVI or HDMI screen most be connected)
once on desktop go to Terminal : sudo -s , type your password then dmesg >Encoder.txt
In my case i get as output:
----------------------------------------------------------------------------
CailWriteATIRegister(1724,40002)
CAIL: CailReleaseMemory
ParseTable said: CD_SUCCESS
Call to AtomBIOS Exec succeeded
DAC_LoadDetection Successful
rhdAtomBIOSScratchDACSenseResults
BIOSScratch_0: 0x40002
rhdAtomBIOSScratchDACSenseResults sensed RHD_SENSED_VGA
AtomOutputvalueDACA: Sensed Output: VGA
atomTMDSPropertyControl
atomTMDSPropertyControl
Setting AtomOutputvalueDACA to incoherent
atomTMDSPropertyControl
RHDConnectorEnableHDMI
atomTMDSPropertyControl
RHDHPDCheck
RHDHPDCheck returned: 0 mask: 1
RHDMonitorInit
rhdMonitorPanel
RHDAtomBiosFunc
rhdAtomLvdsGetTimings
rhdAtomLvdsTimings
rhdAtomLvdsTimings: LVDS Modeline: 1366x768 72000 1366 (1366) 1414 1446 (1486) 1486 768 (768) 771 775 (806) 806
Call to AtomBIOS Get Panel Mode succeeded
RHDAtomBiosFunc
rhdAtomLvdsGetTimings
rhdAtomLvdsDDC
rhdAtomLvdsDDC: unknown record type: 24
Query for AtomBIOS Get Panel EDID: failed
RHDAtomOutputAllocFree
Mapping DIG1 encoder to KLDSKP_UNIPHYE
Crtc[0]: found native mode from Monitor[LVDS Panel]:
Modeline "1366x768" 72 1366 1414 1446 1486 768 771 775 806
Connector "PANEL" uses Monitor "LVDS Panel":
RHDMonitorInit
Connector "VGA 1": Failed to retrieve Monitor information.
RHDValidateScaledToMode
rhdModeValidateCrtc
DxModeValid: ATOM CRTC 1
rhdAtomOutputModeValid
Listing modesetting layout:
ATOM CRTC 1: tied to Atom PLL 1 and LUT A:
Outputs: AtomOutputduleDemandUniphyE (PANEL)
ATOM CRTC 2: tied to Atom PLL 2 and LUT B:
Outputs: AtomOutputvalueDACA (VGA 1)
Unused Outputs: AtomOutputUniphyB
RHDModesPoolCreate
-------------------------------------------------------------------------------------

Based upon the above information my SPECIFIC videocard routing is:

CRTC0>DIG1>UNIPHYE>LVDS Encoder= 0x00 Transmitter = 0x12
CRTC1>DAC > DACA >VGA Encoder=0x10 Transmitter = 0x00
CRTC1>DIG2>UNIPHYB>HDMI Encoder= 0x01 Transmitter = 0x20 (i don't have a hdmi display to test)

Now doing the compilation , my new modded Shrike personalities :

02 00 00 00 40 00 00 00 09 01 00 00 12 00 00 07 LVDS
10 00 00 00 10 00 00 00 00 01 00 00 00 10 01 06 VGA
00 08 00 00 00 02 00 00 00 01 00 00 20 01 02 01 HDMI

This mod allowed me to get both LVDS an VGA display working with Resolution change, QE/CI Extended desktop and Mirroring
I have tested the same mod with Peregrine and i confirm it's also Working.


D- How to Easy Quick Patch your desired Framebuffer personality (without calculating the adresses and for both i386 and x86_64):


You should have a hexadecimal editor:

1- Download the attached : Sharks_FB.txt Birds_FB.txt and Monkeys_FB.txt,
2- Open the text file select and copy the desired personality hexadecimal code (the one you want to patch),
3- Open ATIFramebuffer.kext and Drag ATIFramebuffer binary to hexadecimal editor,
4- Select : edit>search , in the search fields paste the clipboard content and choose hex value & wrap option,
5- You should find 2 instances of the searched personality: the first one is for x86_64 and the second for i386 (make sure you have only 2),
6- Patch and save your binary, install reboot an ENJOY

For Radeon HD 3XXX and prior choose Sharks,
For Radeon HD 4XXX choose Birds,
For Radeon HD 5XXX choose Monkeys.

Attached Files



#2
1120

1120

    InsanelyMac Protégé

  • Members
  • Pip
  • 32 posts
  • Gender:Male
  • Location:BELARUS, Gomel'
How did you do that?

#3
mucha

mucha

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
  • Gender:Male
i'm on the process of writing a guide for tonight or may be tomorrow
the method is based on bcc9 guide of editing the framebuffer personnality, i just found a way of getting the lastest piece of the puzzle
the byte link_i2cid or Transmitter and dac_digidx or Encoder

#4
wmarsh

wmarsh

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 900 posts

Many thanks to bbc9 :wacko: for his genius discovery and for his method for finding and editing framebuffer personalities
unfortunately i can't post in the ATI graphic section cause i don't have suffisant privilege :)
the proof in the attachements

Impressive.

I will be glad to verify this works on other systems as I have been working on this problem forever.

And if you would like to add to the HD 4330 thread -- your hardware is similiar -- please do so.
http://www.insanelym...howtopic=245308

#5
kizwan

kizwan

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,422 posts
This is interesting. Looking forward to your guide. This will definitely make many people happy. :)

#6
crazybirdy

crazybirdy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 123 posts
  • Gender:Male
Great news.

I have a Mobility Radeon HD4330 the same as guys above on my acer NB.

Waiting for your guide.... thanks.

#7
andrek

andrek

    InsanelyMac Protégé

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
You made my day. I can't wait for the guide!!

#8
checcco

checcco

    InsanelyMac Protégé

  • Members
  • PipPip
  • 96 posts
Looking forward for your guide...

#9
Cyrus the Great

Cyrus the Great

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 276 posts
  • Gender:Male
  • Location:tehran
hi mucha I have same card on my hp can you upload your kext?
thanks

#10
mucha

mucha

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
  • Gender:Male

This is interesting. Looking forward to your guide. This will definitely make many people happy. :(


Congratulations for your succes
but your HDMI personality is totaly messed and it use the same link as ur LVDS which is not allowed, each connector must have it's own link
and it use a wrong encoder
let me explain

1- ATY,ControlFlags for HDMI is 0x200 and not 0x204
2- You are using a non existant encoder for HDMI output and a shared Transmitter with LVDS ==> Interference

LVDS: 02 00 00 00 40 00 00 00 09 01 00 00 02 01 00 01 > DIG2>UNIPHY2>DUAL_LINK (A+B )>LVDS
HDMI: 00 08 00 00 04 02 00 00 00 01 00 00 22 05 05 02 > DIG6>UNIPHY2>LINK_B>HDMI

on RADEON HD 4XXX there is only 02 Digital Encoder DIG1 & DIG2 ,only RADEON HD 5XXX has 06 DIG1>DIG6
your LVDS is using UNIPHY2>LINK_B and your HDMI is using the Same link Which cause the interference

i want to post my reply in the apropriet topics on ATI Subforum, but i keep getting this error : Sorry, you do not have permission to reply to that topic

This really frustrating :)

#11
kizwan

kizwan

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,422 posts

Congratulations for your succes
but your HDMI personality is totaly messed and it use the same link as ur LVDS which is not allowed, each connector must have it's own link
and it use a wrong encoder
let me explain

1- ATY,ControlFlags for HDMI is 0x200 and not 0x204
2- You are using a non existant encoder for HDMI output and a shared Transmitter with LVDS ==> Interference

LVDS: 02 00 00 00 40 00 00 00 09 01 00 00 02 01 00 01 > DIG2>UNIPHY2>DUAL_LINK (A+B )>LVDS
HDMI: 00 08 00 00 04 02 00 00 00 01 00 00 22 05 05 02 > DIG6>UNIPHY2>LINK_B>LVDS

on RADEON HD 4XXX there is only 02 Digital Encoder DIG1 & DIG2 ,only RADEON HD 5XXX has 06 DIG1>DIG6
your LVDS is using UNIPHY2>LINK_B and your HDMI is using the Same link Which cause the interference

Thank you. ;)

I was only able to figure out the ATY,ControlFlags but thanks to your excellent guide I now can know the rest. I make the assumption ATY,ControlFlags for HDMI is 0x204 based on the IORegistry when I'm using 10.7 kexts which the external monitor connected to HDMI was working. I guess I'm wrong. :P

I have downloaded your guide but do not have the opportunity to read it yet. I will read it to figure out how to make HDMI working without the interference with LVDS.

#12
wmarsh

wmarsh

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 900 posts
Many thanks -- I've been so close just could not figure transmitter, encoder, hotplug

I anticipate duplicating your success tonight.

Hopefully the moderators will promote you -- the board did not in years past keep people from posting in relevant sections. Probably 1 reason we aren't seeing the successes we saw years ago.

#13
benneque

benneque

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
I really hope this will work with Dell Studio 1555 here, too. (M92, Ati 45xx).

And I've got a question: Is it possible to add some kind of code-generator that will generate the right code for a graphics card without user interaction? (Would be great if it gets into ##### and ##### ;) )

#14
mucha

mucha

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
  • Gender:Male
To all people asking for helps: 2 log files are need

1- radeondump (from bcc9) output of your videobios ==> to identify connectortype & SenseID
2- dmesg log after booting with Dong's radeonHD.kext (10/20/2009 update) installed & Debug flag set on Info.plist
with all possible output connected ==> to identify EncoderID & TransmitterID mapping to output

#15
k540kkk

k540kkk

    InsanelyMac Protégé

  • Members
  • Pip
  • 27 posts
Are there other ways to get transmitter and encoder? I think RadeonHD.kext may not compatible with ATI 6xxx. I've set it to debugmode and verbose=2. It show just a few lines in dmsg not look like what you post at all. Can we get these values from windows or linux?

#16
crazybirdy

crazybirdy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 123 posts
  • Gender:Male

Many thanks to bcc9 :) for his genius discovery and for his method for finding and editing framebuffer personalities
unfortunately i can't post in the ATI graphic section cause i don't have suffisant privilege :)
the proof in the attachements


Many thanks for your guide.

I change the framebuffer to Peregrine for 4330.

Finally, my mobility radeon HD 4330 (1002_9552) is working with QE & CI on internal LVDS screen now.

Show some pictures as below.

Attached File  4330_ok_1.JPG   107.3KB   895 downloadsAttached File  4330_ok_2.JPG   204.85KB   706 downloadsAttached File  4330_ok_3.JPG   171.67KB   687 downloadsAttached File  4330_ok_4.JPG   86.58KB   655 downloadsAttached File  4330_ok_6.JPG   168.56KB   619 downloads

#17
wmarsh

wmarsh

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 900 posts

To all people asking for helps: 2 log files are need

1- radeondump (from bcc9) output of your videobios ==> to identify connectortype & SenseID
2- dmesg log after booting with Dong's radeonHD.kext (10/20/2009 update) installed & Debug flag set on Info.plist
with all possible output connected ==> to identify EncoderID & TransmitterID mapping to output

Mucha, I would suggest not setting debug mode in RadeonHD

You get adequate info without this setting (I just did it with debug = false and verbose = 1)
Sometimes debug causes KP
And sometimes it gives unreadable screen

#18
wmarsh

wmarsh

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 900 posts

Many thanks for your guide.

I change the framebuffer to Peregrine for 4330.

Finally, my Mobility Radeon HD 4330 (1002_9552) is working with QE & CI on Internal LVDS screen now.

show some pictures as below.

Crazybirdy, I invite you to post in Mobility Radeon HD4xxx thread.

What bootloader are you using? Graphics Enabler? Or DSDT patch?

#19
mucha

mucha

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
  • Gender:Male

Mucha, I would suggest not setting debug mode in RadeonHD

You get adequate info without this setting (I just did it with debug = false and verbose = 1)
Sometimes debug causes KP
And sometimes it gives unreadable screen


RadeonHD never worked for me, i dumped my dmesg using terminal on a grabled screen,i was thinking setting the debug flag would give us more informations,if you can confirm that default setting are giving the needed information i will update the guide (which version are you using, the latest version didn't give me the desired info)

and i think that it will be great if a skilled developper can provide us with a tool like radeondump capable if dumping the usefull info


Many thanks for your guide.

I change the framebuffer to Peregrine for 4330.

Finally, my Mobility Radeon HD 4330 (1002_9552) is working with QE & CI on Internal LVDS screen now.

show some pictures as below.

Congratulations
Happy to see my guide is helpfull for other people

#20
crazybirdy

crazybirdy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 123 posts
  • Gender:Male

Crazybirdy, I invite you to post in Mobility Radeon HD4xxx thread.

What bootloader are you using? Graphics Enabler? Or DSDT patch?


I can't post in Mobility Radeon HD4xxx thread. You know as a new user here.......

New method, try old method...it's better.
10.7.x VGA works, DVD Player + MS Office ppt + Chess don't work.
10.6.8 VGA + Chess work, DVD Player + MS Office ppt don't work.

[EDIT] 2012.03.01
Update pkg for 10.8 ML.
[EDIT] 2011.10.28
Easy way to get QE/CI. Only for 10.6.6 2011 MBP, 10.6.7 2011 MBP, 10.6.8, and Lion

If the resolution is higher than 1366x768 as 1600x900 , you need to try to add Dual-link and EDID too.
http://www.insanelym...p...2061&st=256

Only for 1366x738 and lower resolution.

1-1.All kext used with Lion 10.7.x (nothing modified.)
    ATI4600Controller.kext (add ID)
    ATIFramebuffer.kext
    ATISupport.kext
    ATIRadeonX2000.kext
    ATIRadeonX2000GA.plugin
    ATIRadeonX2000GLDriver.bundle
    ATIRadeonX2000VADriver.bundle
    http://dl.dbank.com/c0f3hgjco8

1-2.All kext used with Snow Ledpard 10.6.8 (nothing modified.)
  kexts from 10.6.8 or Lion
    ATI4600Controller.kext (add ID)
    ATIFramebuffer.kext
    ATISupport.kext
  kexts from 10.6.7 updated from 10.6.3.retail
    ATIRadeonX2000.kext
    ATIRadeonX2000GA.plugin
    ATIRadeonX2000GLDriver.bundle
    ATIRadeonX2000VADriver.bundle

  All kexts used (ATI 10.6.7.update ATIRadeonX2000.kext + 10.6.8 and 10.7.0 )
    http://dl.dbank.com/c0dh6fjdit

2.Add ID of 4330m ( 0x95521002 ) to ATI4600Controller.kext as below.
  ATI4600Controller.kext/Contents/Info.plist
   <key>IOPCIMatch</key>
    <string>0x95521002 0x94881002</string>
  Make sure the ID of 4330m is included in ATIRadeonX2000.kext/Contents/Info.plist as below.
    <key>IOPCIMatch</key>
    <string>0x94001002 0x94011002 0x94021002 0x94031002 0x95811002 0x95831002 0x95881002 0x94c81002 0x94c91002 0x95001002 0x95011002 0x95051002 0x95071002 0x95041002 0x95061002 0x95981002 0x94881002 0x95991002 0x95911002 0x95931002 0x94401002 0x94421002 0x944A1002 0x945A1002 0x94901002 0x949E1002 0x94801002 0x95401002 0x95411002 0x954E1002 0x954F1002 0x95521002 0x95531002 0x94a01002</string>

  If the default values in ATIRadeonX2000.kext didn't include of your card's ID, then you may need to give up. Example, 0x95551002 never got QE/CI since I know so many people have tried this (both old method and new method).

  And you can modify the name of 4330m as attched.
  ATI4600Controller.kext/Contents/MacOS/ATI4600Controller
  Attached File  4330mEN.png   179.75KB   1716 downloads

3.Use Boot pkg or ATY_init.kext with Peregrine which is not supported by 10.6.6 MBP 2011~Lion, and the kext will use RadeonFramebuffer instead.
<key>GraphicsEnabler</key>
<string>Yes</string>

  Boot for ATI 4xxx Mobility Series only.
    Attached File  Chameleon_2.1svn_r1820_10.8_Peregrine_NB_780_pkg+boot.zip   2.21MB   762 downloads

  The default IDs included in ati.c and ATIRadeonX2000.kext were as below.
    { 0x10029490, "Peregrine"} ,
    { 0x1002949E, "Peregrine"} ,
    { 0x10029480, "Peregrine"} ,
    { 0x10029488, "Peregrine"} ,
    { 0x10029540, "Peregrine"} ,
    { 0x10029541, "Peregrine"} ,
    { 0x1002954E, "Peregrine"} ,
    { 0x10029552, "Peregrine"} ,
    { 0x10029553, "Peregrine"} ,
    { 0x1002954F, "Peregrine"} ,
  The default IDs included in ati.c but not in ATIRadeonX2000.kext, and you may need to give up.
    { 0x10029498, "Peregrine"} ,
    { 0x100294B3, "Peregrine"} ,
    { 0x100294B5, "Peregrine"} ,

Or
<key>GraphicsEnabler</key>
<string>No</string>


  for 0x10029552
    Attached File  ATY_Init.kext.for.ATI4330m.Peregrine.zip   246.83KB   492 downloads
  for 0x10029553
    Attached File  ATY_Init.kext.for.ATI4530m.Peregrine.zip   246.83KB   182 downloads
    Attached File  ATY_Init.kext.for.ATI4570m.Peregrine.zip   246.83KB   411 downloads
    Attached File  ATY_Init.kext.for.ATI5145m.Peregrine.zip   246.83KB   106 downloads
    Attached File  ATY_Init.kext.for.ATI545vm.Peregrine.zip   246.83KB   101 downloads
  for 0x10029480
    Attached File  ATY_Init.kext.for.ATI4650m.Peregrine.zip   246.83KB   362 downloads

  You can modify the ATY_Init.kext.for.ATI4330m.Peregrine.zip to be yours with HexEdit. (two locations 32+64)
Attached File  4330mHexEdit.png   78.38KB   1505 downloads

4. Use Kext Wizard to install the modified kext to S/L/E.
  Attached File  Kext_Wizard.v3.7.10.zip   387.83KB   331 downloads
  Attached File  4330mWizard.gif   29.72KB   1047 downloads

Then, you get QE/CI with ATI 4330m now.


You don't need to do anything with the following any more.



Old method, better than New method
10.7.x VGA + DVD Player + MS Office ppt work, Chess doesn't work.
10.6.8 VGA + DVD Player + MS Office ppt + Chess work.

All kext used with Lion 10.7.x (nothing modified.)
    ATI4600Controller.kext (add ID)
    ATIFramebuffer.kext
    ATISupport.kext
    ATIRadeonX2000.kext
    ATIRadeonX2000GA.plugin
    ATIRadeonX2000GLDriver.bundle
    ATIRadeonX2000VADriver.bundle
    http://dl.dbank.com/c0f3hgjco8

All kext used with Snow Ledpard 10.6.8 (nothing modified.)
  kexts from 10.6.8 or Lion
    ATI4600Controller.kext (add ID)
    ATIFramebuffer.kext
    ATISupport.kext
  kexts from 10.6.7 updated from 10.6.3.retail
    ATIRadeonX2000.kext
    ATIRadeonX2000GA.plugin
    ATIRadeonX2000GLDriver.bundle
    ATIRadeonX2000VADriver.bundle

  All kexts used (ATI 10.6.7.update ATIRadeonX2000.kext + 10.6.8 and 10.7.0 )
    http://dl.dbank.com/c0dh6fjdit

If the resolution is higher than 1366x768 as 1600x900 , you need to try this too.
http://www.insanelym...p...2061&st=256

Only for 1366x738 and lower resolution.

Attached File  radeon_bios_decode_VBIOS_RadeonHD_HexEdit_Framebuffer.zip   756.65KB   746 downloads
1. This is the output from bcc9's radeon_bios_decode .
" ./radeon_bios_decode < 1002_9552.rom > connector.txt "

  ATOM BIOS Rom:
  ...............
  PCI ID: 1002:9552
  Connector at index 0
   Type : LVDS (7)
   Encoder : INTERNAL_UNIPHY2 (0x21)
   i2cid: 0x96, OSX senseid: 0x7
  Connector at index 1
   Type : VGA (1)
   Encoder : INTERNAL_KLDSCP_DAC1 (0x15)
   i2cid: 0x90, OSX senseid: 0x1
  Connector at index 2
   Type : HDMI-A (11)
    Encoder : INTERNAL_UNIPHY (0x1e)
   i2cid: 0x91, OSX senseid: 0x2

Get the data like this, it works for me.

index 0=Connector[0]=Port0=00 =LVDS :HW_Line[6] i2cid: 96 SenseLine = (6 & 0xf)+1 = 07
index 1=Connector[1]=Port1=01 =VGA :HW_Line[0] i2cid: 90 SenseLine = (0 & 0xf)+1 = 01
index 2=Connector[2]=Port2=02 =HDMI-A:HW_Line[1] i2cid: 91 SenseLine = (1 & 0xf)+1 = 02

2. The output from "sudo dmesg > ~/Desktop/Encoder.txt" is as below by using Dong's RadeonHD.kext. Remove some data unuseful.

Object: ID: 310e name: LVDS type: 3 id: e
* SrcObject: ID: 2121 name: UNIPHY2 enum: 1
rhdAtomDDCFromI2CRecord: I2C Record: HW_Line[6] EngineID: 1 I2CAddr: 0

Object: ID: 3105 name: VGA type: 3 id: 5
* SrcObject: ID: 2115 name: INTERNAL_KLDSCP_DAC1 enum: 1
rhdAtomDDCFromI2CRecord: I2C Record: HW_Line[0] EngineID: 1 I2CAddr: 0

Object: ID: 310c name: HDMI_TYPE_A type: 3 id: c
* SrcObject: ID: 211e name: UNIPHY enum: 1
rhdAtomDDCFromI2CRecord: I2C Record: HW_Line[1] EngineID: 1 I2CAddr: 0

Connector[0] {..._PANEL, "LVDS LCD1", .... { RHD_OUTPUT_UNIPHYE, ... } }
Connector[1] {..._VGA, "VGA\^H CRT1", ....{ RHD_OUTPUT_DACA, ... } }
Connector[2] {..._DVI_SINGLE, "HDMI_TYPE_A DFP1", ....{ RHD_OUTPUT_UNIPHYA, ... } }
.........................................
RHDBIOSScratchDACSense
.........................................
Sensing DACA on Output AtomOutputDACA
AtomDACLoadDetection
Calling DAC_LoadDetection
.........................................
DAC_LoadDetection Successful
.........................................
Mapping DIG1 encoder to KLDSKP_UNIPHYE
.........................................
Crtc[0]: found native mode from Monitor[LVDS Panel]:
.........................................
Connector "PANEL" uses Monitor "LVDS Panel":
RHDValidateScaledToMode
rhdModeValidateCrtc
DxModeValid: ATOM CRTC 1
rhdAtomOutputModeValid
Listing modesetting layout:
.........................................
ATOM CRTC 1: tied to Atom PLL 1 and LUT A:
Outputs: AtomOutputUniphyE (PANEL)
ATOM CRTC 2: unused
Unused Outputs: AtomOutputDACA, AtomOutputUniphyA


Get the data like this, it works for me.

CRTC1>DIG1>UNIPHYE>LVDS  Encoder = 0x00  Transmitter = 0x12
CRTC2>DAC > DACA >VGA   Encoder = 0x10  Transmitter = 0x00
CRTC2>DIG2>UNIPHYA>HDMI  Encoder = 0x01  Transmitter = 0x10




3. And the patch is here.
You get Transmitter, Encoder, HotplugID, and SenseLine like this.
02 00 00 00 40 00 00 00 09 01 00 00 12 00 00 07 LVDS
10 00 00 00 10 00 00 00 00 01 00 00 00 10 01 01 VGA
00 08 00 00 00 02 00 00 00 01 00 00 10 01 02 02 HDMI (If you don't have port 02, just copy it to be yours.)

All you need to do is just replace the Transmitter, Encoder, HotplugID, and SenseLine to be yours, and keep the order of LVDS, VGA, HDMI as the example as above.

If Dong's RadeonHD.kext didn't work, you can try some values for Transmitter, Encoder as below, and replace the HotplugID, and SenseLine to be yours.

02 00 00 00 40 00 00 00 09 01 00 00 aa 00 00 07 LVDS
10 00 00 00 10 00 00 00 00 01 00 00 00 10 01 01 VGA
00 08 00 00 00 02 00 00 00 01 00 00 bb 01 02 02 HDMI (If you don't have port 02, just copy it to be yours.)
or
02 00 00 00 40 00 00 00 09 01 00 00 aa 01 00 07 LVDS
10 00 00 00 10 00 00 00 00 01 00 00 00 10 01 01 VGA
00 08 00 00 00 02 00 00 00 01 00 00 bb 00 02 02 HDMI (If you don't have port 02, just copy it to be yours.)

According to bcc9's radeon_bios_decode .
The aa could be one of these three values.
#define UNIPHY_E 0x12 // = UNIPHY_2:LINK_A
#define UNIPHY_F 0x22 // = UNIPHY_2:LINK_B
#define UNIPHY_EF 0x02 // = UNIPHY_2:DUAL_LINK
The bb could be one of these three values.
#define UNIPHY_A 0x10 // = UNIPHY:LINK_A
#define UNIPHY_B 0x20 // = UNIPHY:LINK_B
#define UNIPHY_AB 0x00 // = UNIPHY:DUAL_LINK

The default of Shrike is as below.
02 00 00 00 40 00 00 00 09 01 00 00 02 01 00 03
02 00 00 00 00 01 00 00 09 01 00 00 20 01 02 02
00 04 00 00 04 03 00 00 00 01 00 00 10 00 01 01

4. Modify ATI4600Controller.kext with Shrike for Lion 10.7.x, 10.6.6(MBP 2011), 10.6.7(MBP 2011), and 10.6.8 update.
Or modify ATIFramebuffer.kext with Shrike for Retail 10.6.3, update 10.6.6 (10.6.7).

Need to copy ATI4600Controller.kext or ATIFramebuffer.kext to ~/Desktop, and use HexEdit to edit ATI4600Controller.kext/Contents/MacOS/ATI4600Controller or ATIFramebuffer.kext/Contents/MacOS/ATIFramebuffer.

Use HexEdit to find Shrike
02 00 00 00 40 00 00 00 09 01 00 00 12 00 00 07 10 00 00 00 10 00 00 00 00 01 00 00 00 10 01 01 00 08 00 00 00 02 00 00 00 01 00 00 10 01 02 02
and replace to be yours.
02 00 00 00 40 00 00 00 09 01 00 00 12 00 00 07 10 00 00 00 10 00 00 00 00 01 00 00 00 10 01 01 00 08 00 00 00 02 00 00 00 01 00 00 10 01 02 02
Replace two locations for both 32bits & 64bits.
Attached File  4330_Shrike.png   133.52KB   768 downloads

5. And add ID of 4330m ( 0x95521002 ) to ATI4600Controller.kext as below, then you can use Kext Wizard to install the modified kext to S/L/E as below.
ATI4600Controller.kext/Contents/Info.plist
<key>IOPCIMatch</key>
<string>0x95521002 0x94881002</string>
Attached File  Kext_Wizard.v3.7.10.zip   387.83KB   102 downloads
Attached File  4330mSnowWizard.gif   29.99KB   389 downloads

Do not install the Chameleon pkg before the kext is modified and installed as above.
6. Also need to edit the file of /Extra/com.apple.boot.plist as below with attached boot files.
<key>GraphicsEnabler</key>
<string>Yes</string>


Then, you can get QE\CI now.

If you get trouble after reboot, you can remove ATI4600Controller.kext and setup GraphicsEnabler=No, and try it again.

pkg for 0x10029552 & 0x10029553 & 0x10029480 boot file.
Attached File  Chameleon_2.1svn_r1820_10.8_Shrike_NB_780_pkg+boot.zip   2.21MB   304 downloads

If you want to update Chameleon boot file, you can use ATY_init.kext to replace the function of GraphicsEnabler.
<key>GraphicsEnabler</key>
<string>No</string>

Setup as above, and use Kext Wizard to install the ATY_init.kext to E/E or S/L/E, then you can update the boot file with any revision you want.

Use Shrike for ATIFramebuffer.
for 0x10029552.
Attached File  ATY_Init.kext.for.ATI4330m.zip   246.81KB   217 downloads
for 0x10029553
Attached File  ATY_Init.kext.for.ATI4530m.zip   249.87KB   122 downloads
Attached File  ATY_Init.kext.for.ATI4570m.zip   249.87KB   335 downloads
Attached File  ATY_Init.kext.for.ATI5145m.zip   249.87KB   108 downloads
Attached File  ATY_Init.kext.for.ATI545vm.zip   249.87KB   71 downloads
for 0x10029480
Attached File  ATY_Init.kext.for.ATI4650m.zip   246.81KB   307 downloads





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