Skip to content

Commit 4844fcb

Browse files
committed
switch to vitasdk and new vita toolchain
1 parent 5e394bc commit 4844fcb

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,34 @@ DEBUGNET FOR VITA
55
What does this do?
66
===================
77

8-
debugnet is a psp2 small library to debug your homebrew code over udp. It is the same method that i use to debug PlayStation 3 code, so i can use the same host tools for PlayStation Vita and PlayStation 3 to do it.
8+
debugnet is a vita small library to debug your homebrew code over udp. It is the same method that i use to debug PlayStation 3 code, so i can use the same host tools for PlayStation Vita and PlayStation 3 to do it.
99

1010
==================
1111
How do I use it?
1212
==================
1313

1414
1) Compile and install library and include file
1515

16-
You need a psp2 toolchain installed in your environment and PSP2SDK must be defined
16+
You need the new vita toolchain installed in your environment VITASDK must be defined.
1717

18+
Experimental build scripts tested with osx are in:
19+
20+
[vitasdk-buildscripts] (https://github.com/psxdev/vitasdk-buildscripts)
21+
22+
After install it replace crt0.o from arm-vita-eabi/lib with this one than you has in build-native/newlib/arm-vita-eabi/newlib/libc/sys/vita/crt0.o is inside of directory that you are using to compiling the toolchain
23+
24+
Toolchain is work in progress but it's time to switch to vitasdk
25+
26+
1827
```
1928
cd libdebugnet
2029
make
21-
make install
30+
make install-vita
2231
```
2332

2433
2) Compile sample
2534

35+
2636
```
2737
cd sample
2838
edit main.c and change your server ip and port to listen udp messages from PlayStation Vita
@@ -51,15 +61,16 @@ DEBUGNET FOR VITA
5161
[INFO]: Test info level 1
5262
```
5363

54-
5) ready to have a lot of fun :P
64+
5) ready to have a lot of fun :P and switch to vitasdk
5565

5666
===========================
5767
Credits
5868
===========================
5969

6070
Special thanks goes to:
6171

62-
- yifanlu to open the doors with rejuvenate. We need PlayStation VitaTV support and other cool things so i wait you come back.
63-
- All people collaborating in #PSP2SDK: @17310, @xerpi(i stole you network initialization code :P from FTPVita), @frangar , @frtomtomdu80, @hykemthedemon , @SMOKE587, @Josh_Axey ...
72+
- yifanlu to open the doors with rejuvenate.
73+
- All people who collaborated in #PSP2SDK: @17310, @xerpi(i stole you network initialization code :P from FTPVita), @frangar , @frtomtomdu80, @hykemthedemon , @SMOKE587, @Josh_Axey ...
6474
- All ps3dev and ps2dev old comrades
75+
- xyzz for help with vita toolchain
6576

libdebugnet/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ clean:
1717
@rm -rf $(TARGET_LIB) $(OBJS)
1818

1919
install: $(TARGET_LIB)
20-
@cp $(TARGET_LIB) $(PSP2SDK)/lib
21-
@cp include/debugnet.h $(PSP2SDK)/include
20+
@cp $(TARGET_LIB) $(VITASDK)/arm-vita-eabi/lib
21+
@cp include/debugnet.h $(VITASDK)/arm-vita-eabi/include
2222
@echo "Installed!"

sample/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ ASFLAGS = $(CFLAGS) --gc-sections
2525
all: $(TARGET).velf
2626

2727
$(TARGET).velf: $(TARGET).elf
28-
psp2-fixup -q -S $< $@
28+
#advice from xyzz strip before create elf
29+
arm-vita-eabi-strip -g $<
30+
#i put db.json there use your location
31+
vita-elf-create $< $@ $(VITASDK)/bin/db.json
2932

3033
$(TARGET).elf: $(OBJS)
3134
$(CC) $^ -o $@ $(CFLAGS) $(LIBS)

sample/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
* Copyright (C) 2010,2015 Antonio Jose Ramos Marquez (aka bigboss) @psxdev on twitter
44
* Repository https://github.com/psxdev/debugnet
55
*/
6-
#include <psp2/moduleinfo.h>
76
#include <debugnet.h>
87

98

10-
PSP2_MODULE_INFO(0, 0, "debugnetSample");
119

1210
#define ip_server "172.26.1.15"
1311
#define port_server 18194

0 commit comments

Comments
 (0)