Berion
Developer
You cannot use it just like that. :P Cut the ELF header and sign it using kelftool GUI made by @alexparrado.HDD OSD/PSBBN/DESR will not boots ELF, only XLF (KELF).
modify_header
Code:
hdl_dump.exe modify_header 192.168.0.10 PP.TEST
This command will inject header attributes in any already existing partition.
It can operate such files:
system.cnf
icon.sys
list.ico
del.ico
boot.kelf
boot.elf
boot.kirx
Any file can be skipped. Program first of all tries to inject boot.kelf.
If it is not found it will try to inject boot.elf.
Now icon.sys can be in any of 2 formats: Memory Card format or HDD format.
del.ico injection address: 0x041000
If del.ico is used list.ico maximum size 260 096bytes.
boot.elf (or boot.kelf) injection address - 0x111000
boot.elf size limit - 2 026 464 bytes (thanks to kHn)
boot.kelf size limit - 3 076 096 bytes (if boot.kirx not used)
boot.kelf size limit - 2 031 616 bytes (if boot.kirx is used)
boot.kirx injection address - 0x301000
boot.kirx size limit - 1 044 480 bytes
So what I have been doing should work, right? Anyway, I'll try to use the XLF. Thanks.HDL_dump installs a hackish KELF from boot.elf. HDDOSD can run that.
I'll leave the post 19 signed file here anyway if needed...
Only executable written in APA space or point by system.cnf in APA to PFS must be signed elf (because this is how HDD OSD launching executables). The rest depend of programmers will.While I understand the injected file must be XLF, does that mean the same for the version of OPL?
Yea that's right, idea being that all (future) versions of OPL could be used for booting games direct from HDDOSD that way we don't have the problem of miniOPL needing to be updated and also being able to use pademu, gsm, cheats, vmc etc etc.@Berion I think it is exactly that.
- Launcher for the header, signed by kHn above.
- "special" OPL which can understand and act upon the "arguments" passed from the Launcher.
Yes, I mentioned exactly that in the beginning of the thread @Krah!Yea that's right, idea being that all (future) versions of OPL could be used for booting games direct from HDDOSD that way we don't have the problem of miniOPL needing to be updated and also being able to use pademu, gsm, cheats, vmc etc etc.
Thank you krHACKen.
That's actually a good idea, BUT also requires that a partition is mendatory where OPL could be stored.
So... If OPL could support starting a game via arguments, a Loader for OPL could "simply" retrieve the partition/path it was loaded/started from and could execute OPL with the path passed as arg.
Pro:
Con:
- OPL could be updated very simply (only 1 file) and it wouldn't need to update every partition-info. Additionally this replacement is done on a filesystem-level, which might be "safer".
- OPL could use the normal settings (modes, GSM, PADEMU, VMCs, etc.) for the game, if it knows which one it is.
- Loader-Payload could be quite small and simple and hence be used in multiple "limited Payload size"-scenarios.
- etc.
- Mendatory partition, but some partitions are USUALLY set up anyway. Simplest solution is +OPL or a system-partition.
- etc.?
"HDL Dump (mod by AKuHAK) v0.9.2 Rev47.exe" modify_header hdd1: "PP.SCUS-97113.HDL.Ico"
hdd_partition=__common