Homebrew Official 5.5.X ELF Loader

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
Keep in mind that it can never get to MEMFreeToDefaultHeap.
Yes, I just added "OSFatal("Buffer allocated")" to be sure the problem didn't come from MEMFreeToDefaultHeap.
I found in loadiine code that 26083 kB of data can be stored between 0xBE609EFC and 0xBFF82BC0 on 5.4.0. I don't know if this works for 5.5.x... i'll give a try tonight.
 

SonyUSA

We're all mad here
Editorial Team
Joined
May 12, 2006
Messages
1,780
Trophies
2
XP
5,620
Country
United States
Yes, I just added "OSFatal("Buffer allocated")" to be sure the problem didn't come from MEMFreeToDefaultHeap.
I found in loadiine code that 26083 kB of data can be stored between 0xBE609EFC and 0xBFF82BC0 on 5.4.0. I don't know if this works for 5.5.x... i'll give a try tonight.

Yeah I know why you did the OSFatal

Why, what do you wanna store there?
 

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
Why, what do you wanna store there?
Ok so here is the thing. I have a data array containing RGB8 run-length1 encoded data. It's 544px * 600px image. This data is statically allocated within my elf binary.

To decode the image data, i implemented a function that returns an unsigned char buffer (containing the decoded data). So i need to dynamically allocate at least 979 200 bytes for my buffer : 544 * 600 * 3 (each pixel is 3 bytes long for RGB).
Ok, almost 1 Mb is a lot for just one image but i wouldn't have thought this could be a problem...
 
Last edited by eliboa,
  • Like
Reactions: OriginalHamster

NWPlayer123

Well-Known Member
OP
Member
Joined
Feb 17, 2012
Messages
2,642
Trophies
0
Location
The Everfree Forest
XP
6,693
Country
United States
Ok so here is the thing. I have a data array containing RGB8 run-length1 encoded data. It's 544px * 600px image. This data is statically allocated within my elf binary.

To decode the image data, i implemented a function that returns an unsigned char buffer (containing the decoded data). So i need to dynamically allocate at least 979 200 bytes for my buffer : 544 * 600 * 3 (each pixel is 3 bytes long for RGB).
Ok, almost 1 Mb is a lot for just one image but i wouldn't have thought this could be a problem...
You're probably better off making your own format than doing it like that, loadiine-gx2 already has support for png if you really wanted to borrow some code, or you can just write directly to the framebuffer
 

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
You're probably better off making your own format than doing it like that, loadiine-gx2 already has support for png if you really wanted to borrow some code, or you can just write directly to the framebuffer
Yeah, i found a solution to write directly to the framebuffer. But i wanted to save the pixel data in my globals because i need to scan the image (which is a map) several times in my program. I found an alternate solution to my problem.
Thank you for your help anyway ;)

As for GX2 library, i tried to make something out of this but i'm not used to all these shaders, textures and vertex concepts... and c++! I need to document myself.
 
  • Like
Reactions: NWPlayer123

NWPlayer123

Well-Known Member
OP
Member
Joined
Feb 17, 2012
Messages
2,642
Trophies
0
Location
The Everfree Forest
XP
6,693
Country
United States
Yeah, i found a solution to write directly to the framebuffer. But i wanted to save the pixel data in my globals because i need to scan the image (which is a map) several times in my program. I found an alternate solution to my problem.
Thank you for your help anyway ;)

As for GX2 library, i tried to make something out of this but i'm not used to all these shaders, textures and vertex concepts... and c++! I need to document myself.
I'm with ya, currently documenting all the AX functions and then I'll attempt something with graphics, never done it before so it'll be a nightmare at first
Screenshot_18.png
 
D

Deleted User

Guest
Sorry for the bump, but I'm determined to get this working!

This is my current server structure:

boot.elf
elfloader.mp4
/payload
-----code550.bin
-----elfloader.bin
-----wiiu-browserhax_common.php
-----wiiuhaxx.php
-----wiiuhax_common_cfg.php
-----wiiuhaxx_loader.bin
-----wiiuhaxx_rop_sysver_532.php
-----wiiuhaxx_rop_sysver_550.php

I've tried to use 2 methods to try and get the elf loader to work properly,

The first method was to launch elfloader.mp4 (that I pre-compiled), but it just told me it couldn't find a usable URL... :/
The second method was to try and launch the mp4 through http://192.168.1.69/payload/wiiuhaxx.php?sysver=550 but that was just freezing.

