Homebrew Question Request tinfoil 0.2.1 patched for latest firmware

uyjulian

Homebrewer
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,873
Country
United States
Guys, I just updated to atmo 0.9.4 (clean) and then to firmware 9.0.0, but Tinfoil 0.2.1 (USB fix) still works for me. Am I doing something wrong/right? :)
It may stop working in a future Atmosphère update when the HID mitm is no longer being applied.

Perhaps the key to a stable tinfoil 0.2.1 is the buffer or speed of transfer. Fastest transfer I saw before was 36mbps maybe if we could somehow force it to stay on 20-25mbps then it will be stable. Still relatively faster than goldleaf's 16mbs. I also notice that all the builds crash if there is DLC in the que

~~this is not discord~~

It may be possible that there is a memory leak. This issue can't really be fixed easily because ubsan or Valgrind is not available.
 
Last edited by uyjulian,

garco

Well-Known Member
Member
Joined
Jun 28, 2006
Messages
141
Trophies
1
XP
1,619
Country
Italy
Guys, I just updated to atmo 0.9.4 (clean) and then to firmware 9.0.0, but Tinfoil 0.2.1 (USB fix) still works for me. Am I doing something wrong/right? :)
The "original" works well but if you notice, there are some glitch in text when install something. It works beacuse Atmosphere now provides a temporary hid-mitm that will cause homebrew to continue to work as expected, but it will be necessary to update the homebrew to the new libraries when the Atmos support will be not available
 
  • Like
Reactions: skins20

TotalJustice

Well-Known Member
Member
Joined
Jan 28, 2017
Messages
443
Trophies
0
Age
26
XP
2,597
Country
United Kingdom
Guys, I just updated to atmo 0.9.4 (clean) and then to firmware 9.0.0, but Tinfoil 0.2.1 (USB fix) still works for me. Am I doing something wrong/right? :)
Well as it’s working, I can conclude that you’re not doing anything wrong;)

It’s working because of the tempory workaround that ams has added to allow homebrew to still work with input.

The issue that ogfoil was having was that it could not be compiled because it was still using an old graphics lib and libnx had added another arg to pass for fs. It’s an incredibly easy fix as you just gut out all the old graphics lib functions and add the extra arg needed for fs.

Hope that explains it.
 

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
Thank you everyone for helping me find and build an updated tinfoil. :yayswitch: Im happy to finally make it work. Its not perfect but does the job better than the other installers.
 
  • Like
Reactions: garco

UnT7oh

Well-Known Member
Newcomer
Joined
Mar 18, 2017
Messages
88
Trophies
0
XP
377
Country
United States
I guess the ultimate version would be @blawar 's updated OG Tinfoil fork which has fixed SD installs and can be built with latest libnx (although someone said it disables nsp verification?), plus the fixes from this version from @satelliteseeker https://github.com/satelliteseeker/Tinfoil/releases/tag/v0.2.1-USB-fix which adds ignore firmware requirement option for usb installations and a more stable buffer size.

The above version from satelliteseeker is still included with fluffy! satelliteseeker's newer "5.x USB fix2" should not be forked however as it has some weird nca padding added.
 
Last edited by UnT7oh,

blawar

Developer
Developer
Joined
Nov 21, 2016
Messages
1,708
Trophies
1
Age
40
XP
4,311
Country
United States
I guess the ultimate version would be @blawar 's updated OG Tinfoil fork which has fixed SD installs and can be built with latest libnx (although someone said it disables nsp verification?), plus the fixes from this version from @satelliteseeker https://github.com/satelliteseeker/Tinfoil/releases/tag/v0.2.1-USB-fix which adds ignore firmware requirement option for usb installations and a more stable buffer size.

The above version from satelliteseeker is still included with fluffy! satelliteseeker's newer "5.x USB fix2" should not be forked however as it has some weird nca padding added.

buffer sizes are about performance not stability, I can add ignore firmware to USB install. you are right baout the weird padding stuff, i will not be adding that.

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

9.0
Kosmos
Emunand

Most games install fine with the exception of a few - Dead cells and Cadence to hyrule so far have issues - I can install them but error on launch. This has been happening with all installers that actually install them on 9.0

your issue does not appear to be related to title installers.
 
D

Deleted User

Guest
buffer sizes are about performance not stability, I can add ignore firmware to USB install. you are right baout the weird padding stuff, i will not be adding that.

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



your issue does not appear to be related to title installers.


Just tried on sysnand and same issue - Some games wont load after install and some do

This user cannot play this software message

Tried with atmo and kosmos both with new updated patches

8.1.0 switch same nsp no issues

Just tried same games on atmo 9.0 sysnand and same issue. Need another 9.0 switch to test out nsps

Did a system initialize and fixed my issue - Sorry for being offtopic and hope this helps anyone ever having this problem.
 
Last edited by ,

uyjulian

Homebrewer
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,873
Country
United States
I changed buffer to 8MB and made the changes to replace GetCNMTNCAInfo with CreateNSPCNMTContentRecord.

https://github.com/blawar/OG_Tinfoil/releases/download/v0.3.0/ogtinfoil.nro

Differences from upstream:

USB install only; all other features stripped
Toggle between internal memory and TF card with X
Toggle between enforcing and ignoring required firmware version with Y
All files sent are installed; there is no menu selection for files to be installed
Threading is removed
USB packet padding is added for the drivers that require it to function properly
 
Last edited by uyjulian,
  • Like
Reactions: GnK23

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
I changed buffer to 8MB and made the changes to replace GetCNMTNCAInfo with CreateNSPCNMTContentRecord.

https://github.com/uyjulian/Tinfoil/releases/download/v0.2.1-thinfoil1/Tinfoil.nro

Differences from upstream:

USB install only; all other features stripped
Toggle between internal memory and TF card with X
Toggle between enforcing and ignoring required firmware version with Y
All files sent are installed; there is no menu selection for files to be installed
Threading is removed
USB packet padding is added for the drivers that require it to function properly

This so far is the king of all builds. It does not send the atmosphere to the blue screen when crashes. Simply exiting the app and restarting the transfer makes it work. No more going to the menu to install via usb. Just plug and transfer. Exits on its own after the transfer. Excellent Work! Very Stable!

Edit:
This has resolved the question on how to fix tinfoil's random crashes
 
Last edited by GnK23,

UnT7oh

Well-Known Member
Newcomer
Joined
Mar 18, 2017
Messages
88
Trophies
0
XP
377
Country
United States
buffer sizes are about performance not stability, I can add ignore firmware to USB install. you are right baout the weird padding stuff, i will not be adding that.

Stability in terms of an issue people were having at the time- installations used to always fail on 5x firmware (I think) at 99% until the buffer size was reduced to 1MB in satelliteseeker's first build. I don't know and can't really remember if that issue persisted after 5x. Maybe you would know what would cause that problem in the first place? Since you're forking Adubbz original rather than the usbfix version it could be important.

The second build he released with the padding was to fix some apparent corrupt installations, I don't really remember the details but obviously it wasn't a good solution. I've never had a corrupt installation with his first build anyway and that's why it's the one everyone has been using this entire time and is provided with fluffy.

I see you have already added ignore firmware option to your build so that's great!

By the way, someone said this in ReiSwitched discord:

wait does your tinfoil PR make it so it doesn't verify NSPs unless you manually add the define?

Is this correct?
 
Last edited by UnT7oh,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @Psionic Roshambo, JonTron's back yet again until he disappears into the void for another 6 or...