E90Post
 


TNT Racewerks
 
BMW 3-Series (E90 E92) Forum > E90 / E92 / E93 3-series Powertrain and Drivetrain Discussions > N57 / M57 Turbo Diesel Discussions - 335d > Transmission remap - Let's do it ourselves



Reply
 
Thread Tools Search this Thread
      04-30-2016, 11:40 AM   #1013
Mik325tds
Major
Mik325tds's Avatar
United_States
808
Rep
1,192
Posts

Drives: 335d M-Sport
Join Date: Jul 2014
Location: Greater Detroit

iTrader: (0)

Quote:
Originally Posted by DWR View Post
So, Mik325tds is it your position that we should try to find the piece of code that controls this internal check and bypass it?
That would be the golden solution, but I'm afraid that this piece of code is included in the bootloader. If we don't get this right on the first try, we'd permanently brick the TCU that we try it on. Something like that is best tried on the bench where the TCU can be recovered through a BDM flasher.
Appreciate 0
      04-30-2016, 11:46 AM   #1014
Mik325tds
Major
Mik325tds's Avatar
United_States
808
Rep
1,192
Posts

Drives: 335d M-Sport
Join Date: Jul 2014
Location: Greater Detroit

iTrader: (0)

Quote:
Originally Posted by gini View Post
Hi Mik325tds,
thank you for your detailed explanation

I could reproduce 100% all what Winkfp does. It's already implemented in Dr.Gini B014.

My tests were performed on non important ECUs like PDC (cheap ones)
I locked this function since I don't have the possibility yet to perform deep tests and to certify there is no risk at all

If you want to give it a try, make sure Winkfp is installed and updated
Then you can get your ECU information from its ZUSB Number (Programing function remains locked for now)
I wouldn't mind verifying the flash capability of your tool, but if it does everything just like WinKFP, why would we not use WinKFP in the first place?

But here's a proof of concept proposal:
Attached is my lightly modified A7610591.0da - would you (or Dave) be able to correct the checksum and RSA signature and send back the 0da file? I'd then try flashing it either with Dr.Gini or WinKFP and let everyone know if it worked.
Attached Files
File Type: zip 7610591_mod.zip (212.1 KB, 162 views)
Appreciate 1
      04-30-2016, 11:50 AM   #1015
DWR
Banned
799
Rep
1,630
Posts

Drives: 2009 335d
Join Date: Oct 2014
Location: Maine

iTrader: (0)

Quote:
Originally Posted by Mik325tds View Post
That would be the golden solution, but I'm afraid that this piece of code is included in the bootloader. If we don't get this right on the first try, we'd permanently brick the TCU that we try it on. Something like that is best tried on the bench where the TCU can be recovered through a BDM flasher.
Ouch! I remember you saying that before.

I'm trying to remember who said they had access to a BDM flasher. And then a spare TCU.

Is there a silver solution?
Appreciate 0
      04-30-2016, 11:57 AM   #1016
Mik325tds
Major
Mik325tds's Avatar
United_States
808
Rep
1,192
Posts

Drives: 335d M-Sport
Join Date: Jul 2014
Location: Greater Detroit

iTrader: (0)

Quote:
Originally Posted by DWR View Post
Ouch! I remember you saying that before.

I'm trying to remember who said they had access to a BDM flasher. And then a spare TCU.

Is there a silver solution?
Haha, yes the silver solution would be to correct the RSA manually by Dave/Gini every time someone wants to change a cal. But I'd think that would get pretty annoying for them unless it's somehow automated.
Appreciate 0
      04-30-2016, 09:41 PM   #1017
DWR
Banned
799
Rep
1,630
Posts

Drives: 2009 335d
Join Date: Oct 2014
Location: Maine

iTrader: (0)

