forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem loading elfs

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
JorDy



Joined: 11 Dec 2005
Posts: 121

PostPosted: Sat Nov 11, 2006 9:07 pm    Post subject: problem loading elfs Reply with quote

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
Code:
#include <tamtypes.h>
#include <stdio.h>
#include <kernel.h>
#include <sifrpc.h>

int main(void)
{
        SifInitRpc(0);

   printf("Welcome\n\n");

   SifExitRpc();
   SleepThread();
   return 0;
}
[/code]
Back to top
View user's profile Send private message
Mega Man



Joined: 18 Jun 2005
Posts: 274

PostPosted: Sun Nov 12, 2006 9:50 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
JorDy



Joined: 11 Dec 2005
Posts: 121

PostPosted: Mon Nov 13, 2006 3:55 am    Post subject: Reply with quote

ive tried the sjcrunch method no luck :-/

and as for compiling ps2link too much hassle ive tried compiling this before just ran into error upon error.

dont know what else to do
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Tue Nov 14, 2006 9:27 pm    Post subject: Re: problem loading elfs Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group