TODOCONSOLAS
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

TODOCONSOLAS

Todo sobre las nuevas consolas, ps3 wii y psp
 
ÍndiceÚltimas imágenesBuscarRegistrarseConectarse

 

 Adios al Kernel 1.50 - Alek´blog

Ir abajo 
+2
berto1989
FERROMALO
6 participantes
AutorMensaje
FERROMALO
NOVATO
NOVATO
FERROMALO


Mensajes : 7
Fecha de inscripción : 24/06/2008

Adios al Kernel 1.50 - Alek´blog Empty
MensajeTema: Adios al Kernel 1.50 - Alek´blog   Adios al Kernel 1.50 - Alek´blog Icon_minitimeMiér Jun 25, 2008 9:16 pm

Información importante que nos ofrece Alek, el admin del blog de DaX:

Adios al Kernel 1.50 - Alek´blog M33150


Debido a la probabilidad casi segura de abandonar el kernel 1.50 en futuras liberaciones, debido a la mejor compatibilidad y seguridad en 3.xx/4.xx, algunos desarrolladores me preguntaban cómo exportar sus conocimientos al kernel 3.xx y, por supuesto, también sus aplicaciones (caseras).

Les he remitido a este post - más abajo se detalla el mini-tuto - en ps2dev, un poco de tuto de CpuWhiz que explica la forma para llevarlo a cabo.

Sin embargo, cambiando al kernel 4.xx cambiarán algunas cosas en este tuto, es una forma demasiado fácil y directa de ejecutar este proceso. Espero os sirva de ayuda, todos los créditos para el que lo hizo (CpuWhiz)

Pero de todas formas ¿cambiará esto con Kernels superiores? Pozí (licencia del traductor). Permite un rango mayor de ideas que se pueden llevar a cabo, y soluciona muchos problemas actuales del kernel 1.50. En consecuencia, teniendo la oportunidad de usar esto mismo con los actuales cfws ¿por qué enredarse con esto? El debate está servido

Fuente: Alek´blog

Citación :

Porting a 1.50 firmware homebrew to 3.xx firmware

3.xx firmwares require your homebrew be in prx format. To get your homebrew in this format, you need to follow a few basic steps:

1. Modify your Makefile - You need to add the following to your Makefile to compile a prx (before the include $(PSPSDK)/lib/build.mak line):
Code: BUILD_PRX = 1
PSP_FW_VERSION = 371

2. Set your homebrew to user mode - Your homebrew needs to start in user mode. To do this, change the 2rd argument in PSP_MODULE_INFO to 0. For most homebrew you will also need to increase your heap size. The heap size is the amount of memory available to malloc. I set mine to 20mb. The bellow code should be at the top of your main source file (normally main.c).
Code: PSP_MODULE_INFO("My Homebrew", 0, 1, 0);
PSP_HEAP_SIZE_KB(20480);

Alternatively you can use PSP_HEAP_SIZE_MAX(); if you have a toolchain compiled on or after Sep. 30th, 2007 (revision 2321). This will allocate as big of a heap as it can. Please note you should recompile your entire toolchain (or at least pspsdk and newlib) to use this, otherwise your homebrew will crash with a Exception - Bus error (data).

3. Try running your app - You should now be able to compile your app with a normal make and copy over the EBOOT.PBP per usual. There is no kxploit or % folder for 3.xx firmware. If you are running your application from psplink, you need to run the prx file instead of the elf file or it will not run. At this point your homebrew should run unless you have kernel calls in your code. If your code has kernel calls you will get a 0x8002013C error when you try to start the homebrew. Don't panic, move on to step 4. If your homebrew runs, great, skip step 4.

