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 

Modified mksfo.c & pack-pbp.c

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



Joined: 04 Feb 2006
Posts: 83

PostPosted: Tue Jun 13, 2006 5:28 am    Post subject: Modified mksfo.c & pack-pbp.c Reply with quote

mksfo:
- Cleaned SFO block
(Also it's runnable "as is" on the 2.6 fw even if it makes the psp to crash).
- Fixed title length.

http://perso.orange.fr/franck.charlet/mksfo.zip

pack-pbp:
- Modified parameters handling to allow optional parameters
(Files are stacked correctly).
- Fixed the files sizes in the header.
- Cleaned up the source.

http://perso.orange.fr/franck.charlet/pack-pbp.zip
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Tue Jun 13, 2006 6:15 am    Post subject: Reply with quote

Good job.

I guess that the 2.00+ firmwares detected as corrupted apps the homebrews because of the invalid sfo, and not because of not being signed (that check is done by the kernel, not by the vsh).
Back to top
View user's profile Send private message
hitchhikr



Joined: 04 Feb 2006
Posts: 83

PostPosted: Tue Jun 13, 2006 7:47 am    Post subject: Reply with quote

Talking about crashes, maybe you know this one already ?

Code:

   struct SceKernelLoadExecParam param;
   #define NBR_CHARS 689
   static unsigned char args[NBR_CHARS + 1];

   param.size = sizeof(param);
   param.args = NBR_CHARS;
   param.argp = args;
   param.key = "game";
   sceKernelLoadExec("disc0:/PSP_GAME/SYSDIR/BOOT.BIN", &param);


It'll crash the psp (2.6) when the length of args is 689 bytes (everything goes fine when it's 688 or below).
Back to top
View user's profile Send private message
pspd3vil



Joined: 28 Nov 2005
Posts: 5
Location: France

PostPosted: Thu Jun 15, 2006 11:50 pm    Post subject: Re: Modified mksfo.c & pack-pbp.c Reply with quote

hitchhikr wrote:
mksfo:
- Cleaned SFO block
(Also it's runnable "as is" on the 2.6 fw even if it makes the psp to crash).
- Fixed title length.

http://perso.orange.fr/franck.charlet/mksfo.zip

pack-pbp:
- Modified parameters handling to allow optional parameters
(Files are stacked correctly).
- Fixed the files sizes in the header.
- Cleaned up the source.

http://perso.orange.fr/franck.charlet/pack-pbp.zip


HumHum good Job it's ben a year since yoshihiro release the very same program with source , you shouldn't take credits from someone else's work .

if you want more details browse the following link :

http://forums.maxconsole.net/showthread.php?t=7812



http://psp-scene.org/modules.php?name=Forums&file=viewtopic&t=814

Cya bud!!!
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 16, 2006 12:11 am    Post subject: Reply with quote

As yoshihiro's changes weren't put into the pspsdk, its not surprising someone else may come along and eventually fix the same thing while unaware of it already being done elsewhere.
Back to top
View user's profile Send private message Visit poster's website
hitchhikr



Joined: 04 Feb 2006
Posts: 83

PostPosted: Fri Jun 16, 2006 4:30 am    Post subject: Reply with quote

I wasn't aware of such modifications (in fact, i didn't know the sites you mentioned), i based mine on the mksfo.c present in the svn, so no i'm not taking "credits from someone else's work", my version is different anyway.

What're the updating rules for this svn repository ?
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 16, 2006 10:29 am    Post subject: Reply with quote

Generally if you drop a patch somewhere and provide a link to it, someone with access can commit it for you.
Back to top
View user's profile Send private message Visit poster's website
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Fri Jun 16, 2006 11:15 am    Post subject: Reply with quote

The patch
http://www.megaupload.com/?d=T0ZZ51MK

So if someone wants to commit it ;)
Back to top
View user's profile Send private message
kuroitenchi



Joined: 23 Apr 2006
Posts: 10

PostPosted: Sat Jun 17, 2006 3:18 am    Post subject: Reply with quote

ooPo wrote:
As yoshihiro's changes weren't put into the pspsdk, its not surprising someone else may come along and eventually fix the same thing while unaware of it already being done elsewhere.


They weren't in the pspsdk because you banned him...

