hwfly-nx payload

  • Thread starter Thread starter bbsan2k
  • Start date Start date
  • Views Views 5,257
  • Replies Replies 10

bbsan2k

Well-Known Member
Newcomer
Joined
Jul 6, 2019
Messages
87
Reaction score
55
Trophies
1
Age
36
XP
1,900
Country
Germany
Hey everyone,

I'm looking for the sources of the payload that is available at hwflx-nx. Unfortunately on the github I can only find the binary payload within a header (here).

I'm looking for it because I want to change the default behavior for me, meaning:
UNLESS Vol+ and Vol- are pressed, the console should boot into OFW; if Vol+ and Vol- are pressed, it should boot into Hekate.

Any idea where to find the payload source?
 
Hey everyone,

I'm looking for the sources of the payload that is available at hwflx-nx. Unfortunately on the github I can only find the binary payload within a header (here).

I'm looking for it because I want to change the default behavior for me, meaning:
UNLESS Vol+ and Vol- are pressed, the console should boot into OFW; if Vol+ and Vol- are pressed, it should boot into Hekate.

Any idea where to find the payload source?
Is that by any chance it? https://github.com/hwfly-nx/firmware/blob/master/firmware/src/payload.c
 
Judging by the header file, "payload.h" is infact a binary array meaning that it could be re-converted back into a binary file.
Yes, but even with a binary file it’s difficult to change the behavior. That’s why I was hoping for some source files to be available for the payload…

EDIT: Ah - just learned that the payload is the sdloader - and it seems it is not available from hwfly-nx.
 
Last edited by bbsan2k,
Yes, I also looked into the payload that first loads after the glitching process finishes (I want to change the logo, text font and whatnot), don't think they have source code for it. The payload is provided as a blob in the header file.
Btw, sdloader.enc is the exact same file defined in payload.h. Load it in a hex editor and you'll find out.
1669280722625.png

For your case though, you can just setup hekate to boot to ofw directly, or use another bootloader like argon-nx:
https://github.com/Storm21CH/ArgonNX-SE/releases
This build is most recent one and has oled support.
 
Yes, I also looked into the payload that first loads after the glitching process finishes (I want to change the logo, text font and whatnot), don't think they have source code for it. The payload is provided as a blob in the header file.
Btw, sdloader.enc is the exact same file defined in payload.h. Load it in a hex editor and you'll find out.
View attachment 339689
For your case though, you can just setup hekate to boot to ofw directly, or use another bootloader like argon-nx:
https://github.com/Storm21CH/ArgonNX-SE/releases
This build is most recent one and has oled support.
Yeah I know. The problem with hekate is, that if I update OFW and hekate is not yet compatible, it simply won't boot.
That's why I wanted to boot into OFW as early in the chain as possible.
Previous versions of sdloader are actually available as source code on the spacecraft-nx github, but the updated ones from hwfly seem to either be private or simply not available.
You can even go as far as updating sdloader only with the hwfly toolbox.
 
The problem with hekate is, that if I update OFW and hekate is not yet compatible, it simply won't boot.
You can use the reboot to ofw function from reboot menu in hekate while waiting for new atmosphere releases. Works for me every time.

Or if you are really determined to use vol+/- buttons to bypass the glitching process, I think you can find 2 unused gpio pins on gd32 mcu, connect vol+/- pins to them and if these buttons are not pressed, put the chip to sleep mode directly and bypass the glitching process.
 
  • Like
Reactions: bbsan2k
Yes, I also looked into the payload that first loads after the glitching process finishes (I want to change the logo, text font and whatnot), don't think they have source code for it. The payload is provided as a blob in the header file.
Btw, sdloader.enc is the exact same file defined in payload.h. Load it in a hex editor and you'll find out.
View attachment 339689
For your case though, you can just setup hekate to boot to ofw directly, or use another bootloader like argon-nx:
https://github.com/Storm21CH/ArgonNX-SE/releases
This build is most recent one and has oled support.
By any chance, did you manage to change the logo? It'd be a fun experiment, I'm looking for image file signatures like BMF or GIF but I didn't find anything yet.
 
By any chance, did you manage to change the logo? It'd be a fun experiment, I'm looking for image file signatures like BMF or GIF but I didn't find anything yet.
Nope, lost interest in it. Also you won't see the hwfly logo/text unless something's wrong, so not very useful modding it to begin with
 
Hello guys I do not know if this can help but I found this repo: Spacecraft-NX/sdloader I'm not sure if this payload is also compatible with the picofly fw but this is the payload that is actually pushed in the system by the hwfly after the glitch. I was able to build it using devkitpro but the python script have some problems.
 

Site & Scene News

Popular threads in this forum