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 with Adhoc on 3.xx?

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



Joined: 30 Jan 2008
Posts: 17

PostPosted: Sat Mar 29, 2008 9:23 am    Post subject: Help with Adhoc on 3.xx? Reply with quote

Hey, i got this problem. I want to be able to put adhoc on 3.xx a homebrew. I did BlackPhoenix's example and it was made for 1.5 kernel. i tried to mod for 3.xx and i was told to make a prx loader in usermode, make a prx in kernel, and put the adhoc functions inside the prx. then run the prx from the eboot and then run the adhoc functions in the prx loader. im havin trouble with compiling the prx. (im not too worry with the loader. i mainly need help with the prx.)

heres the error:
Code:
joe@joe-desktop:~/pspdev/psp/sdk/samples/adhoc/simple/adhocexamples/ad-hoc$ make
psp-gcc -I../../../_380SDK/include -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -I../../../_380SDK/include -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -o stubs.o stubs.s
stubs.s: Assembler messages:
stubs.s:71: Warning: ignoring changed section attributes for .text.stub
stubs.s:102: Warning: ignoring changed section attributes for .text.stub
stubs.s:112: Warning: ignoring changed section attributes for .text.stub
stubs.s:140: Warning: ignoring changed section attributes for .text.stub
stubs.s:163: Warning: ignoring changed section attributes for .text.stub
stubs.s:178: Warning: ignoring changed section attributes for .text.stub
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/crt0.o: In function `_start':
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:149: undefined reference to `sceKernelCreateThread'
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:150: undefined reference to `sceKernelStartThread'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/crt0.o: In function `_main':
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:68: undefined reference to `strlen'
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:83: undefined reference to `atexit'
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:86: undefined reference to `main'
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:89: undefined reference to `exit'
collect2: ld returned 1 exit status
make: *** [stubs.o] Error 1
joe@joe-desktop:~/pspdev/psp/sdk/samples/adhoc/simple/adhocexamples/ad-hoc$ mkdir
mkdir: missing operand
Try `mkdir --help' for more information.
joe@joe-desktop:~/pspdev/psp/sdk/samples/adhoc/simple/adhocexamples/ad-hoc$


heres my source


I thought you guys could help. If theres an example or tut for 3.xx could u tell me.
Thank You
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sat Mar 29, 2008 10:53 am    Post subject: Reply with quote

Hi.

There's no need to do the whole external kernel PRX for adhoc.

Use the functions from psputility_netmodules.h to load the needed modules. You need COMMON and ADHOC.
Back to top
View user's profile Send private message
PSPApple



Joined: 28 Mar 2008
Posts: 6

PostPosted: Sat Mar 29, 2008 4:39 pm    Post subject: Re: Help with Adhoc on 3.xx? Reply with quote

jo3_sum wrote:
Hey, i got this problem. I want to be able to put adhoc on 3.xx a homebrew. I did BlackPhoenix's example and it was made for 1.5 kernel. i tried to mod for 3.xx and i was told to make a prx loader in usermode, make a prx in kernel, and put the adhoc functions inside the prx. then run the prx from the eboot and then run the adhoc functions in the prx loader. im havin trouble with compiling the prx. (im not too worry with the loader. i mainly need help with the prx.)

heres the error:
Code:
joe@joe-desktop:~/pspdev/psp/sdk/samples/adhoc/simple/adhocexamples/ad-hoc$ make
psp-gcc -I../../../_380SDK/include -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -I../../../_380SDK/include -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -o stubs.o stubs.s
stubs.s: Assembler messages:
stubs.s:71: Warning: ignoring changed section attributes for .text.stub
stubs.s:102: Warning: ignoring changed section attributes for .text.stub
stubs.s:112: Warning: ignoring changed section attributes for .text.stub
stubs.s:140: Warning: ignoring changed section attributes for .text.stub
stubs.s:163: Warning: ignoring changed section attributes for .text.stub
stubs.s:178: Warning: ignoring changed section attributes for .text.stub
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/crt0.o: In function `_start':
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:149: undefined reference to `sceKernelCreateThread'
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:150: undefined reference to `sceKernelStartThread'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/crt0.o: In function `_main':
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:68: undefined reference to `strlen'
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:83: undefined reference to `atexit'
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:86: undefined reference to `main'
/home/joe/Desktop/psptoolchain/build/pspsdk/src/startup/crt0.c:89: undefined reference to `exit'
collect2: ld returned 1 exit status
make: *** [stubs.o] Error 1
joe@joe-desktop:~/pspdev/psp/sdk/samples/adhoc/simple/adhocexamples/ad-hoc$ mkdir
mkdir: missing operand
Try `mkdir --help' for more information.
joe@joe-desktop:~/pspdev/psp/sdk/samples/adhoc/simple/adhocexamples/ad-hoc$


heres my source


I thought you guys could help. If theres an example or tut for 3.xx could u tell me.
Thank You


I guess u missed the following line in ur makefile ;)

LDFLAGS = -mno-crt0 -nostartfiles

add this in, and try again,good luck
_________________
using 3.71m33-4

psp1000
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sat Mar 29, 2008 7:38 pm    Post subject: Reply with quote

No I dont think he missed, at least I told him to put that.
It will give A LOT MORE errors lol (because the kprx should work)
I will try using what insert_witty_name said
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
jo3_sum



Joined: 30 Jan 2008
Posts: 17

PostPosted: Sun Mar 30, 2008 2:29 am    Post subject: Re: Help with Adhoc on 3.xx? Reply with quote

PSPApple wrote:


I guess u missed the following line in ur makefile ;)

LDFLAGS = -mno-crt0 -nostartfiles

add this in, and try again,good luck


Yes, that was in my makefile.
i am about to try what insert_witty_name said too and i heard that pirata got it workin while i was sleepin. i'll ask him more about it. thx, insert_witty_name.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sun Mar 30, 2008 4:14 am    Post subject: Reply with quote

Well, it's a fairly simple process to change it so it works on 3xx.

Remove all module loading (which is the actual part that requires kernel mode) and replace the calls with sceUtilityLoadNetModule().

Change it to a user mode app.

There's also no need for a separate user-mode thread (assuming the example uses one).

Then just compile for 3xx as normal.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sun Mar 30, 2008 9:11 am    Post subject: Reply with quote

I got it to work, only using the main.c and selectorMenu.cpp, I will send you on IM.
;)
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
jo3_sum



Joined: 30 Jan 2008
Posts: 17

PostPosted: Sun Mar 30, 2008 11:06 am    Post subject: Reply with quote

Thx a lot pn. I can't believe my Makefile was really wrong, but my source was right :) . So after all, i guess my terminal wasn't lazy for not including the libs earlier then, lol.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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