Quote:
Originally Posted by Mik325tds View Post
Haha, yes the silver solution would be to correct the RSA manually by Dave/Gini every time someone wants to change a cal. But I'd think that would get pretty annoying for them unless it's somehow automated.
Lol, how about automated is silver and manual is honorable mention.
Appreciate 0
      05-01-2016, 02:45 AM   #1018
gini
New Member
gini's Avatar
Germany
43
Rep
19
Posts

Drives: BMW e87 120d 03.2007
Join Date: Feb 2013
Location: Germany

iTrader: (0)

Quote:
Originally Posted by Mik325tds View Post
I wouldn't mind verifying the flash capability of your tool, but if it does everything just like WinKFP, why would we not use WinKFP in the first place?
Hi Mik325tds,
programing is not activated in Dr.Gini since it's not fully tested (eg. never tested with CAS, DME, EGS, and many other expensive ECUs)

If I reproduced what Winkfp does, it's only to fully understand what Winkfp does during the programing process. This allows me to eventually modify this process if necessary since WinKfp is not updated anymore

WinKfp remains the safest and most reliable flashing tool for OBD programing

Quote:
Originally Posted by Mik325tds View Post
But here's a proof of concept proposal:
Attached is my lightly modified A7610591.0da - would you (or Dave) be able to correct the checksum and RSA signature and send back the 0da file? I'd then try flashing it either with Dr.Gini or WinKFP and let everyone know if it worked.
The checksums in your modified Data file have been already corrected...

For the RSA signature, sorry I can't help
What I can do is the ECU authentication only
Appreciate 0
      05-01-2016, 07:22 AM   #1019
dave205t
Private First Class
218
Rep
109
Posts

Drives: BMW e90
Join Date: Jan 2016
Location: Netherlands

iTrader: (0)

New TCU_flash version (0.5.0):

* detects TCU type and dumps sections accordingly full dump on 6HP19(TU), some sim on 6HP26/32(TU)
* more descriptive file naming of saved binary as per detected TCU type, hardware nr.

Best regards, Dave
Attached Files
File Type: zip TCU_flash_0_5_0.zip (244.4 KB, 505 views)
Appreciate 2
      05-01-2016, 07:46 AM   #1020
335dsleeper
Banned
390
Rep
1,622
Posts

Drives: 09' 335d 10'35D
Join Date: Dec 2015
Location: Suffolk, va

iTrader: (0)

Quote:
Originally Posted by DWR View Post
Ouch! I remember you saying that before.

I'm trying to remember who said they had access to a BDM flasher. And then a spare TCU.

Is there a silver solution?
I have a spare TCU. PM if needed.
Appreciate 4
      05-01-2016, 08:43 AM   #1021
winnepooh
Registered
8
Rep
4
Posts

Drives: 320d
Join Date: Apr 2016
Location: Germany

iTrader: (0)

Quote:
Originally Posted by Mik325tds View Post
Very interesting. Thanks! I assume that was a wide open throttle pull?
When you get a chance this weekend, would you mind doing a 30% and/or 40% throttle pull with these variables logged in TestO?
STAT_ABTRIEBSDREHZAHL_WERT
STAT_MOTORDREHZAHL_WERT
STAT_MOTORISTMOMEMENT_WERT
STAT_TURBINENDREHZAHL_WERT
STAT_FAHRPEDALWINKEL_WERT
STAT_ISTGANG_WERT
STAT_SA_WERT
STAT_WK_WERT
Hello,

had some time to make 2 logs.

Didn´t find STAT_SA_WERT.
I tired to make a custom job in Testo but it always crashed.

What value ist STAT_SA-WERT?



Perhaps a way to go around the RSA signature problem:
http://www.ecuconnections.com/forum/...hp?f=2&t=28994

Perhaps the RSA check routine is a part of the 0pa-file?

Winnepooh
Attached Files
File Type: txt 2016-05-01-142056.txt (68.1 KB, 164 views)
File Type: txt 2016-05-01-142231_45.txt (45.0 KB, 147 views)
Appreciate 1
      05-01-2016, 11:29 AM   #1022