4. Locate and deal with your kernel calls - You need to figure out what is a kernel call and what isn't. To do this, you can use prxtool -f <prx file>. Here is a example output:
Code: $ prxtool -f project.prx
... output left out (it's a lot of output) ...
Import 9, Name UtilsForUser, Functions 1, Variables 0, flags 40010000
Functions:
0x79D1C3FA [0x0008CF34] - UtilsForUser_79D1C3FA
Import 10, Name LoadExecForUser, Functions 2, Variables 0, flags 40010000
Functions:
0x05572A5F [0x0008CF3C] - LoadExecForUser_05572A5F
0x4AC57943 [0x0008CF44] - LoadExecForUser_4AC57943
Import 11, Name IoFileMgrForKernel, Functions 1, Variables 0, flags 00010000
Functions:
0x411106BA [0x0008CF4C] - IoFileMgrForKernel_411106BA
Done

If you look at the above output you can see there is a import called IoFileMgrForKernel. This import has one function. Refer to this page: http://silverspring.lan.st/1.5x/kd/iofilemgr.html. Search on the page and you will find that 0x411106BA matches the function sceIoGetThreadCwd. You can now search for this function and either (a) replace the kernel call with user mode code -or- (b) move the kernel call into a kernel mode prx and load that kernel mode prx from your homebrew. Option B is out of the scope of this tutorial so search the forums to figure out how to do this. Option A is the preferable solution unless you have to use a kernel call. I went to the main page http://silverspring.lan.st and clicked on 1.5x firmware. From this page I found sceIOFileManager in the list and clicked on it to get to the above page. A search function would have been nice.

Last edited by CpuWhiz on Tue Oct 09, 2007 12:09 pm; edited 2 times in total
Volver arriba Ir abajo
berto1989
Admin
Admin



Mensajes : 105
Fecha de inscripción : 23/06/2008

Adios al Kernel 1.50 - Alek´blog Empty
MensajeTema: Re: Adios al Kernel 1.50 - Alek´blog   Adios al Kernel 1.50 - Alek´blog Icon_minitimeMiér Jun 25, 2008 9:52 pm

gracais por la informacion ferromalo
Volver arriba Ir abajo
https://todoconsolas.foroes.org
ivan
Admin
Admin



Mensajes : 30
Fecha de inscripción : 24/06/2008

Adios al Kernel 1.50 - Alek´blog Empty
MensajeTema: Re: Adios al Kernel 1.50 - Alek´blog   Adios al Kernel 1.50 - Alek´blog Icon_minitimeJue Jun 26, 2008 12:05 pm

madre mia .. , gracias por la informacion.
Volver arriba Ir abajo
jotax
NOVATO
NOVATO
jotax


Mensajes : 29
Fecha de inscripción : 26/06/2008

Adios al Kernel 1.50 - Alek´blog Empty
MensajeTema: Re: Adios al Kernel 1.50 - Alek´blog   Adios al Kernel 1.50 - Alek´blog Icon_minitimeJue Jun 26, 2008 4:59 pm

gracias por la info.
era de esperar, se veia venir.

por mi parte, es una cosa menos de la que preocuparse.
Volver arriba Ir abajo
Nitro Boy
NOVATO
NOVATO



Mensajes : 1
Fecha de inscripción : 09/07/2008

Adios al Kernel 1.50 - Alek´blog Empty
MensajeTema: Re: Adios al Kernel 1.50 - Alek´blog   Adios al Kernel 1.50 - Alek´blog Icon_minitimeMiér Jul 09, 2008 9:03 pm

Ps es mi primera visita aki y ps eso s ke es algo en lo ke se debe empezar a trabajar... a mi me interesa y si necesitan ayuda pueden contactarme ) no se mucho de como hacerlo pero ps en algo podre ayudar xD)
Volver arriba Ir abajo
pirata__92
MODERADOR
MODERADOR
pirata__92


Mensajes : 28
Fecha de inscripción : 30/06/2008

Adios al Kernel 1.50 - Alek´blog Empty
MensajeTema: Re: Adios al Kernel 1.50 - Alek´blog   Adios al Kernel 1.50 - Alek´blog Icon_minitimeJue Jul 24, 2008 3:11 pm

Me cago en to'...
y yo con la PSP rota...:S
Gracias por la info. Very Happy
Volver arriba Ir abajo
Contenido patrocinado





Adios al Kernel 1.50 - Alek´blog Empty
MensajeTema: Re: Adios al Kernel 1.50 - Alek´blog   Adios al Kernel 1.50 - Alek´blog Icon_minitime

Volver arriba Ir abajo
 
Adios al Kernel 1.50 - Alek´blog
Volver arriba 
Página 1 de 1.
 Temas similares
-
» Release 4.01 m33-2 + addon kernel 1.50
» Acerca de 4.00m33 - comentarios de Alek

Permisos de este foro:No puedes responder a temas en este foro.
TODOCONSOLAS :: psp :: Programación-
Cambiar a: