| View previous topic :: View next topic |
| Author |
Message |
Derek8588
Joined: 22 Oct 2004 Posts: 62
|
Posted: Mon Nov 06, 2006 5:33 pm Post subject: Help: Compiling SIOShell from the SVN |
|
|
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 |
|
 |
JorDy
Joined: 11 Dec 2005 Posts: 121
|
Posted: Tue Nov 07, 2006 4:42 am Post subject: |
|
|
| 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 |
|
 |
misfire
Joined: 06 Sep 2004 Posts: 120 Location: Germany
|
Posted: Tue Nov 07, 2006 7:28 am Post subject: |
|
|
| You have to include the "r5900_regs.h" file. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Tue Nov 07, 2006 7:58 am Post subject: |
|
|
| 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 |
|
 |
Derek8588
Joined: 22 Oct 2004 Posts: 62
|
Posted: Tue Nov 07, 2006 10:39 am Post subject: Close, but not quite there. |
|
|
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 |
|
 |
JorDy
Joined: 11 Dec 2005 Posts: 121
|
Posted: Wed Nov 08, 2006 5:11 am Post subject: |
|
|
| 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 |
|
 |
Derek8588
Joined: 22 Oct 2004 Posts: 62
|
Posted: Thu Nov 16, 2006 7:45 am Post subject: |
|
|
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 |
|
 |
Derek8588
Joined: 22 Oct 2004 Posts: 62
|
Posted: Tue Nov 21, 2006 9:20 am Post subject: So close but yet so far |
|
|
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 |
|
 |
Derek8588
Joined: 22 Oct 2004 Posts: 62
|
Posted: Wed Nov 29, 2006 12:16 pm Post subject: Re: So close but yet so far |
|
|
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 |
|
 |
jbit Site Admin

Joined: 28 May 2005 Posts: 293 Location: København, Danmark
|
Posted: Wed Nov 29, 2006 5:30 pm Post subject: Re: So close but yet so far |
|
|
| 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 |
|
 |
Derek8588
Joined: 22 Oct 2004 Posts: 62
|
Posted: Fri Dec 01, 2006 1:26 am Post subject: |
|
|
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 |
|
 |
|