Homebrew Official 5.5.X ELF Loader

  • Thread starter Thread starter NWPlayer123
  • Start date Start date
  • Views Views 104,740
  • Replies Replies 427
  • Likes Likes 63
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.
 
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?
 
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
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
 
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
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
 
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?
 
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.
 
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. :(
 
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
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)
 
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
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