Metagames


Précédent   Metagames > Univers Playstation > Playstation 2
Accueil S'inscrire Blogs FAQ Communauté Calendrier Téléchargements Messages du jour Recherche

Playstation 2 Console de salon, sortie en 2000 (PS2), 2003 (PSX), 2004 (PS2 Slim)

Réponse
 
Outils de la discussion Modes d'affichage
Vieux 03/08/2004, 00h52   #1 (permalink)
Profil
Invité
Non Inscrit / Non Connecté
Ancienneté  100%
Ancienneté 100%
 
Messages: n/a
Téléchargements:
Uploads:
Par défaut

Pour ceux que ça peut intéresser:

http://forums.ps2dev.org/viewtopic.php?t=524
http://www.nobis-crew.org/ps2-packer
  Réponse avec citation
Vieux 03/08/2004, 01h24   #2 (permalink)
Profil
Invité
Non Inscrit / Non Connecté
Ancienneté  100%
Ancienneté 100%
 
Messages: n/a
Téléchargements:
Uploads:
Par défaut

c'est quoi se soft
  Réponse avec citation
Vieux 03/08/2004, 01h26   #3 (permalink)
Profil
Invité
Non Inscrit / Non Connecté
Ancienneté  100%
Ancienneté 100%
 
Messages: n/a
Téléchargements:
Uploads:
Par défaut

Code:
PS2-Packer version 0.1
======================

Overview
--------

  This (very preliminary) tool is designed to help you create packed ELF to
run on the PS2. It actually only works with zlib, and has a poor design, but
I hope to have a modular system afterward, so people could write "plugins"
with new stubs and new compressors.


Changelog
---------

  2004/08/03: release of version 0.1, first version.


History
-------

  Well, I wrote this piece of junk in one day, because Drakonite said me zlib
would be better than lzo, and that it would be quite a challenge to get it
working for PS2. I wanted to see if he was right 


Source code and legal stuff
---------------------------

  This code is covered by GPL. Actually, I don't give a shit about licenses
and stuff. If you don't like it covered by GPL, just ask me, and we'll change
it. The only problem is it uses getopt, and the win32 source code for it is
GPL, so...

  This code was inspired by various sources, especially sjcrunch's main.c, and
sjuncrunch. Some idea from mrbrown too 


How it works
------------

  Usage line: ps2-packer [-l level] [-b base] [-s stub] <in_elf> <out_elf>
  
  Explanation of the options:
    -l level       sets the zlib compression level.
                      9 by default.
    -b base        sets the loading base of the compressed data.
                      0x1b00000 by default.
    -s stub        sets another zlib uncruncher stub.
                      stub/zlib-0088-stub by default.

  Now, you have to understand the mechanism. The output elf will contain two
program sections. The first one will be the uncruncher stub. By default, it's
a zlib stub compiled to be loaded at 0x88000. You may want to compile other
stubs, to get different loading addresses. I provide another stub which loads
at 0x1a00000. Should you produce new stubs, just change the stub/Makefile.
The second section contains the packed data. This basically can be loaded
anywhere. That is the "base" option of the command line.

  So, depending on your needs, just move the data around, to get the desired
results.


Bugs and limitations
--------------------

-) It's hardly hardcoded to work with zlib. Should get around it, but, since
   I am a lazy bastard, this can take ages.
-) It's poorly coded and commented :-P
-) Zlib is bloated with messages and other unnecessary stuff. Could get a
   shorter uncruncher stub. The actual one is about 50KB, which is quite
   huge IMHO.
-) The code is actually Little Endian ONLY. Sorry to all Apple addicts. If
   somebody want to fix it, feel free to submit patches 


How to compile
--------------

  Ooooookay, now, that's nasty. First, you need to get zlib compiled for PS2.
Here's how I did:

  $ tar xvfz zlib-1.2.1.tar.gz
  $ cd zlib-1.2.1
  $ export CC=ee-gcc
  $ export CPPFLAGS=-G0
  $ ./configure
  $ make
[...] should fail compiling example
  $ ee-ar libz-ps2-wogzio.a adler32.o compress.o crc32.o uncompr.o deflate.o \
    trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
  $ cp libz-ps2-wogzio.a zlib.h zconf.h /path/to/ps2-packer/stub

  Now, my compilation options requires libz.a inside /usr/lib/libz.a (I do that
only to statically link the zlib with the final software, so it will run
everywhere) So, if it doesn't match your system, change that line into the
Makefile. Afterward, a simple "make" should do the trick in order to compile
everything, provided you have the full ps2 toolchain, with the PS2SDK variable
pointing to your ps2sdk directory, and ee-gcc under your path.

  Don't look at the 'dist' target in the Makefile, it's only for me to build
the various packages.


Author
------

  Nicolas "Pixel" Noble <pixel@nobis-crew.org> - http://www.nobis-crew.org


Thanks and greetings
--------------------

  They go to adresd, blackd_wd, drakonite, emoon, gorim, hiryu, jenova, linuzapp
oobles, oopo, mrbrown, nagra, neov, nik, t0mb0la, tyranid

and maybe a few other people I forgot at #ps2dev 

voilà c quoi... si tu sais lire anglais ca devra aller à peu près...
  Réponse avec citation
Vieux 03/08/2004, 10h43   #4 (permalink)
Profil
Invité
Non Inscrit / Non Connecté
Ancienneté  100%
Ancienneté 100%
 
Messages: n/a
Téléchargements:
Uploads:
Par défaut

Pixel

1) ce soft utilise t'il le même algo que cjcrunch ?
2) Si ce n'est pas le cas ou trouver un soft qui fait l'inverse de cjcrunch , cnjuncrunch ?

3) Peut t'on utiliser ce soft pour compacter des elf stockeés dans la carte mémoire ?
  Réponse avec citation
Vieux 03/08/2004, 11h02   #5 (permalink)
Profil
Invité
Non Inscrit / Non Connecté
Ancienneté  100%
Ancienneté 100%
 
Messages: n/a
Téléchargements:
Uploads:
Par défaut

Déjà, je viens juste de passer à la version 0.1.1. Les stubs sont passés de 50 à 20 ko, ce qui représente un gain non négligeable.

1) Non, sjcrunch utilise la librairie "lzo". Celui-ci utilise la librairie "zlib".

2) http://www.oopo.net/consoledev/

3) oui, logiquement.
  Réponse avec citation
Réponse
Précédent   Metagames > Univers Playstation > Playstation 2


Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are non
Pingbacks are non
Refbacks are non


Discussions similaires
Discussion Auteur Forum Réponses Dernier message
Creer Ses Propres WAD Avec WAD Packer 0.00002 tsubasa_403 Wii 16 28/04/2008 08h44
Ps2 packer Invité Playstation 2 12 17/03/2005 13h47
Pb pour packer ma version modifié de hdloader Invité Playstation 2 2 28/10/2004 12h58


Fuseau horaire GMT +1. Il est actuellement 07h30.


© 2003-2018 MetaGames. Tous droits réservés.