Homebrew [RELEASE] CtrBootManager/CtrBootManager9

Billy Acuña

Well-Known Member
Member
Joined
Oct 10, 2015
Messages
3,126
Trophies
1
Age
31
XP
3,701
Country
Mexico
I had some difficulties to initialise an ARM11 stub and I don't understand why: even the slightest operation makes the 3DS freeze.
Currently, I am working on some small projects for PS Vita (and I also play games a lot :)).
Nice to see you again and too bad news you are losing interest into 3ds scene :( hope you somehow figure out how to implement ARM11 stub, this is by far my favorite boot manager.
 

Kazuma77

Well-Known Member
Member
Joined
May 11, 2008
Messages
1,062
Trophies
1
XP
979
Country
United States
New version 2.5.2 is available!
https://github.com/OperationNT414C/CtrBootManager/releases/tag/2.5.2

Fix A9LH and B9S v1.0 crashes at load (since update v2.5.1)

Thanks for keeping this updated. Though the A9LH .bin seems to have issues with no-init builds, but it's no big deal. I have a copy that works. Anyway, I tried to compile the latest source, and (after a lengthy dependency chase I won't go into details about to keep this short) it didn't give me a .firm for some reason. Actually, it gave me an error at the "add_executable(loader" line until it hit me -- there's no "loader" folder. So I made a copy of the "chainloader" folder and renamed it to "loader" and it finally built a .bin file, but no .firm file was generated. What am I missing?
 

OperationNT

Well-Known Member
OP
Member
Joined
May 1, 2016
Messages
353
Trophies
0
Age
39
XP
2,186
Country
France
Hello @Kazuma77,
Actually, the ".firm" generation is not by default in the automatic build process (because I am not very good with CMake and I didn't take enough time to understand it). So I manually generate it from the ".bin" file using "firmtool":
https://github.com/TuxSH/firmtool
Currently, I don't stay in my home so I don't have my script under my eyes but I think the command looks like:
"firmtool build CtrBootManager9.firm -n 0x23F00000 -e 0 -D CtrBootManager9.bin -A 0x23F00000 -C NDMA"
 

Kazuma77

Well-Known Member
Member
Joined
May 11, 2008
Messages
1,062
Trophies
1
XP
979
Country
United States
Hello @Kazuma77,
Actually, the ".firm" generation is not by default in the automatic build process (because I am not very good with CMake and I didn't take enough time to understand it). So I manually generate it from the ".bin" file using "firmtool":
https://github.com/TuxSH/firmtool
Currently, I don't stay in my home so I don't have my script under my eyes but I think the command looks like:
"firmtool build CtrBootManager9.firm -n 0x23F00000 -e 0 -D CtrBootManager9.bin -A 0x23F00000 -C NDMA"

That's pretty much the example for converting an A9LH payload from the firmtool "readme.md" file. It crossed my mind to try that. But it seems like no payload I convert that way ever works with Luma. I get nothing with the file I built. Just to test, I tried building the binary in the release to a .firm file and it gave a black screen as boot.firm, ran OK from BootCTR9, and crashed under Luma. If you're converting the .bin file, it would be extremely helpful just to know what that line is. I could finally create converted payloads that Luma doesn't crash with.
 
Last edited by Kazuma77,

urherenow

Well-Known Member
Member
Joined
Mar 8, 2009
Messages
4,809
Trophies
2
Age
48
Location
Japan
XP
3,715
Country
United States
That's pretty much the example for converting an A9LH payload from the firmtool "readme.md" file. It crossed my mind to try that. But it seems like no payload I convert that way ever works with Luma. I get nothing with the file I built. Just to test, I tried building the binary in the release to a .firm file and it gave a black screen as boot.firm, ran OK from BootCTR9
Are you sure you have the latest firmtool? IIRC, there was a version with a mistake in the crypto...
 

Kazuma77

Well-Known Member
Member
Joined
May 11, 2008
Messages
1,062
Trophies
1
XP
979
Country
United States
Are you sure you have the latest firmtool? IIRC, there was a version with a mistake in the crypto...

Running firmtool with -v gives 1.2. Luma just doesn't support "-e 0" conversions at all. I think the Luma devs just don't want their chainloader to run Gateway. That's one payload their chainloader has never run right. It seems deliberate. For that matter, I think the changes in B9S 1.2 were an attempt to pull a "GW Fastboot" and break everything that wasn't Luma or GodMode9.
 

urherenow

Well-Known Member
Member
Joined
Mar 8, 2009
Messages
4,809
Trophies
2
Age
48
Location
Japan
XP
3,715
Country
United States
I think the changes in B9S 1.2 were an attempt to pull a "GW Fastboot" and break everything that wasn't Luma or GodMode9.
Well, bootctr9 chainloads from Luma just fine, which in turn can load GW. Just takes like 1.5 seconds longer than if Luma could directly load GW
¯\_(ツ)_/¯

EDIT: wait... I keep forgetting who you are. Why you gotta use different user names
 
Last edited by urherenow,

OperationNT

Well-Known Member
OP
Member
Joined
May 1, 2016
Messages
353
Trophies
0
Age
39
XP
2,186
Country
France
I just come back from holidays so I can give you my script:
"call firmtool.py build CtrBootManager9.firm -n 0x23F00000 -e 0 -D CtrBootManager9.bin -A 0x23F00000 -C NDMA -i"
I used firmtool version 1.1 to generate CtrBootManager9.firm version 2.5.2.
 

Kazuma77

Well-Known Member
Member
Joined
May 11, 2008
Messages
1,062
Trophies
1
XP
979
Country
United States
I just come back from holidays so I can give you my script:
"call firmtool.py build CtrBootManager9.firm -n 0x23F00000 -e 0 -D CtrBootManager9.bin -A 0x23F00000 -C NDMA -i"
I used firmtool version 1.1 to generate CtrBootManager9.firm version 2.5.2.


OK, well, I can revert the version if I need to. That "-i" is different though so I'll try that first. Just looked it up in firmtool's help. It's for screen init. I'm doing a facepalm for not noticing this switch before. I think it's time to re-convert everything. Gateway might even run as boot.firm with that. Thanks.
 
  • Like
Reactions: urherenow

Kazuma77

Well-Known Member
Member
Joined
May 11, 2008
Messages
1,062
Trophies
1
XP
979
Country
United States
What?
Really!?

╿︡O͟-O︠╿

Now I can't wait to get home to my PC tomorrow to find out.

Sorry if I got your hopes up for nothing. But it works well for this. And I learned something about firmtool in the process -- never use "-b" if you want it to boot. But given I can now have infinite copies of this, I could make it look like GW and other converted payloads are working normally. All I have to do is make copies of this that launch one payload each (granted, for GW to work with this trick, I have to make the payload it runs BootCTR9 and patch the .ini file it uses in memory). The resulting loaders will work with both hotkey chainloaders and GUI-based ones. They will be like having a "proper" payload in all the ways that matter.
 
Last edited by Kazuma77,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...