Modified mksfo.c & pack-pbp.c

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
hitchhikr
Posts: 83
Joined: Sat Feb 04, 2006 3:33 pm

Modified mksfo.c & pack-pbp.c

Post by hitchhikr »

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
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

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).
hitchhikr
Posts: 83
Joined: Sat Feb 04, 2006 3:33 pm

Post by hitchhikr »

Talking about crashes, maybe you know this one already ?

Code: Select all

	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).
pspd3vil
Posts: 5
Joined: Mon Nov 28, 2005 11:39 pm
Location: France

Re: Modified mksfo.c & pack-pbp.c

Post by pspd3vil »

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=F ... opic&t=814

Cya bud!!!
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
hitchhikr
Posts: 83
Joined: Sat Feb 04, 2006 3:33 pm

Post by hitchhikr »

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 ?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Generally if you drop a patch somewhere and provide a link to it, someone with access can commit it for you.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

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

So if someone wants to commit it ;)
kuroitenchi
Posts: 10
Joined: Sun Apr 23, 2006 12:22 am

Post by kuroitenchi »

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...
Mathieulh wrote: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.


here: http://forums.ps2dev.org/viewtopic.php? ... &start=150

I don't know wether it's true or not, but if it is then I agree with Mathieulh it looks unfair.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
kuroitenchi
Posts: 10
Joined: Sun Apr 23, 2006 12:22 am

Post by kuroitenchi »

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.
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.
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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

I guess now it would be a good time to apply the patch...
mbf
Posts: 55
Joined: Fri Aug 18, 2006 7:43 pm

Post by mbf »

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Applied to rev 1993, thanks.
mbf
Posts: 55
Joined: Fri Aug 18, 2006 7:43 pm

Post by mbf »

Thanks Jim.
Post Reply