RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Dec 27, 2025 3:21 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: SH7058 EEPROM?
PostPosted: Sat Dec 26, 2020 1:59 pm 
Offline
RomRaider Donator
User avatar

Joined: Fri Jul 26, 2019 3:35 am
Posts: 789
Location: United States of America
Hello all!

Is there any tunability when it comes to EEPROM? So I did an EEPROM dump (accidentally made it like 1500x larger than it needed to be, but it just kept dumping the same data over and over again so no big deal lol) and all I can see really is the VIN. I think I remember seeing people say some immobilizer stuff is there too (probably keys?) but is there anyway to flash the EEPROM? I have the VIN write RAM parameters defined, and I know that consult can rewrite the VIN as well. So it would seem that you would somehow be able to rewrite / reflash the EEPROM. Just maybe not in the typical fashion? It would make sense to ME if you just had to specify the eep write port (if that’s even a thing :lol: ) But I know that the EEPROM crap is complex. I do have an Arduino UNO, but all I can remember is potentially seeing people bench flash the EEPROM on other ECU's.

On top of this, what’s the actual size of the EEPROM that we should be dumping? When I started at 0x0000, it dumped three lines of weird code and missed the first three lines that the repeated blocks had. So I’m not quite sure what size I should specify normally.

Lastly, I made an oopsie and set the eepr location to the FUNCTION location instead of the eepr location, and this resulted in the kernel failing from a rxr dump thing. It was weird because it immediately killed the fans and everything. What would cause the kernel to seemingly fault out rather than just throw an error and keep running? Every other flash / dump failure I've encountered has resulted in Nisprog just throwing an error and the kernel to keep functioning as usual. So for the fans to cut out due to setting the eepr address to the function itself instead of the right address is quite interesting.

_________________
NissanDefinitions Repository


Top
 Profile  
 
 Post subject: Re: SH7058 EEPROM?
PostPosted: Sat Dec 26, 2020 4:04 pm 
Offline
Experienced
User avatar

Joined: Wed Jan 08, 2014 11:07 pm
Posts: 652
Pytrex wrote:
anyway to flash the EEPROM?

Multiple ways indeed.

- direct write to the IC, by desoldering or with a clip / adapter; while probably holding the mcu in reset

- for certain parameters (like VIN and immo keys), AFAIK the factory tools do this via certain SIDs, I have in mind 0x31 "startRoutine" etc. Only briefly looked a while ago and didn't find out much. I haven't heard of any generic "write raw data to eeprom" SID in the stock ROMs.

- via npkern, conditional to some very minor code additions that I vaguely recall Shuher had done and tested at one point ? basically implementing the converse of "eep_read" where the kernel calls the low-level function, provided by the ROM, that does the actual writing to the eeprom IC. Of course this method requires to know where the _read and _write functions are in the ROM.


Quote:
On top of this, what’s the actual size of the EEPROM that we should be dumping?

Depends on the ECU, they use different EEPROM ICs. A few variants are shown https://nissanecu.miraheze.org/wiki/Ecu_hw

Quote:
What would cause the kernel to seemingly fault out rather than just throw an error and keep running?

npkern has no way of knowing if you gave it a wrong address... it'll just call whatever function you give it ; if you get it wrong all bets are off.

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
 Post subject: Re: SH7058 EEPROM?
PostPosted: Sat Dec 26, 2020 8:09 pm 
Offline
RomRaider Donator
User avatar

Joined: Fri Jul 26, 2019 3:35 am
Posts: 789
Location: United States of America
Interesting. NDS2 is great for the key reprogramming, but the VIN reprogramming is definitely quite intriguing. But that's good to know that the VIN can be written through a SID parameter!

_________________
NissanDefinitions Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl