Subaru ROM patching for logging

Re: Subaru ROM patching for logging

Postby cboles » Mon Apr 26, 2010 8:26 am

How the patching works depends on the patch. In the case of the Subaru CAN logging patch, the patching code finds and matches an entire function related to logging in a way that is independent of where the function is located as well as all of the RAM variables it uses. If the entire function matches, it is confident it can replace it with the new function I wrote, re-using the same RAM areas. If the patch doesn't show up, no match was made and the patch is not possible. In the un-patchable cases I have seen, the function is radically different and much smaller, so I would need to write a different patch and relocate the patch code somewhere outside of the function.

I am working on a python-based patching language that will be hosted inside of EcuFlash. This will allow other people to contribute patches as well. The quality and accuracy of the patches will only be as good as the author makes them.

mgv101 wrote:So how exactly does the patching work?

Does EcuFlash simply carries a broad set of instructions to study and determine whether the ROM loaded could be patched and build its own patch if it is able to. Or is each patch specific to a list of ROM and if the ROM's ID is not in the pre-specified list where a specific patch had been made available, EcuFlash will not give you a patch option.

I also am unable to see a patch option for my ROM too
JDM Legacy BP5 Type E AT MY08.hex
and is interested in finding out what determines a ROM could be patched or not.

Thank you for all the great work so far!
cboles
Site Admin
 
Posts: 1233
Joined: Wed Dec 29, 2004 5:45 pm
Location: Seattle, WA

Re: Subaru ROM patching for logging

Postby mgv101 » Mon Apr 26, 2010 11:49 am

Cool, that means there will be a chance that someone will make a patch for a popular ROM with similar logging function to mine that I could use in the future then.

With little programing skills that I had from back in high school, I doubt I could make a patch myself if it were ROM specific.
And no one would make a patch specifically for a JDM Legacy since there are so few around.
mgv101
 
Posts: 7
Joined: Sat Oct 04, 2008 8:18 am

Re: Subaru ROM patching for logging

Postby cboles » Mon Apr 26, 2010 12:27 pm

There are really several steps to writing a new patch, with most of the work being in developing the new code:

1. Finding, disassembling, and understanding the original code
2. Assessing how many ROMs contain this same or similar code (i.e. how many people can benefit from this patch)
3. Developing, assembling, and testing new code to replace it
4. Make the new code smaller than the original, or determining a region where the new code can reside
5. Writing and testing the patching code that deploys the patch

mgv101 wrote:Cool, that means there will be a chance that someone will make a patch for a popular ROM with similar logging function to mine that I could use in the future then.

With little programing skills that I had from back in high school, I doubt I could make a patch myself if it were ROM specific.
And no one would make a patch specifically for a JDM Legacy since there are so few around.
cboles
Site Admin
 
Posts: 1233
Joined: Wed Dec 29, 2004 5:45 pm
Location: Seattle, WA

Re: Subaru ROM patching for logging

Postby hta68 » Mon May 03, 2010 11:47 pm

any progress on the K-line patch?
hta68
 
Posts: 7
Joined: Sun Apr 25, 2010 5:08 pm

Re: Subaru ROM patching for logging

Postby ladams00 » Tue May 04, 2010 10:55 pm

hta68 wrote:any progress on the K-line patch?


Slight nudge of a bump :D
ladams00
 
Posts: 23
Joined: Wed Sep 30, 2009 10:41 am

Re: Subaru ROM patching for logging

Postby cboles » Wed May 05, 2010 1:39 pm

I've looked into it. One of the problems is that this code tends to vary from ROM to ROM. What ROM are you using? (anyone else who is interested, please let me know your ROM version too).

hta68 wrote:any progress on the K-line patch?
cboles
Site Admin
 
Posts: 1233
Joined: Wed Dec 29, 2004 5:45 pm
Location: Seattle, WA

Re: Subaru ROM patching for logging

Postby deucex6400 » Wed May 05, 2010 11:07 pm

Colby, do you have a completed k-line patch yet? I'm interested in it for A2ZJE11J (USDM 06 STI).
deucex6400
 
Posts: 1
Joined: Mon Sep 15, 2008 1:57 pm

Re: Subaru ROM patching for logging

Postby hta68 » Thu May 06, 2010 12:25 am

cboles wrote:I've looked into it. One of the problems is that this code tends to vary from ROM to ROM. What ROM are you using? (anyone else who is interested, please let me know your ROM version too).

hta68 wrote:any progress on the K-line patch?


2007 WRX USDM, A8DK100X, Thanks!
Last edited by hta68 on Sun May 09, 2010 11:11 pm, edited 1 time in total.
hta68
 
Posts: 7
Joined: Sun Apr 25, 2010 5:08 pm

Re: Subaru ROM patching for logging

Postby ladams00 » Sat May 08, 2010 1:55 am

I am very interested, Colby. 2005 USDM STi -- A2ZJB10J

cboles wrote:I've looked into it. One of the problems is that this code tends to vary from ROM to ROM. What ROM are you using? (anyone else who is interested, please let me know your ROM version too).

hta68 wrote:any progress on the K-line patch?
ladams00
 
Posts: 23
Joined: Wed Sep 30, 2009 10:41 am

Re: Subaru ROM patching for logging

Postby BlackStar2.5i » Sun May 09, 2010 9:47 am

I am interested as well.

2005 USDM STi

A2ZJB10J
BlackStar2.5i
 
Posts: 7
Joined: Thu Mar 18, 2010 9:57 am

Re: Subaru ROM patching for logging

Postby Mart » Mon May 10, 2010 5:10 am

Same here A2ZJE11J (USDM 06 STI) :)

deucex6400 wrote:Colby, do you have a completed k-line patch yet? I'm interested in it for A2ZJE11J (USDM 06 STI).
Mart
 
Posts: 29
Joined: Wed May 14, 2008 5:51 pm

Re: Subaru ROM patching for logging

Postby ladams00 » Sat Jun 12, 2010 5:53 pm

Hey Colby, Have you been able to make some progress on the K-Line patches?
ladams00
 
Posts: 23
Joined: Wed Sep 30, 2009 10:41 am

Re: Subaru ROM patching for logging

Postby Digitalfiend » Fri Jul 02, 2010 10:36 am

Colby,

I've been working on my own UI for high speed CAN logging but put it off once I discovered you can't read extended parameters over stock SSM. With this patch applied to my ROM, can I just issue a read memory message over SSM/CAN and the patch will handle the rest and return the value I want? Does this patch change the SSM protocol format at all?

Thanks.
Digitalfiend
 
Posts: 11
Joined: Tue Aug 30, 2005 4:23 pm

Re: Subaru ROM patching for logging

Postby kamakiri » Sat Jul 10, 2010 11:30 am

Not getting the option to patch on an 08 Legacy Spec B with ID A2TB001L.
kamakiri
 
Posts: 2
Joined: Sat Jul 10, 2010 11:08 am

Re: Subaru ROM patching for logging

Postby ladams00 » Mon Jul 26, 2010 7:53 pm

ladams00 wrote:Hey Colby, Have you been able to make some progress on the K-Line patches?


Just checking in. I know you're busy at home, Colby. Hope everything is well. :)
ladams00
 
Posts: 23
Joined: Wed Sep 30, 2009 10:41 am

PreviousNext

Return to Openport Stand-Alone Logging Beta

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest