GM E38 E67 Kernel/Bootloader Development Extravaganza

Disassembly, Reassembly, Tools and devleopment. Going deep with Hardware and Software.
Posts: 278
Joined: Mon Mar 09, 2020 4:35 pm
Location: California

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby In-Tech » Fri Nov 13, 2020 4:31 pm

Badass Tazman, it's quite a bit to devour. It's quite amazing how much different this is.
I don't have any T87a's to help with.
I haven't cut open an e92 and it doesn't look like I need to unless there is something you would like me to test. The only weird thing I can report, if it matters, is the e39a and the e92a on keyon draws quite a few thousand ma compared to the earlier versions and then settles back to a small ma draw. Basically as if they are charging some caps. A hardware look is probably in order and I apologize I haven't had the time to do much lately :(
Let us know whatever we can do to help :)

User avatar
Posts: 2276
Joined: Thu May 17, 2012 8:53 pm
Location: WA

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby Tazzi » Fri Nov 13, 2020 4:52 pm

Thanks for the insight In-Tech!,

I was told about the T87a lock situation and figured it would be interesting to investigate. Iv got one on the way over to me so I can tear it apart. See if I cant BDM/JTAG it and/or start messing with the stuff I have posted. Im feeling kinda confident about the recovery mode situation as usually recovery code is wanting to accept anything to get it back up and running. :thumbup:
Your Local Aussie Reverse Engineer
Site:www.envyouscustoms.com
Mob:+61406 140 726
Image

User avatar
Posts: 2276
Joined: Thu May 17, 2012 8:53 pm
Location: WA

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby Tazzi » Fri Nov 13, 2020 6:10 pm

Only other option I didnt consider is if the back lid is being removed and a BDM/JTAG device is being installed to dump the flash, edit the secure bootloader and flashing back in. I mean.. 10mins with a heatgun.. doesnt take much.
Your Local Aussie Reverse Engineer
Site:www.envyouscustoms.com
Mob:+61406 140 726
Image

Posts: 278
Joined: Mon Mar 09, 2020 4:35 pm
Location: California

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby In-Tech » Fri Nov 13, 2020 7:15 pm

Hiya,
I just ran another test, not sure if it matters. On the e92a, battery on, negligent power absorption like all the other gm controllers. Key on is many ma as mentioned. BUT this only happens once. If you key on later, the caps must already be charged. Doubtful this has anything to do with security, just thought I would mention since the earlier controllers don't do this.
Tazzi and others... I have access, via a salvage yard supplier, to a lot of controllers on the cheap. Let me know what I can do to help from this side of the planet :thumbup:

User avatar
Posts: 2276
Joined: Thu May 17, 2012 8:53 pm
Location: WA

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby Tazzi » Fri Nov 13, 2020 7:52 pm

In-Tech wrote:Hiya,
I just ran another test, not sure if it matters. On the e92a, battery on, negligent power absorption like all the other gm controllers. Key on is many ma as mentioned. BUT this only happens once. If you key on later, the caps must already be charged. Doubtful this has anything to do with security, just thought I would mention since the earlier controllers don't do this.
Tazzi and others... I have access, via a salvage yard supplier, to a lot of controllers on the cheap. Let me know what I can do to help from this side of the planet :thumbup:


I think I have most things covered currently. The E41 I bought got refunded as it was "miss placed". I think its more the fact I got a dirt cheap price and they didnt want to let it go.

But as for the T87a, since it uses a spc564a80l7 processor, seems one could use a PEmicro tool and software: http://www.pemicro.com/products/product ... oductTab=3
Even havs a free 64k starter edition so... gonna try hookup to it and dump memory. :thumbup:

Looking at the supported algos.. we have:
ST SPC564A80 1x32x1024k ST_SPC564A80_1x32x1024k.pcp 1.09 12/16/2016
ST SPC564A80 1x32x1024k ST_SPC564A80_1x32x1024k_CFlash.pcp 1.10 07/10/2017 desc=CFlash
ST SPC564A80 1x32x4k ST_SPC564A80_1x32x4k_Shadow0_Blk.pcp 1.10 07/10/2017 desc=Shadow0_Blk
ST SPC564A80 1x32x4k ST_SPC564A80_1x32x4k_Shadow1_Blk.pcp 1.10 07/10/2017 desc=Shadow1_Blk
Your Local Aussie Reverse Engineer
Site:www.envyouscustoms.com
Mob:+61406 140 726
Image

User avatar
Posts: 2276
Joined: Thu May 17, 2012 8:53 pm
Location: WA

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby Tazzi » Fri Nov 13, 2020 8:12 pm

seems easy enough....

pic1.PNG
pic1.PNG (371.26 KiB) Viewed 643 times


pic2.PNG
pic2.PNG (40.64 KiB) Viewed 643 times
Your Local Aussie Reverse Engineer
Site:www.envyouscustoms.com
Mob:+61406 140 726
Image

User avatar
Posts: 2276
Joined: Thu May 17, 2012 8:53 pm
Location: WA

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby Tazzi » Fri Nov 13, 2020 8:24 pm

Another option is the BAM implementation which seems to allow flashing over CANBus when put into BAM mode: https://www.st.com/resource/en/data_bri ... lasher.pdf

Watched this great vid of an E41 tear down: https://www.youtube.com/watch?v=_SCJzzQckCA
Attempts to attack the BAM, which is locked with a different password to default.

So... one would 'assume' the T87a is doing the same. But never a good thing to assume.

Again, attacking via a recovery mode may hold the answers

Dayum, he managed to get into a locked jtag with glitching: https://eprint.iacr.org/2020/937.pdf

In one of the videos, I believe he described each ecu having a custom password from what he saw in power analysis. So even finding one doesnt mean it works for them all.
I dont believe his documents explicitly state if it is the same or not, but having to do that on every device to rip out the private password to gain access, then modify the boot code.. seems pretty incredible?? :shock:

Starting to feel more likely towards a recovery state being taken advantage of to upload custom code maybe?
Your Local Aussie Reverse Engineer
Site:www.envyouscustoms.com
Mob:+61406 140 726
Image

Posts: 2
Joined: Tue Jul 25, 2017 11:53 am

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby Hexadecimal » Sun Nov 15, 2020 2:51 am

How can I get my hands on a license for this software? Can it do e37 ecu? Also does clone work on serial number and VIN?

User avatar
Posts: 2276
Joined: Thu May 17, 2012 8:53 pm
Location: WA

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby Tazzi » Sun Nov 15, 2020 12:40 pm

Hexadecimal wrote:How can I get my hands on a license for this software? Can it do e37 ecu? Also does clone work on serial number and VIN?


As seen in the thread title, currently only does E38 and E67.

I have not added support for any other ecu at this time.
Your Local Aussie Reverse Engineer
Site:www.envyouscustoms.com
Mob:+61406 140 726
Image

Posts: 1
Joined: Wed Dec 09, 2020 11:54 am

Re: GM E38 E67 Kernel/Bootloader Development Extravaganza

Postby Hurst_CE_TA » Wed Dec 09, 2020 12:04 pm

Does this do a 100% complete clone of E38 ecm?

I have io Terminal and I was told it could not read and write a couple of sectors and could not be 100% cloned.

I see you are working on transmission stuff as well. Do you want any bin files of gas 6 speed controllers?

PreviousNext

Return to Engineering and Reverse Engineering

Who is online

Users browsing this forum: No registered users and 0 guests