nx-hbloader updated to version 2.0.0, now has full access to RAM

31827450.png

Switchbrew has released a major update to nx-hbloader, a host process for loading NRO files for Switch homebrew applications. This new version makes some improvements such as now allowing for applications to run with the full amount of 3.2GB RAM, as opposed to the past, where it could only use ~400MB of RAM. Library applets are still usable, and older homebrew NRO files will still work, but they are limited to using 442MB of RAM max, this also counts when running it through the album app. Other changes were made, including making the program less prone to issues by disabling core3 access, and more. You can grab the .nsp at the GitHub for the project, and see the full changelog below.


  • Now supports running as an application with access to the full ~3.2GB of RAM reserved for applications, while being backwards compatible with older NRO homebrew. Running as a library applet is still supported, although it only has access to 442MB of RAM.
  • Granted access to all FS permissions.
  • Granted user/host access to all services.
  • Granted access to debugging SVCs.
  • Disabled access to core3 in order to solve stability problems when using preemptively multithreaded threads & load balancing.
  • Added support for RandomSeed homebrew ABI key, which allows NRO homebrew to use the libnx randomGet* functions without always getting back the same results throughout a single session of nx-hbloader.
  • Custom NPDM built from source.
    • Default kernel caps application type set to applet (2). Atmosphère users aren't affected by this change, since its native support for nx-hbloader automatically sets the appropriate application type.
The provided binary is an ExeFS PFS0 .nsp, which can be placed at /atmosphere/hbl.nsp, or loaded through some other ExeFS replacement method.

:download: nx-hbloader 2.0.0 GitHub
 

Rahkeesh

Well-Known Member
Member
Joined
Apr 3, 2018
Messages
2,178
Trophies
1
Age
42
XP
3,260
Country
United States
I'd hate to be that person, but I have been using exFAT perfectly fine on my Switch?

You're fine for now, and maybe the next several years. Multiple people have reported being hit by the problem eventually and lost everything on their SD card, and the cause of that is known by homebrew devs. You do what you like but there's still a significant risk here.
 

Clydefrosch

Well-Known Member
Member
Joined
Jan 2, 2009
Messages
6,020
Trophies
2
XP
4,613
Country
Germany
I'd hate to be that person, but I have been using exFAT perfectly fine on my Switch?
exfat corruption appears to be a slowly and ongoing process.
it apparently mainly happens when you exit homebrew through the home button (instead of a valid build in exit option) or when homebrew crashes and might only get unnecessary files corrupted sometimes too.
like, a handful of nes roms you might not ever check again. or some nsp files of a game you haven't played in a while.
the more you exit wrong, the more likely you're to break a relevant file and eventually notice.
 

Rahkeesh

Well-Known Member
Member
Joined
Apr 3, 2018
Messages
2,178
Trophies
1
Age
42
XP
3,260
Country
United States
Am I right in assuming that the mupen64plus core will now run with the nro and not require an installed nsp?

Maybe a question for the Retroarch thread.

Retroarch and any other homebrew needs to be specifically updated for this in order to take advantage of the extra RAM. So probably not yet.
 

Switchtime

Member
Newcomer
Joined
Jun 25, 2018
Messages
24
Trophies
0
XP
228
Country
Denmark

The problem is on booth sides! exFat works under Nintendo software the way it should (NSP) and Nintendo will certainly not fix that. As long as HBLoaders handles the termination of an NRO as a crash it is clear that the data will be damaged. But I still hope that it will be fixed elsewhere:

http://douevenknow.us/post/178903213313/nintendo-switch-kernel-patching-and-emulation

That would solve the problem, as homebrew software is handled just like nintendo software. So you don't have to crash NROs anymore if you want to quit them.
 
Last edited by Switchtime,
  • Like
Reactions: Pluupy

leonmagnus99

Well-Known Member
Member
Joined
Apr 2, 2013
Messages
3,704
Trophies
2
Age
33
Location
Seinegald
XP
2,875
Country
Iraq
You're fine for now, and maybe the next several years. Multiple people have reported being hit by the problem eventually and lost everything on their SD card, and the cause of that is known by homebrew devs. You do what you like but there's still a significant risk here.
damn wut? how ?
i am also using exfat , what is the risk ?

i dont use much of homebrew menu and its apps, only choidujour to update ._.
no emulators .

let me know how i can avoid that losing data thing, i have been using exfat for many months now without any issues, i use exfat so that i can install larger nsp files... 4gb+ ones.
 

OrGoN3

Well-Known Member
Member
Joined
Apr 23, 2007
Messages
3,241
Trophies
1
XP
3,252
Country
United States
damn wut? how ?
i am also using exfat , what is the risk ?

i dont use much of homebrew menu and its apps, only choidujour to update ._.
no emulators .

let me know how i can avoid that losing data thing, i have been using exfat for many months now without any issues, i use exfat so that i can install larger nsp files... 4gb+ ones.
The driver Nintendo is using for exfat is awful. That's the risk. From what I've been reading, the harm usually comes from using your card for homebrew and games. So it is often suggested to go fat32 if you're going to use homebrew. I have read some posts about people saying their SD cards were corrupt after just playing games, with exfat, but I'm skeptic about those.

