ghidra_psx_ldr icon indicating copy to clipboard operation
ghidra_psx_ldr copied to clipboard

Cannot open projects

Open Kneesnap opened this issue 2 years ago • 8 comments
trafficstars

I have a project which contains between 50-100 executables. Most of the executables are different versions of a particular PSX game, the others are Windows builds, related tools, etc. Unfortunately, ghidra had a hard crash a little while ago. I thought everything was fine since most of the projects I had seemed perfectly fine. Unfortunately it took a while to realize that none of the PSX executables load anymore.

Here's what happens when I try to open it in Ghidra. Example

This is strange because I have the plugin installed and enabled just fine. In fact, if I add a new PSX executable to the project, it still works perfectly!

However, I notice that the new ones seem to have their processor listed as "MIPS" instead of "PSX". I'm not sure I understand why that is.

I am using Ghidra 10.1.1, with ghidra_10.1.1_PUBLIC_20220123_ghidra_psx_ldr.zip (outdated since that's what I started this project with). Unfortunately, I need to recover these projects since some of them are incredibly well documented in terms of structs, functions, etc. What are my options for recovering from this?

Kneesnap avatar May 21 '23 05:05 Kneesnap

The PSX:LE:32:default processor language should be provided by the plugin, so it'd really mean it's not installed properly.

You could always kludge by changing the following file in your Ghidra installation: Ghidra/Processors/MIPS/data/languages/mips.ldefs. The MIPS:LE:32:default definition on top can either be copied or renamed to PSX:LE:32:default. I'd highly advise to backup your databases first however prior to opening it with this kludge.

You'll lose some of the specific opcodes from the GTE.

nicolasnoble avatar May 21 '23 05:05 nicolasnoble

Hmm, how would I fix the broken installation? I'd hope to fix it that way.

Kneesnap avatar May 21 '23 06:05 Kneesnap

You can try to change your project language in properties.

lab313ru avatar May 21 '23 06:05 lab313ru

You can try to change your project language in properties.

I did try that, but it would error that it couldn't open the project (Presumably because of the LanguageNotFoundException)

Kneesnap avatar May 21 '23 22:05 Kneesnap

You can try to change your project language in properties.

You can't, as ghidra will search for the PSX:LE:32:default one which doesn't exist, and throws an exception. It's a bit bad.

nicolasnoble avatar May 22 '23 00:05 nicolasnoble

Hmm, how would I fix the broken installation? I'd hope to fix it that way.

Maybe try uninstalling / reinstalling the extension ?

nicolasnoble avatar May 22 '23 00:05 nicolasnoble

You can send me one of your projects in a private way ([email protected]), I'll try to do something.

lab313ru avatar May 22 '23 03:05 lab313ru

Great! I'll follow up on this in a day or two when I get a chance.

On Sun, May 21, 2023, 8:53 PM Vladimir Kononovich @.***> wrote:

You can send me one of your projects in a private way ( @.***), I'll try to do something.

— Reply to this email directly, view it on GitHub https://github.com/lab313ru/ghidra_psx_ldr/issues/69#issuecomment-1556481539, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSCIYJVWFHIE2U3G46EKWDXHLPNHANCNFSM6AAAAAAYJFLKLM . You are receiving this because you authored the thread.Message ID: @.***>

Kneesnap avatar May 22 '23 22:05 Kneesnap