Hacking [Tutorial] How to convert Arm9LoaderHax payloads to FIRMS

Status
Not open for further replies.

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,431
Country
yeah i implemented that -b in my python script but doesn't help apparently the problem is with the framebuffer adress they are integrated in the code so i don't really know how the new firmtool works since the readme.MD is not updated
I'm not sure how there doing it but this guy below has all the .firm builds in his hourly page for B9Sv1.2, if you need them that is its just a shame we could not get your app working! :(

https://gbatemp.net/threads/compile...otu-for-boot9strap-v-1-2.473197/#post-7372458
 

Hihomaster

Well-Known Member
Member
Joined
Jun 25, 2008
Messages
184
Trophies
0
XP
486
Country
France
  • Like
Reactions: Reecey

key1340

Well-Known Member
Member
Joined
Jul 6, 2015
Messages
193
Trophies
0
Age
33
XP
222
Country
United States
it's okay i will find a way once i understand how the firm is created and what framebuffer address to put

You don't need to update your app the updated framebuffer doesn't get add in when you convert the a9lh bin to firm. It needs to be added in to the source code of the app you won't to build.
 

Hihomaster

Well-Known Member
Member
Joined
Jun 25, 2008
Messages
184
Trophies
0
XP
486
Country
France
You don't need to update your app the updated framebuffer doesn't get add in when you convert the a9lh bin to firm. It needs to be added in to the source code of the app you won't to build.
so the original app need to be updated to use firmtool for v1.2?
 

key1340

Well-Known Member
Member
Joined
Jul 6, 2015
Messages
193
Trophies
0
Age
33
XP
222
Country
United States
so the original app need to be updated to use firmtool for v1.2?

With b9s 1.0 all you need to do is convert a9lh.bin to firm.bin with firmtool.

For b9s 1.2 you need to update the framebuffer in the source code of godmode9,decrypt9 or whot ever app you wont to make compatible with b9s.Then make the a9lh.bin then convert to firm.bin with firmtool.
 

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,431
Country
With b9s 1.0 all you need to do is convert a9lh.bin to firm.bin with firmtool.

For b9s 1.2 you need to update the framebuffer in the source code of godmode9,decrypt9 or whot ever app you wont to make compatible with b9s.Then make the a9lh.bin then convert to firm.bin with firmtool.
So what file & line do you change to convert the app in the master-folder? say if you open it up with notepad++ what part do you change to what and then just type in "make release" I presume in cmd to build it? just use decrypt9 as an example. I know all about building files I used to do all the wiiu stuff over there so all I need to know is which file & line or lines you need to change to what string to convert the framebuffer?
 
Last edited by Reecey,

key1340

Well-Known Member
Member
Joined
Jul 6, 2015
Messages
193
Trophies
0
Age
33
XP
222
Country
United States
So what file & line do you change to convert the app in the master-folder? say if you open it up with notepad++ what part do you change to what and then just type in "make release" I presume in cmd to build it? just use decrypt9 as an example. I know all about building files I used to do all the wiiu stuff over there so all I need to know is which file & line or lines you need to change to what string to convert the framebuffer?

To update the framebuffer is different for every app.Here is Decrypt9 and hourglass9 code for an example.

https://github.com/d0k3/Decrypt9WIP/commit/99069ca130175f74e195cc11f2a5e3cd385ebf19
https://github.com/d0k3/Hourglass9/commit/dbf75e2007efa0fed93b0eaad5a8e9e07ae5b828

When the framebuffer has been updated you don't need and special commands just use make or make firm for most apps.Or if you have the a9lh.bin that has its framebuffer already updated just use the command on the first page of this thread with firmtool.
 
  • Like
Reactions: Reecey

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,431
Country
To update the framebuffer is different for every app.Here is Decrypt9 and hourglass9 code for an example.

https://github.com/d0k3/Decrypt9WIP/commit/99069ca130175f74e195cc11f2a5e3cd385ebf19
https://github.com/d0k3/Hourglass9/commit/dbf75e2007efa0fed93b0eaad5a8e9e07ae5b828

When the framebuffer has been updated you don't need and special commands just use make or make firm for most apps.Or if you have the a9lh.bin that has its framebuffer already updated just use the command on the first page of this thread with firmtool.
I see so the apps have already been updated by the owner, its just a matter of compiling them again.
 

Clément

Well-Known Member
Member
Joined
Aug 2, 2016
Messages
126
Trophies
0
Age
21
Location
Paris
XP
144
Country
France
Okay i made a new version but i didn't test it yet ( pretty busy right now)
if someone could test it to see if it works with b9s1.2 ? that woul be helpful
I obtained a output.firm and the size is 0 kb with Python 3.6.1 :/ I need to have Python 3.2 ? Or it's not the problem ?
upload_2017-6-11_0-24-43.png
 

Mat37

Well-Known Member
Member
Joined
Dec 3, 2016
Messages
790
Trophies
0
Age
21
Location
Does it matter ?
XP
1,367
Country
France
Is there any tool to convert bins to firm for b9s 1.2 ? cuz emunand9 doesn't work (or maybe i'm doing something wrong but tested with files at page 3 and makes same result
 

Mitch__

Active Member
Newcomer
Joined
Jun 12, 2017
Messages
32
Trophies
0
Age
20
XP
100
Country
United States
WARNING: I am not responsible for any damage to any devices.

Anyway, so head on over to https://github.com/TuxSH/firmtool.git
Download the firmtool file
Scroll down to "Building a firmware binary from an arm9loaderhax.bin payload "
Copy the code "firmtool build test.firm -n 0x23F00000 -e 0 -D arm9loaderhax.bin -A 0x23F00000 -C NDMA"
Run that but replace the arm9loaderhax.bin with the payload of your choice
It should create a test.firm file.
Just rename that to whatever you chose and put it in your luma/payloads

Anyway, I'm bad at making quality tutorials, but this should work. It at least worked for me

Also, I would also like to point out that I haven't done anything in the development of the firmtool. i just figured the makefile of godmode9 would say something about firm files. All credit goes to TuxSH.
Can someone please elaborate this for me? I got lost at "Run that but replace the arm9loaderhax.bin with the payload of your choice" run what?
 

Mat37

Well-Known Member
Member
Joined
Dec 3, 2016
Messages
790
Trophies
0
Age
21
Location
Does it matter ?
XP
1,367
Country
France
Can someone please elaborate this for me? I got lost at "Run that but replace the arm9loaderhax.bin with the payload of your choice" run what?
Copy the code in a bat file in same directory as firmtool, and replace arm9loaderhax.bin with the name of your payload
 

Powerful

Well-Known Member
Member
Joined
Dec 7, 2016
Messages
536
Trophies
0
Age
26
XP
2,307
Country
United States
can anyone make an emunand.firm for b9s v1.2? i could only get the emunand firm to work on b9s 1.0
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Sorry for accidentally bending over