If you want to be safe and want to continue using exfat, I'd suggest a second memory card, fat32, for homebrew.
 

JokerJoester

Well-Known Member
Newcomer
Joined
Sep 5, 2018
Messages
62
Trophies
0
Age
32
XP
562
Country
United States
The driver Nintendo is using for exfat is awful. That's the risk. From what I've been reading, the harm usually comes from using your card for homebrew and games. So it is often suggested to go fat32 if you're going to use homebrew. I have read some posts about people saying their SD cards were corrupt after just playing games, with exfat, but I'm skeptic about those.

If you want to be safe and want to continue using exfat, I'd suggest a second memory card, fat32, for homebrew.

You have convinced me to not take any risks. I am just going to back up my files to my computer, format to fat32, and then put everything back on. There is a way to install NSP/XCI files via USB on the Switch now, right?
 

OrGoN3

Well-Known Member
Member
Joined
Apr 23, 2007
Messages
3,241
Trophies
1
XP
3,252
Country
United States
You have convinced me to not take any risks. I am just going to back up my files to my computer, format to fat32, and then put everything back on. There is a way to install NSP/XCI files via USB on the Switch now, right?
Via USB? Yes if that USB is connected to your PC. Tinfoil can achieve this. If you're asking about loading XCI files with SX OS, current SX OS can load XCI from a connected USB hard drive (up to 2TB). It can also install from the hard drive to your SD card (but you cannot install NSP's to the hard drive).

--------------------- MERGED ---------------------------

damn wut? how ?
i am also using exfat , what is the risk ?

i dont use much of homebrew menu and its apps, only choidujour to update ._.
no emulators .

let me know how i can avoid that losing data thing, i have been using exfat for many months now without any issues, i use exfat so that i can install larger nsp files... 4gb+ ones.

Legal NSP Splitter: https://gbatemp.net/threads/legal-nsp-splitter-for-fat32.520213/
If you use something like DZ Network NSP Installer, https://gbatemp.net/threads/dz-network-nsp-installer-and-title-key-dumper.519179/, and install via local network, the program will handle the splitting of the files itself.

When NSP files are installed, the Switch system installs them into 4GB chunks.

You can also dump your NAND in parts (and then join them later on on a PC) so it'll work with FAT32 as well.
 
  • Like
Reactions: leonmagnus99

JokerJoester

Well-Known Member
Newcomer
Joined
Sep 5, 2018
Messages
62
Trophies
0
Age
32
XP
562
Country
United States
Via USB? Yes if that USB is connected to your PC. Tinfoil can achieve this. If you're asking about loading XCI files with SX OS, current SX OS can load XCI from a connected USB hard drive (up to 2TB). It can also install from the hard drive to your SD card (but you cannot install NSP's to the hard drive).

I was referring to the former. So if I understand this correctly, I can install XCI dumped games from my PC connected to my Switch with Tinfoil. This is especially useful to know since the reason I opted into exfat in the first place was because most XCI dumps exceed 4GB
 

OrGoN3

Well-Known Member
Member
Joined
Apr 23, 2007
Messages
3,241
Trophies
1
XP
3,252
Country
United States

leonmagnus99

Well-Known Member
Member
Joined
Apr 2, 2013
Messages
3,704
Trophies
2
Age
33
Location
Seinegald
XP
2,875
Country
Iraq
saying their SD cards were corrupt after just playing games, with exfat, but I'm skeptic about those.

If you want to be safe and want to continue using exfat, I'd suggest a second memory card, fat32, for homebrew.
maybe their sdcards were chinese knock offs?
i got my class10 from amazon.

so for homebrew i could use a 4gb card to e.g update my system with choidujour etc.?

also if i were to back up my stuff /installed 4+gb nsps for instance.
when i look them up in data management on my switch i see e.g 7gb , but are they actually saved as chunks on my mSD so could i copy those back on a fat32 mSD or no?
 
Last edited by leonmagnus99,
  • Like
Reactions: OrGoN3

OrGoN3

Well-Known Member
Member
Joined
Apr 23, 2007
Messages
3,241
Trophies
1
XP
3,252
Country
United States
maybe their sdcards were chinese knock offs?
i got my class10 from amazon. No. These were normal SD cards.

so for homebrew i could use a 4gb card to e.g update my system with choidujour etc.? Yes, as system updates tend to be under 300MB.

also if i were to back up my stuff /installed 4+gb nsps for instance.
when i look them up in data management on my switch i see e.g 7gb , but are they actually saved as chunks on my mSD so could i copy those back on a fat32 mSD or no? yes

My replies are inline.
 
  • Like
Reactions: leonmagnus99

leonmagnus99

Well-Known Member
Member
Joined
Apr 2, 2013
Messages
3,704
Trophies
2
Age
33
Location
Seinegald
XP
2,875
Country
Iraq
My replies are inline.
oh sweet, so i could actually simply copy them right into a fat32 card eh hmm seems tempting as i wont have to do any conversion for my 4+gb files.

i might switch to fat32 but i dont know when, but how likely are ppl to get that corruption thing?

i havent had any issues so far and i previously launched stuff for homebrew on my exfat.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: @SylverReZ, Indeed lol