Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Disassembly, Reassembly, Tools and devleopment. Going deep with Hardware and Software.
Post Reply
modzer321
Posts: 58
Joined: Mon Sep 07, 2020 8:07 pm
cars: wh statesman
vy ss
vt ss
vx clubsport
vt clubsport
vy clubsport

Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Post by modzer321 »

Hello,
Could someone please provide a detailed explanation of how the tuner lock on a PCM works? Specifically, I am interested in understanding what occurs when you ground the designated pin to unlock the flash memory. What is the process that takes place in the PCM when this happens, and how does it affect the bootloader or any other relevant components when reading the flash?
Any insight into the technical workings of this process would be greatly appreciated.

Thank you!
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Post by kur4o »

When you ground the pin, you interrupt the link between cpu and flash memory, so cpu can`t read data from specific addresses, reading only FFs, since link is cut. This triggers some protection in pcm and it enters bootblock recovery loop. Now pcm is unlocked and you can go straight to flashing new file.
modzer321
Posts: 58
Joined: Mon Sep 07, 2020 8:07 pm
cars: wh statesman
vy ss
vt ss
vx clubsport
vt clubsport
vy clubsport

Re: Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Post by modzer321 »

ok so why not upload a custom bootloader to do this so we don't have to ground the pin
User avatar
antus
Site Admin
Posts: 8988
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Post by antus »

That is how we upload the flash kernel, then you can do whatever you want, read or write. Tunerlock is a proprietary thing, once you're in you can clone a factory bin to restore the pcm to original state and clear it, or if you want to keep the operating system and calibration and you have another bin with the same operating system that isn't locked you can upload the parameter block from it to clear most types of tunerlock. Note that uploading paramater block or clone will change your vin (which you can just change back) and your pcm serial number.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
modzer321
Posts: 58
Joined: Mon Sep 07, 2020 8:07 pm
cars: wh statesman
vy ss
vt ss
vx clubsport
vt clubsport
vy clubsport

Re: Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Post by modzer321 »

this would mean no grounding the pin right
User avatar
antus
Site Admin
Posts: 8988
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Post by antus »

yeah, once you've written normal security data over the top, no more grounding the pin.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
modzer321
Posts: 58
Joined: Mon Sep 07, 2020 8:07 pm
cars: wh statesman
vy ss
vt ss
vx clubsport
vt clubsport
vy clubsport

Re: Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Post by modzer321 »

but why do we need to ground the pin to start with cant we still upload the custom kernel or is there something I'm missing
User avatar
pman92
Posts: 577
Joined: Thu May 03, 2012 10:50 pm
Location: Castlemaine, Vic
Contact:

Re: Clarification on Tuner Lock and Grounding Pin to Unlock PCM

Post by pman92 »

You need to "unlock" the PCM to be able to upload to it.
Generally the PCM sends some form of "seed" and a "key" is calculated from it by the software, and sent back to unlock it. The algorithm to generate the key has been figured out.
A tuner locked PCM does not accept the same key, it accepts something else (either from a different algorithm, or simply hardcoded in the memory of the PCM). So without knowing what it is, or how to calculate it, you can't unlock it.
When you ground the pin the PCM cannot read certain memory, which causes it to essentially crash and enter a "safe state" where it isn't locked and can be recovered. So you no longer have to calculate any key to be able to upload to it.
Post Reply