DWR
Banned
799
Rep
1,630
Posts

Drives: 2009 335d
Join Date: Oct 2014
Location: Maine

iTrader: (0)

Quote:
Originally Posted by 335dsleeper View Post
I have a spare TCU. PM if needed.
Good man. Let you know when we get the BDM in place. Thank you very much.
Appreciate 0
      05-01-2016, 11:34 AM   #1023
gini
New Member
gini's Avatar
Germany
43
Rep
19
Posts

Drives: BMW e87 120d 03.2007
Join Date: Feb 2013
Location: Germany

iTrader: (0)

Reading speed improved a bit...

approx: 1 791 bytes/sec
Appreciate 0
      05-01-2016, 12:02 PM   #1024
DWR
Banned
799
Rep
1,630
Posts

Drives: 2009 335d
Join Date: Oct 2014
Location: Maine

iTrader: (0)

Thought I would post pooh's 2nd log as a graph, as a favor to the community. Not sure what we are looking for?
Name:  Picture1.png
Views: 1341
Size:  79.2 KB
Appreciate 0
      05-03-2016, 11:42 AM   #1025
Mik325tds
Major
Mik325tds's Avatar
United_States
808
Rep
1,192
Posts

Drives: 335d M-Sport
Join Date: Jul 2014
Location: Greater Detroit

iTrader: (0)

Quote:
Originally Posted by winnepooh View Post
Hello,

had some time to make 2 logs.

Didn´t find STAT_SA_WERT.
I tired to make a custom job in Testo but it always crashed.

What value ist STAT_SA-WERT?
No problem. The STAT_SA_WERT is not that important. We think it is the internal status machine that triggers the shifts. Since you have the actual gear position, the SA_WERT is redundant info.

Quote:
Originally Posted by winnepooh View Post
Perhaps a way to go around the RSA signature problem:
http://www.ecuconnections.com/forum/...hp?f=2&t=28994

Perhaps the RSA check routine is a part of the 0pa-file?

Winnepooh
Good find on the ecuconnections forum. I actually posted there but no one responded. I guess we can try finding the pattern they've been talking about and replacing it with "no operation" commands, but that brings us back to the problem of tampering with the boot-loader of the TCU which is really dangerous if you only have one shot. We'll pursue this once I get hold of that spare TCU from 335dsleeper.
Appreciate 0
      05-03-2016, 11:45 AM   #1026
Mik325tds
Major
Mik325tds's Avatar
United_States
808
Rep
1,192
Posts

Drives: 335d M-Sport
Join Date: Jul 2014
Location: Greater Detroit

iTrader: (0)

Quote:
Originally Posted by DWR View Post
Thought I would post pooh's 2nd log as a graph, as a favor to the community. Not sure what we are looking for?
Attachment 1414634
Thanks for visualizing the data DWR. Is this the first or second file? Can you please put in the throttle as well. However, it looks like the Alpina shifts similar to ours in the first two gears. It looks the TC on the shift to 3rd gear and leaves it open in 1st and second. Maybe it delivers a little bit more torque in first and second though.
Appreciate 0
      05-03-2016, 01:14 PM   #1027
dave205t
Private First Class
218
Rep
109
Posts

Drives: BMW e90
Join Date: Jan 2016
Location: Netherlands

iTrader: (0)

Quote:
Originally Posted by Mik325tds View Post
Good find on the ecuconnections forum. I actually posted there but no one responded. I guess we can try finding the pattern they've been talking about and replacing it with "no operation" commands, but that brings us back to the problem of tampering with the boot-loader of the TCU which is really dangerous if you only have one shot. We'll pursue this once I get hold of that spare TCU from 335dsleeper.
Even if you manage to find the such a pattern (which i can assure you does not exist in TCU), you'll wont be able to change the code, as its compressed; but lets assume code changing succeeds you'll still have to to correct the other checksums.
Appreciate 1
      05-03-2016, 01:52 PM   #1028
