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 

Help: Compiling SIOShell from the SVN

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



Joined: 22 Oct 2004
Posts: 62

PostPosted: Mon Nov 06, 2006 5:33 pm    Post subject: Help: Compiling SIOShell from the SVN Reply with quote

I have had some trouble compiling this thing. First, the compiler was giving me an error saying cc1 was no such file or directory. I fixed that. Now I get a large list of exception errors saying "illegal operands" concerning MIPS instruction commands. Those are found within the exception.s file. I have the latest toolchain installer from ps2dev. I have even successfully compiles all of the ps2sdk samples. Can someone please help? thanks

EDIT: Heres a screenshot of the errors:

[/img]
Back to top
View user's profile Send private message
JorDy



Joined: 11 Dec 2005
Posts: 121

PostPosted: Tue Nov 07, 2006 4:42 am    Post subject: Reply with quote

when i try to compile anything with asm it always needs the registers to be prefixed by a '$' sign that should get rid of most of the errors
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Tue Nov 07, 2006 7:28 am    Post subject: Reply with quote

You have to include the "r5900_regs.h" file.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Tue Nov 07, 2006 7:58 am    Post subject: Reply with quote

The problem is more likely the name is has been lower cased on windows, rename it to exception.S (note the capital S) and it will probably build fine.
Back to top
View user's profile Send private message
Derek8588



Joined: 22 Oct 2004
Posts: 62

PostPosted: Tue Nov 07, 2006 10:39 am    Post subject: Close, but not quite there. Reply with quote

Thanks for the tip. I didnt realize such a minor thing as the case of a letter could cause so much havoc. However, I am still running into errors. I even renamed all the .s files to capital .S. I also recopied and pasted the code from the svn. Any advice is greatly appreciated. Thx.

Back to top
View user's profile Send private message
JorDy



Joined: 11 Dec 2005
Posts: 121

PostPosted: Wed Nov 08, 2006 5:11 am    Post subject: Reply with quote

your not including a library i dont think that's why you're getting "undefined reference" errors or maybe the files that contain that function have been left out
Back to top
View user's profile Send private message
Derek8588



Joined: 22 Oct 2004
Posts: 62

PostPosted: Thu Nov 16, 2006 7:45 am    Post subject: Reply with quote

I think I may have found the problem. I have been entering all the source into notepad and saving them as the filename specified. This creates spacing errors and improperly formatted text. What text editor should I be entering this information into? Maybe I should enter it into Dev C++ and save it with that... Thx for any help.

EDIT: Finally figured it out. The Makefile.eeglobal in the SVN kept giving me the error "Multiple Target Patters." So i took an eeglobal makefile from another project that successfully compiled and then tried to compile figuring they were the same. Then I realized they werent and modified it with the sioshell's svn code, and it compiled successfully. Thank god.

EDIT2: Now I get exception handler errors on ps2 after I packed it and sent it over ps2link. :( Im ready to give up

EE Exception Handler: Address Store Exception
Cause 60008014 BadVAddr 80050000 Status 70030c13

Any help?
Back to top
View user's profile Send private message
Derek8588



Joined: 22 Oct 2004
Posts: 62

PostPosted: Tue Nov 21, 2006 9:20 am    Post subject: So close but yet so far Reply with quote

Well. I finally obtained the stub file that the compiler required. The
n2e-kmode-1d00-stub. Now when I execute the ELF on my ps2 through ps2link or Launchelf, the app prints this to my console PC.

SIO:Framing Error
SIO:Framing Error
SIO:Framing Error
SIO:Framing Error
SIO:Framing Error
SIO:Framing Error
SIO:Framing Error
SIO:Framing Error
......keeps going forever and ps2 locks up.

If I press Enter or send it text, it will pause for a moment, and continue to send that message. Does anyone happen to have a precompiled version? Because I dont think I will ever get this working.
Back to top
View user's profile Send private message
Derek8588



Joined: 22 Oct 2004
Posts: 62

PostPosted: Wed Nov 29, 2006 12:16 pm    Post subject: Re: So close but yet so far Reply with quote

Well, I found out that the problem was that the metal HDD housing inside the ps2 had spliced the rxd wire, creating a short. Now I fixed it and the program works great. I jus dunno how to execute elfs. it says...

help exec

exec elfname [arg1 arg2 ....]

Im assuming that the arguments are the start address and something else? Does anyone know the correct format for it? thanks.
Back to top
View user's profile Send private message
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Wed Nov 29, 2006 5:30 pm    Post subject: Re: So close but yet so far Reply with quote

Derek8588 wrote:
exec elfname [arg1 arg2 ....]

I'm assuming that the arguments are the start address and something else? Does anyone know the correct format for it? thanks.
The arguments are just things passed to the program (ie: via argc/argv), they're not required unless the program you're loading needs them. The ELF loader uses the address' in the ELF header...
Back to top
View user's profile Send private message Visit poster's website
Derek8588



Joined: 22 Oct 2004
Posts: 62

PostPosted: Fri Dec 01, 2006 1:26 am    Post subject: Reply with quote

My last issue is recieving data blocks using ymodem and the recv command. I type

recv 0x100000 8

The program slowly prints constant C's to the terminal app.

CCCCCCCCCCCCCCCC....

Im not sure if I am supposed to use the receive command built into hyperterminal or what. I get a "No Packet" message when I try to recieve a memory block using hyperterminal. Does anyone know how to do this? Thanks
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