I am trying to run an application in kernel memory so that it is not wiped. I have tried loading this at 0x000a0000 as well as many other locations, but each time i try to run it it fails on ps2link and freezes the PS2 or if i try and run it from memory card it returns the red error screen.
even trying to compile something like this it fails
As far as I know ps2link is located at this area. There are two workarounds possible:
1. You need to recompile ps2link. There is an option to load it at a high memory address. It is possible to load the recompiled version of ps2link with ps2link itself.
2. Pack your application with sjcrunch or another application packer.
I've never seen a red error screen, i'm curious where this comes from.
JorDy wrote:I am trying to run an application in kernel memory so that it is not wiped. I have tried loading this at 0x000a0000 as well as many other locations, but each time i try to run it it fails on ps2link and freezes the PS2 or if i try and run it from memory card it returns the red error screen. [...]
FYI, 0x000A0000 doesn't belong to kernel memory. The kernel is located at 0x80000000 - 0x80080000 (in KSEG0) or 0xA0000000 - 0xA0080000 (in KSEG1), respectively.
The problem is that you seem to lack the basics of memory spaces and ELF loading.