I don't have an ethernet adapter, so I use LaunchElf with a mp3 player. i've already run some code from the tutorials in ps2dev.org. But every sample that came with PS2SDK doesn't run. Ps2 just hang up. I've tried doing a simple hello world, and this also does not work. LaunchElf just says "Loading mass:hello.elf" and nothing happens.
Here is my code:
Makefile
Code: Select all
EE_BIN = hello.elf
EE_OBJS = hello.o
EE_LIBS = -ldebug
all: $(EE_BIN)
clean:
rm -f *.elf *.o *.a
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
Code: Select all
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <stdio.h>
#include <debug.h>
int main(int argc, char *argv[])
{
SifInitRpc(0);
init_scr();
scr_printf("Hello, world!\n");
printf("Hello, world!\n");
while(1) {}
return 0;
}
Sorry for my bad english, I'm brazilian.
Any idea?