[quote=Mathieulh]What I can't also get is why Yoshihiro was banned from ps2dev because he created the first game loader from memory stick as a proof of concept and for educational purposes (people said that running a game form a memory stick couldn't be done at this time) and that he has been banned for 9 months because of it (and is still banned)
When people like MPH not only steal others people's concept but ask donations for it (by the use of a 10 minutes shareware version) for an app that is 100% Warez ! (The mph game loader v1.0 needed the exclusive use of an iso and couldn't run any games from an UMD, and it requires (the newer version still does) the decrypted 2.00/2.50fw witch is 100% Illegal and promote warez and piracy) and those people (MPH) do not get a single punishement or are not anoyed in any way....

I'd say either they remove yoshihiro's ban either they ban both... That's what I'd call fairness and justice. [/quote]


here: http://forums.ps2dev.org/viewtopic.php?t=4249&postdays=0&postorder=asc&start=150

I don't know wether it's true or not, but if it is then I agree with Mathieulh it looks unfair.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Jun 17, 2006 4:36 am    Post subject: Reply with quote

To be honest, I follow neither the iso loader scene nor scene drama in general. I was unaware of MPH being behind an iso load of his own. If true, I can't imagine much of a reason not to apply the ban hammer.

As for Yoshihiro, it was a while ago but I believe in addition to his warez work he was also tainted by using pieces of the official SDK. We have to be very careful about remaining untainted or else we risk being targetted by Sony for destruction.

Btw, being banned doesn't remove your ability to read these forums - just your ability to participate.
Back to top
View user's profile Send private message Visit poster's website
kuroitenchi



Joined: 23 Apr 2006
Posts: 10

PostPosted: Sat Jun 17, 2006 5:18 am    Post subject: Reply with quote

yes but if some is banned and want to share something with the scene he can't because some mods presume they possess sony's sdk... or some others because they shared something as a proof of concept and mods define it as illegal, I do understand how important is the issue between you and sony I do know the limits between proof of concepts and legallity is very thin, and how easely sony's lowyer could close that site but still I doubt it's fair to ban someone just from an assumption. Do you have proofs that yoshihiro (or any other developper posting on those forums) actually has access to the official sdk ?

Anyway I do understand why you are beeing careful but still you are missing a lot of infos from people who might share it and has no bad intents.

Quote:

I was unaware of MPH being behind an iso load of his own




I believe this is the iso loader Mathieulh was writting about:
From what I could witness this revision (the first) cannot run games from UMDs while newer revisions can.

Quote:
MPH 2.00 Game Loader for 1.50 (gta version)
-------------------------------------------


Before using this program, please read what follows :

- The loader requires iso of the game to run, that doesn't want to say that you can use the iso if you don't have the original umd.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Jun 17, 2006 5:30 am    Post subject: Reply with quote

To be honest, Yoshihiro wasn't the first to discover how to run games from devices other than the umd drive. A proof of concept of sorts had already been made. All he did was piece it together into a program he saw fit to distribute. Later he may have done some refinements but the point was he wasn't sharing a proof of concept - he willfully flouted the rules, and wishes, of the members of the ps2dev community and was banned as a result.

Even if we could get past that the fact remains that any information he would be able to contribute would always be possibly tainted and we can't take that chance.

So the point is that he has indeed bad intentions and 'a lot of infos' we aren't interested in. Case closed.
Back to top
View user's profile Send private message Visit poster's website
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Thu Jul 20, 2006 10:28 pm    Post subject: Reply with quote

I guess now it would be a good time to apply the patch...
Back to top
View user's profile Send private message
mbf



Joined: 18 Aug 2006
Posts: 55

PostPosted: Thu Aug 24, 2006 6:32 am    Post subject: Reply with quote

Here's the diff file for mksfo only. It's based on the above work but compiles w/o problems and actually works under FW 1.5 and 2.0+. Note that this is required for homebrew meant to run under devhook.

Linky: http://www.megaupload.com/?d=L3UDOJRX
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Aug 24, 2006 7:42 am    Post subject: Reply with quote

Applied to rev 1993, thanks.
Back to top
View user's profile Send private message
mbf



Joined: 18 Aug 2006
Posts: 55

PostPosted: Fri Aug 25, 2006 1:26 am    Post subject: Reply with quote

Thanks Jim.
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 -> 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