Is there something I'm doing wrong here?
 

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
Sorry for the bump, but I'm determined to get this working!

This is my current server structure:

boot.elf
elfloader.mp4
/payload
-----code550.bin
-----elfloader.bin
-----wiiu-browserhax_common.php
-----wiiuhaxx.php
-----wiiuhax_common_cfg.php
-----wiiuhaxx_loader.bin
-----wiiuhaxx_rop_sysver_532.php
-----wiiuhaxx_rop_sysver_550.php

I've tried to use 2 methods to try and get the elf loader to work properly,

The first method was to launch elfloader.mp4 (that I pre-compiled), but it just told me it couldn't find a usable URL... :/
The second method was to try and launch the mp4 through http://192.168.1.69/payload/wiiuhaxx.php?sysver=550 but that was just freezing.

Is there something I'm doing wrong here?

Same for me, just set 2 boot.elf

Just like this :

boot.elf
elfloader.mp4
/payload
-----boot.elf
-----code550.bin
-----elfloader.bin
-----wiiu-browserhax_common.php
-----wiiuhaxx.php
-----wiiuhax_common_cfg.php
-----wiiuhaxx_loader.bin
-----wiiuhaxx_rop_sysver_532.php
-----wiiuhaxx_rop_sysver_550.php


And it should work, launch it from "payload/wiiuhaxx.php?sysver=550"

--------------------- MERGED ---------------------------

Same for me, just set 2 boot.elf

Just like this :

boot.elf
elfloader.mp4
/payload
-----boot.elf
-----code550.bin
-----elfloader.bin
-----wiiu-browserhax_common.php
-----wiiuhaxx.php
-----wiiuhax_common_cfg.php
-----wiiuhaxx_loader.bin
-----wiiuhaxx_rop_sysver_532.php
-----wiiuhaxx_rop_sysver_550.php


And it should work, launch it from "payload/wiiuhaxx.php?sysver=550"

But the two boot.elf should be the same. I don't why does it fix it but it works.
 
D

Deleted User

Guest
Same for me, just set 2 boot.elf

Just like this :

boot.elf
elfloader.mp4
/payload
-----boot.elf
-----code550.bin
-----elfloader.bin
-----wiiu-browserhax_common.php
-----wiiuhaxx.php
-----wiiuhax_common_cfg.php
-----wiiuhaxx_loader.bin
-----wiiuhaxx_rop_sysver_532.php
-----wiiuhaxx_rop_sysver_550.php


And it should work, launch it from "payload/wiiuhaxx.php?sysver=550"

--------------------- MERGED ---------------------------



But the two boot.elf should be the same. I don't why does it fix it but it works.
Uh-oh, that didn't work. :(
Also, wiiuhaxx.php?sysver=550 is still freezing me on the mp4 player screen. :(
 

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
No, that still didn't work. :(
I was executing through the mp4 build by the way, since the URL method isn't working for me at the moment...
ok but you have to put the MP4 in the /payload

--------------------- MERGED ---------------------------

ok but you have to put the MP4 in the /payload
Try with 2 "boot.elf" and with the ".mp4" in the "/payload"
 
  • Like
Reactions: Deleted User

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
okay, I will try that. Thanks for the help by the way.
You're welcome, but why with the .php? it doesn't work ? Did you have an error or something ? (If you try to load the RPC you should wait like 15-20 seconds, because the elf didn't find any rpc servers and it should print a something as an OSFatal)
 
D

Deleted User

Guest
You're welcome, but why with the .php? it doesn't work ? Did you have an error or something ? (If you try to load the RPC you should wait like 15-20 seconds, because the elf didn't find any rpc servers and it should print a something as an OSFatal)
HEH, IT WORKED!!! :D
THANKS SO MUCH!! :lol:
 
  • Like
Reactions: NexoCube
D

Deleted User

Guest
Oh for god's sake... Now I'm having a bad time with RPC.py! :glare:

Code:
Listening...
Connected by  ('192.168.1.85', 4964)
>>> rpc.read32(0xF0000000, 9)
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
  rpc.read32(0xF0000000, 9)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
>>>

Someone who resolved this care to tell me how to fix this? :ohnoes:
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://m.youtube.com/watch?v=_NTF5_qgH0o