PD330
New Member
5
Rep
24
Posts

Drives: 325i
Join Date: Apr 2016
Location: Berlin, Germany

iTrader: (0)

Is it realy such a big deal to write a tool, which can correct checksums/rsa? I did not analyze the data yet, but when you can correct it manualy, what exactly is the problem to calculate them from a loaded file and write them automaticaly to the correct location in the file?

Last edited by PD330; 05-03-2016 at 03:43 PM..
Appreciate 0
      05-03-2016, 04:10 PM   #1029
ChrizLoud
F11 520D LCI - Stage I
ChrizLoud's Avatar
Sweden
46
Rep
187
Posts

Drives: F11 520D LCI - Stage I
Join Date: Jul 2012
Location: Sweden

iTrader: (0)

This is so exciting ☺️
Appreciate 0
      05-03-2016, 10:13 PM   #1030
Mik325tds
Major
Mik325tds's Avatar
United_States
808
Rep
1,192
Posts

Drives: 335d M-Sport
Join Date: Jul 2014
Location: Greater Detroit

iTrader: (0)

Quote:
Originally Posted by dave205t View Post
Even if you manage to find the such a pattern (which i can assure you does not exist in TCU), you'll wont be able to change the code, as its compressed; but lets assume code changing succeeds you'll still have to to correct the other checksums.
I didn't know that bootloader was also compressed. Thanks for the clarification. Where you able to see if the bootloader also has a RSA signature? How many checksums are involved?

To the note above: If you're able to correct the files RSA signature on a binary level and gini is able to transform it back to a .0da/0pa - what is keeping us from doing that?

Maybe the spare TCU from 335dsleeper would do us more good in your hands?
Appreciate 0
      05-04-2016, 03:03 AM   #1031
dave205t
Private First Class
218
Rep
109
Posts

Drives: BMW e90
Join Date: Jan 2016
Location: Netherlands

iTrader: (0)

Quote:
Originally Posted by Mik325tds View Post
I didn't know that bootloader was also compressed. Thanks for the clarification. Where you able to see if the bootloader also has a RSA signature? How many checksums are involved?
There are a total of 19 checksums in the TCU bins (various types), excluding the two RSA's. The bootloader is indeed also covered by the application RSA.

Quote:
Originally Posted by Mik325tds View Post
To the note above: If you're able to correct the files RSA signature on a binary level and gini is able to transform it back to a .0da/0pa - what is keeping us from doing that?
The sections that need to be rewritten are normally not in 0pa/0da, im not sure it will work on the first try and might be hard to recover after that.

Quote:
Originally Posted by Mik325tds View Post
Maybe the spare TCU from 335dsleeper would do us more good in your hands?
A TCU to test on, assuming i can somehow disassemble it to get to the electronics to BDM read it would speed things up considerably (would rather try it on a otherwise broken one, mechanical wise) i have a BDM programmer.

Best regards, Dave
Appreciate 0
      05-04-2016, 01:35 PM   #1032
DWR
Banned
799
Rep
1,630
Posts

Drives: 2009 335d
Join Date: Oct 2014
Location: Maine

iTrader: (0)

OK, so if 335dsleeper can send the TCU to Dave in the the Netherlands, I assume some of us here will split the tab for postage? Don't know the best way to do that, but I'm in.
Appreciate 1
      05-04-2016, 02:29 PM   #1033
CvilleBill
Private First Class
24
Rep
110
Posts

Drives: 2011 335d
Join Date: Jan 2016
Location: Va

iTrader: (0)

I'll chip in.
Appreciate 1
      05-04-2016, 02:46 PM   #1034
_TB_
Lieutenant
152
Rep
459
Posts

Drives: E91 325d Touring
Join Date: Jul 2015
Location: Denmark

iTrader: (0)

So will I.
Appreciate 1
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 04:02 AM.




e90post
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST