RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 2:11 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 174 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12
Author Message
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Thu Feb 04, 2021 8:24 pm 
Offline
RomRaider Donator

Joined: Sun Jan 03, 2016 10:05 am
Posts: 217
Thanks - it looks like Home doesn't support Renesas SH and also that the home version is an annual license, not perpetual.


Top
 Profile  
 
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Thu Feb 04, 2021 10:23 pm 
Offline
Newbie

Joined: Tue Jan 05, 2016 11:27 pm
Posts: 64
You could try using Ghidra instead. Free and supports SuperH.


Top
 Profile  
 
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Fri Feb 05, 2021 12:25 pm 
Offline
RomRaider Donator

Joined: Sun Jan 03, 2016 10:05 am
Posts: 217
Thanks, I am going to check it out, thanks.


Top
 Profile  
 
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Sat Feb 20, 2021 5:33 pm 
Offline
Moderator

Joined: Wed Nov 22, 2006 10:23 pm
Posts: 2565
I haven't switched over to Ghidra yet, but I intend to. The decompiler is really nice.

What's missing is a way to get all of the labels and comments out of my IDA projects and into Ghidra. I'm working on it though.

_________________
2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG
Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!


Top
 Profile  
 
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Sun Feb 21, 2021 8:55 pm 
Offline
Newbie

Joined: Tue Jan 05, 2016 11:27 pm
Posts: 64
NSFW wrote:
I haven't switched over to Ghidra yet, but I intend to. The decompiler is really nice.

What's missing is a way to get all of the labels and comments out of my IDA projects and into Ghidra. I'm working on it though.


That's actually pretty straightforward. There's an IDAPro plug-in that comes with Ghidra that you can use to spit out an .xml file that Ghidra will read in to get all the names. See here: https://github.com/NationalSecurityAgen ... issues/180


Top
 Profile  
 
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Wed Mar 10, 2021 12:32 am 
Offline
Moderator

Joined: Wed Nov 22, 2006 10:23 pm
Posts: 2565
The only problem with that plugin is that it requires IDA Pro 6.2 and my copy is 6.1.

If you (or anyone) has a 6.2 or later and would be willing to load three projects and convert them to Ghidra with the plugin, I'd be grateful... :)

I have one for my LGT, and two for my Corvette.

_________________
2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG
Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!


Top
 Profile  
 
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Wed Mar 10, 2021 2:27 pm 
Offline
Newbie

Joined: Tue Jan 05, 2016 11:27 pm
Posts: 64
NSFW wrote:
The only problem with that plugin is that it requires IDA Pro 6.2 and my copy is 6.1.

If you (or anyone) has a 6.2 or later and would be willing to load three projects and convert them to Ghidra with the plugin, I'd be grateful... :)

I have one for my LGT, and two for my Corvette.


Absolutely, shoot me a PM or msg on Slack, etc. It's the least I could do for all of your contributions!


Top
 Profile  
 
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Sat Apr 15, 2023 1:55 pm 
Offline
RomRaider Donator

Joined: Fri Mar 07, 2008 11:29 am
Posts: 54
Professwrx wrote:
ilarson007 wrote:
NSFW wrote:
6) Unfold the startup/reset code. The first 4 bytes of ROM are a pointer to the code that runs when the ECU is powered up. Jump to that location (AAC in the ROM I'm looking at) and press 'c' to mark it as 'code.' You'll see a small portion of the ROM disassembled.


So, I will admit that I don't know the first thing about ROM disassembly. I am trying to open up the 710J (04 STi) ROM in Ida, and am stuck on this step... First of all, how long is 4 bytes in hex? Second, how do I determine where this pointer is pointing to?

Open the Rom. While at the top click the rom address. press d three times. You should have made the first four bytes (8hex digits) clickable. Double click, press c.


I'm currently stuck here. It feels like double-clicking the address is supposed to do something special, not just highlight it (?), like take you to the startup sequence which you are then supposed to mark as code. However, the address is just text and doesn't "take" me anywhere. It's not a XREF and "jump to operand" doesn't work.

And trying to mark those 8 characters as code with the "c" key doesn't work either "Command 'MakeCode' Failed".

Screenshot of what I'm talking about:
https://imgur.com/a/uJxr2PY

Looked for video tutorials and found none.

No clue what to do at this point.

Already ordered a new fuel pump and probably don't need to actually find the FPDC tables, but really want to be able to reverse-engineer ROMs since I have multiple open-source tuned Subarus.

Thanks if anyone can help give a clue here!

EDIT: If I highlight the entire row including the blanks and hit C, it prompts to do an analysis and prompts to clear existing data, then seems to return the view to the original (before changing with the D key).


Top
 Profile  
 
 Post subject: Re: How To: Get started with IDA and disassembly
PostPosted: Fri Apr 21, 2023 9:38 pm 
Offline
Experienced

Joined: Fri Aug 21, 2020 6:05 am
Posts: 315
Personally, if you are starting out, I would strongly recommend using Ghidra. I've used both and I find Ghidra far superior IMHO.

Not 100% sure but it looks like you might have the endian-ness the wrong way round? The first four bytes should become an address 0x00000B68. But that image is showing 0x680B0000 (ie: the reverse). When you double click it, it looks for an address 0x680B0000, which doesn't exist, so nothing happens. Subaru SuperH ROMs are 'big endian'

At address 0x00000B68 you will find the entry function in your ROM. Go there and press 'C' and it should turn into code (unless the wrong endian-ness causes more problems).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 174 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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