PDA

View Full Version : Homebrew Enabler for 2.71 (revision B)



wraggster
September 24th, 2006, 16:27
Dark Alex (http://dax.lan.st) has released a new update to his Homebrew Launcher for the PSP, heres what he says:


This update is necessary in order to run the incoming port of devhook launcher to 2.71.

Changelog
----------

- Revision A (22 september):

* Initial release

- Revision B (24 september):

* Some kernel prx's didn't load because the kernel tried to load them to user partition. This problem affected devhook.prx and some other kernel prx's.
This problem has been fixed.

This program enables homebrew to be run in 2.71 through the XMB. It makes a patch that remains
permanent until hardwar reset. Sleep mode won't remove the patch.

Note: this program writes some small files in the flash, ONLY the first time is executed.
IT does NOY rewrite any existing file in the system, it writes new files, so the probabilities of
bricking are practically null.

Update Instruction for people with revision A installed
-------------------------------------------------------
To update from HEN revision A to B, hard reset your psp (to make sure that hen is not running).
Then copy the new files to the memory stick and run the tif. The new files will be automatically
updated.

People without any version of hen installed, just follow the instructions below.

Instructions
------------

- Copy all contents inside MS_ROOT to the root of your memory stick.
- Go to the PHOTO viewer of the XMB and enter in the folder "HEN".
- If the psp just freeze, reboot your psp and try again. Currently the tiff is very unstable and it is only executed sometimes. I'll try to improve that in the future.

- The first time you run the program, you will see quickly a blue screen, and after that a screen that can be of two colors:

* Red: the files couldn't be written to the flash (it hapens a few times). Just keep trying.
* Green: The files were written succesfully. After that, the xmb will be rebooted. Now you can run the homebrew in format prepared for 2.71. (see details below).

- As mentioned before, the patch will remain resident in memory, and even entering sleep mode won't delete it. Only a hardware reset will remove the program from memory.

- When you do a hardware reset, you'll have to run the tiff again.
This time there won't be green or red screen, just a blue screen and xmb reboot, sincethis time there is no need to write to the flash.

Note: the files pspbtknf.txt, pspbtknf_game.txt, pspbtknf_updater, and systemctrl.prx in the root of the memory stick are only needed the first time the program is executed. After that you can delete those. However, don't delete patch.bin, h.bin and the folder with the tiff, since you will need those the next time you do a hard reset and want to run the program again.

Note2: Once the program is loaded, it is independant of the memory stick contents. So you can freely swap memory sticks.

Notes about homebrew running
-----------------------------

- Current homebrews are not supported. Since current homebrews are in static elf format, they won't run (they are rejected by the 2.71 kernel). Homebrews for 2.71 have to be in prx format.
Programmers see the programming notes.
In future versions i may patch the kernel to allow it to accept static elf's.

- There are some samples in the "GAME" directory, all of them ported from the pspsdk samples, except the nanddumper written by me.

* polyphonic, pspsdk sample (user mode).
* cube, pspsdk sample (user mode). It shows a cube rotating.
* kdumper, pspsdk sample (kernel mode). It dumps kernel memory to the memory stick.
* ipldumper, pspsdk sample (kernel mode). It dumps the ipl to the memory stick.
* systemparam, pspsdk sample (user mode). It displays info about the system
* nanddumper, by me. (kernel mode). It dumps the full nand content to the file
"nandimage.flash" in the memory stick. The format of the dump is compliant with u.p. chip.
(It requires 33 MB of free space in the memory stick).

Programming notes for developers
--------------------------------

- As mentioned before, homebrew has to be in prx format, at least atm. Furthermore, the main prx, the one in the pbp, has to be an user prx. However this user prx can load unsigned kernel modules from the memory stick, allowing kernel mode apps.

- There is no need for noplainmodule check patch or nodevicecheck patch, since those are done by the homebrew enabler.

- Try to use USE_KERNEL_LIBS = 1 in your kernel prx's. In 2.XX, the separation between user and kernel mode is higher than in 1.XX.
Some functions in "*ForUser" are now totally separated (different address) from their "*ForKernel" equivalents. A good example is ModuleMgr. If you are in a kernel prx and you call the sceKernelLoadModule of ModuleMgrForUser, you will get a "ILLEGA_PERMANENT_CALL" error.

- Currently devhook emulated 2.71 is not supported. I'll try to add support to devhook, so programs for 2.71 can be developed in a 1.50

- See the source code of the samples to have a hint on how to program for 2.71.

Credits and thanks.
-------------------

- Coded by Dark_AleX

Download and Give Feedback Via Comments

ToMeR
September 24th, 2006, 16:31
i am the first reply :D

splodger15
September 24th, 2006, 16:36
i am the first reply :D


why post that

Video_freak
September 24th, 2006, 16:37
Nice development. Keep it up! :)

And ToMeR, this isn't Qj, so please put something other than "OMG I'm first!"


why post that
Why post that?! :p

dejkirkby
September 24th, 2006, 16:39
Tomer Change the red line in your sig, Iso talk or promotion not allowed. And with the Devhook port released by Dark_Alex, you can run homebrew on 2.71 as it can now emulate 1.5 on 2.71.

splodger15
September 24th, 2006, 16:55
Why post that?! :p


lol

Veskgar
September 24th, 2006, 17:01
i am the first reply :D
But you replied with NOTHING! Why did you even post?

Anyway, this is an awesome development, especially combined with his DevHook Launcher Port for 2.71. From what I understand, 2.71 PSP's could use this to emulate 1.50. And if it FULLY emulates 1.50, you would not even need to downgrade. So this might be really big news for TA-082 PSP owners.

We owe Dark_AleX so much...

Video_freak
September 24th, 2006, 17:05
We owe Dark_AleX so much...
He wants our souls...

dejkirkby
September 24th, 2006, 17:06
But you replied with NOTHING! Why did you even post?

Anyway, this is an awesome development, especially combined with his DevHook Launcher Port for 2.71. From what I understand, 2.71 PSP's could use this to emulate 1.50. And if it FULLY emulates 1.50, you would not even need to downgrade. So this might be really big news for TA-082 PSP owners.

We owe Dark_AleX so much...

Thanks for backing me up!!

vladiftodi
September 24th, 2006, 17:15
i still didnt get why use it? and what is prx?

vladiftodi
September 24th, 2006, 17:26
oh, by the way the upcoming devhook is already released

jinqui242
September 24th, 2006, 18:16
oh, by the way the upcoming devhook is already released

Uh, where?

dejkirkby
September 24th, 2006, 18:19
Uh, where?
The program uses DevHook 0.45

jinqui242
September 24th, 2006, 18:47
Nevermind, I thought he meant Devhook with 2.8x emulation.

vladiftodi
September 25th, 2006, 09:03
what is prx?

mnuhaily22
September 25th, 2006, 12:53
This is a good release, yet it is realy unstable, I had to try it about 15 times for it to work....

vladiftodi
September 26th, 2006, 09:30
hey what is prz? i saw a video of youtube after loading this homebrew enabler, he started a GBA emulator, is this true or i s a fake? since dark=alexx said that curret homebrew is not supported?

shrimpidy
September 26th, 2006, 10:44
Sounds exremely complicated

mnuhaily22
September 26th, 2006, 14:09
This is so unstable it hurts

xela
September 27th, 2006, 01:37
can you send me that you tube video?