Hacking Atmosphere-NX - Custom Firmware in development by SciresM

designgears

Well-Known Member
Member
Joined
Aug 8, 2016
Messages
291
Trophies
0
XP
671
Country
United States
Whoever in ReSwitched discord I helped get their switch booting again, glad I could help out! Unfortunately, I was banned because mentioning "other opensource cfw" (ReiNX in this case) is apparently considered piracy.

#8 Trying to evade, look for loopholes, or stay borderline within the rules will be treated as breaking them.
#9 Absolutely no piracy. There is a zero-tolerance policy and we will enforce this strictly and swiftly.

On that note, @SciresM Atmosphere is unable to boot in certain circumstances where ReiNX can and even corrects the issue so that Atmosphere can boot. Downgrading with ChoiDour (not homebrew NX version) causes it, and fake linking an account causes it.

I would post it on a github issue, but mentioning things ReSwitched views as piracy gets closed and ignored.
 
Last edited by designgears,

xenon

Well-Known Member
Member
Joined
May 19, 2006
Messages
210
Trophies
1
Website
Visit site
XP
262
Country
Italy
Hi, I am trying to compile the current Atmosphere (master) but I am hitting this error:

MYPATH/Atmosphere/stratosphere/loader/source/ldr_nso.cpp:278:9: error: 'sha256CalculateHash' was not declared in this scope

I understand Atmos switched to libnx's implementation of SHA256 operations and my build is not finding the associated function. I have successfully complied the latest libnx and I have edited Atmos's makefile to include my libnx build (results in compiling with -IMYPATH/Atmosphere/stratosphere/loader/../../../libnx/nx//include).

That path contains switch.h, which in turn includes switch/crypto/sha256.h, which defines the sha256CalculateHash function, which is what is causing the build error. I am not a huge expert of compilers, but I can't see what's wrong/missing. Any tips? Thanks in advance!

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

@SciresM should you ever see this... :)
 

designgears

Well-Known Member
Member
Joined
Aug 8, 2016
Messages
291
Trophies
0
XP
671
Country
United States
Hi, I am trying to compile the current Atmosphere (master) but I am hitting this error:

MYPATH/Atmosphere/stratosphere/loader/source/ldr_nso.cpp:278:9: error: 'sha256CalculateHash' was not declared in this scope

I understand Atmos switched to libnx's implementation of SHA256 operations and my build is not finding the associated function. I have successfully complied the latest libnx and I have edited Atmos's makefile to include my libnx build (results in compiling with -IMYPATH/Atmosphere/stratosphere/loader/../../../libnx/nx//include).

That path contains switch.h, which in turn includes switch/crypto/sha256.h, which defines the sha256CalculateHash function, which is what is causing the build error. I am not a huge expert of compilers, but I can't see what's wrong/missing. Any tips? Thanks in advance!

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

@SciresM should you ever see this... :)


You need to make install the libnx master
https://github.com/switchbrew/libnx

Or checkout atmos 0.8.7 tag and compile from there with current libnx.
 
Last edited by designgears,

RattletraPM

Well-Known Member
Member
Joined
Jan 18, 2017
Messages
897
Trophies
1
XP
8,341
Country
Italy
When will an update for Atmosphere be released that allows for cfw support on 8.0?
Later today, apparently.
Screenshot_20190420-173211~2.png
 

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,206
Country
United States
Curious.. I don't need to restore my backup but if you want to restore your backup.. You must be on fat32 to do this ?

Mine is formatted fat32 but installed exfat on ChoiNX.
 

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,206
Country
United States

Philliyxx

Well-Known Member
Member
Joined
Sep 21, 2018
Messages
304
Trophies
0
Age
36
XP
943
Country
United States

You can restore NAND fat32 or exfat in releases 4.9+
  • Support for split files restore Thanks to @emvym3two
    You can now restore using parts or FAT32. The only condition it that all parts must be in the sd card.
    It protects from fake sd cards, bad sectors and frequent I/O corruption. Aka, ~100% of cases.
I believe NXManager can also do this.
 
Last edited by Philliyxx,

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,206
Country
United States
You can restore NAND fat32 or exfat in releases 4.9+
  • Support for split files restore Thanks to @emvym3two
    You can now restore using parts or FAT32. The only condition it that all parts must be in the sd card.
    It protects from fake sd cards, bad sectors and frequent I/O corruption. Aka, ~100% of cases.
I believe NXManager can also do this.

I already joiner them to one file. rawnand.bin. Is it fine to use for fat32 or exfat?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: roms wont boot with wood r4menu