obliteration icon indicating copy to clipboard operation
obliteration copied to clipboard

No DT_SCE_ORIGINAL_FILENAME

Open SoffiMeower opened this issue 2 years ago • 12 comments

++++++++++++++++++ E [00:00:00:00:002]:0x000000000000388c:kernel\src/main.rs:156
Initialize failed: cannot open /mnt/sandbox/ITEM00001_000/app0/eboot.bin -> cannot parse file info -> no DT_SCE_ORIGINAL_FILENAME.

Occurs on the Itemzflow Game Manager: https://pkg-zone.com/details/ITEM00001

SoffiMeower avatar Sep 16 '23 19:09 SoffiMeower

I doubt if it actually boots on the actual PS4. Can you test it?

ultimaweapon avatar Sep 16 '23 20:09 ultimaweapon

Uh, sir, I use Itemzflow to dump my games from my PS4... It's one of the most popular apps for homebrew.

SoffiMeower avatar Sep 17 '23 00:09 SoffiMeower

__int64 __fastcall obj_get_original_filename(__int64 a1)
{
  __int64 v1; // rax
  __int64 result; // rax
  v1 = *(_QWORD *)(a1 + 392);
  if ( v1 )
    result = *(_QWORD *)(v1 + 216);
  else
    result = 0LL;
  return result;
}

SoffiMeower avatar Sep 17 '23 02:09 SoffiMeower

The above function is unrelated to this error.

ultimaweapon avatar Sep 17 '23 08:09 ultimaweapon

Good thing is that since it's homebrew, it's easy for you to test as you can download it

SoffiMeower avatar Sep 17 '23 20:09 SoffiMeower

The problem here is why it is working on the actual console. If no DT_SCE_ORIGINAL_FILENAME the acquire_per_file_info_obj will fail and it will cause exec_self_imgact to fail too.

ultimaweapon avatar Sep 18 '23 09:09 ultimaweapon

Idk, but you could see my video on 348 of it working, as I used Itemzflow to access the pkg installer and open the controller test.

SoffiMeower avatar Sep 18 '23 10:09 SoffiMeower

The problem here is why it is working on the actual console. If no DT_SCE_ORIGINAL_FILENAME the acquire_per_file_info_obj will fail and it will cause exec_self_imgact to fail too.

Idk if this helps, but here's a KLog from my PS4 of me launching the app:

https://pastebin.com/ApkZ89KC

SoffiMeower avatar Sep 19 '23 02:09 SoffiMeower

Not much useful information in the log. Do you know how to get the kernel log?

ultimaweapon avatar Sep 19 '23 15:09 ultimaweapon

As far as I can tell, Klog is the best I can get.

SoffiMeower avatar Sep 19 '23 16:09 SoffiMeower

As far as I understand from the reverse, the SCE_ORIGINAL_FILENAME and SCE_MODULE_INFO fields are required only in cases where: SCE_HASHSZ and SCE_SYMTABSZ are present as well as hdr_e_type=ET_SCE_DYNAMIC

red-prig avatar Sep 29 '23 22:09 red-prig

Thanks for the information. I suspect this one is not a dynamic executable because from what I remembered the kernel will be called acquire_per_fileinfo only when it is dynamic executable.

ultimaweapon avatar Sep 29 '23 23:09 ultimaweapon