hwfly-nx payload

bbsan2k

Well-Known Member
OP
Newcomer
Joined
Jul 6, 2019
Messages
83
Trophies
0
Age
35
XP
1,572
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?
 

SylverReZ

Well-Known Member
Member
Joined
Sep 13, 2022
Messages
8,598
Trophies
6
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
26,658
Country
United Kingdom
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
 

bbsan2k

Well-Known Member
OP
Newcomer
Joined
Jul 6, 2019
Messages
83
Trophies
0
Age
35
XP
1,572
Country
Germany
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,

randy_w

Well-Known Member
Member
Joined
Feb 27, 2021
Messages
803
Trophies
0
Age
34
XP
1,527
Country
United States
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.
 

bbsan2k

Well-Known Member
OP
Newcomer
Joined
Jul 6, 2019
Messages
83
Trophies
0
Age
35
XP
1,572
Country
Germany
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.
 

randy_w

Well-Known Member
Member
Joined
Feb 27, 2021
Messages
803
Trophies
0
Age
34
XP
1,527
Country
United States
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

mlucianoeze

Member
Newcomer
Joined
May 28, 2023
Messages
9
Trophies
0
Age
23
XP
39
Country
Argentina
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.
 

randy_w

Well-Known Member
Member
Joined
Feb 27, 2021
Messages
803
Trophies
0
Age
34
XP
1,527
Country
United States
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
 

A4EVA

New Member
Newbie
Joined
Nov 17, 2024
Messages
2
Trophies
0
Age
44
XP
2
Country
Australia
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

General chit-chat
Help Users
    BigOnYa @ BigOnYa: I know a few games like that, Disney Speedstorm, a need for speed game but can't remember which one.