Homebrew Question Request tinfoil 0.2.1 patched for latest firmware

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
I have a stripped down version of Tinfoil here: https://github.com/uyjulian/Tinfoil (thinfoil branch)


Be sure that each of the forks of Tinfoil require their specific version of "usb_install_pc.py" since the buffer sizes and command sets change.
any idea how to fix this error during compile?
error: 'gfxInitDefault' was not declared in this scope
gfxInitDefault();
 

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
Wrong branch. Try "git checkout origin/thinfoil"
Thanks but a new error
Tinfoil-thinfoil/source/nx/fs.cpp:23:67: error: too few arguments to function 'Result fsFileRead(FsFile*, u64, void*, size_t, u32, size_t*)'
ASSERT_OK(fsFileRead(&m_file, offset, buf, size, &sizeRead), "Failed to read file");
 

uyjulian

Homebrewer
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,880
Country
United States
Thanks but a new error
Tinfoil-thinfoil/source/nx/fs.cpp:23:67: error: too few arguments to function 'Result fsFileRead(FsFile*, u64, void*, size_t, u32, size_t*)'
ASSERT_OK(fsFileRead(&m_file, offset, buf, size, &sizeRead), "Failed to read file");
... yeah, that's an issue on my side. It's been fixed.
 
Last edited by uyjulian,

TotalJustice

Well-Known Member
Member
Joined
Jan 28, 2017
Messages
443
Trophies
0
Age
26
XP
2,602
Country
United Kingdom
Thanks but a new error
Tinfoil-thinfoil/source/nx/fs.cpp:23:67: error: too few arguments to function 'Result fsFileRead(FsFile*, u64, void*, size_t, u32, size_t*)'
ASSERT_OK(fsFileRead(&m_file, offset, buf, size, &sizeRead), "Failed to read file");
Change the line to
ASSERT_OK(fsFileRead(&m_file, offset, buf, size, FS_READOPTION_NONE, &sizeRead), "Failed to read file");
 

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
@TotalJustice I tested your build and it's working. No information however was shown on the switch screen of the installtion progress.. Just hangs on the destinaton selection until it is finished. The build was able to install nsp.

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

Internal memory or TF card?
Both. I'm not really sure because I tried it twice. The second time I pressed X to change the destination but still same speed. By the way is there a way to know which destination is chosen?
 
Last edited by GnK23,
  • Like
Reactions: TotalJustice

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,868
Trophies
2
XP
29,131
Country
United Kingdom
@TotalJustice I tested your build and it's working. No information however was shown on the switch screen of the installtion progress.. Just hangs on the destinaton selection until it is finished. The build was able to install nsp.
Yeah I noticed when I browsed the commit that it was missing a consoleUpdate command during install. Was that deliberate, is that what stops it from breaking? Or is there another change I didn't spot?
 
  • Like
Reactions: TotalJustice

OrGoN3

Well-Known Member
Member
Joined
Apr 23, 2007
Messages
3,241
Trophies
1
XP
3,258
Country
United States
Yeah that's already been suggested, thanks... I'll try the latest build again sometime, but I've always had problems with past builds I've tried, whereas the build of real tinfoil I've been using has worked flawlessly since its release.
Which one have you been using?
 

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
Yeah I noticed when I browsed the commit that it was missing a consoleUpdate command during install. Was that deliberate, is that what stops it from breaking? Or is there another change I didn't spot?
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

@uyjulian @hippy dave @TotalJustice @8BitWonder
 
Last edited by GnK23,

TotalJustice

Well-Known Member
Member
Joined
Jan 28, 2017
Messages
443
Trophies
0
Age
26
XP
2,602
Country
United Kingdom
Yeah I noticed when I browsed the commit that it was missing a consoleUpdate command during install. Was that deliberate, is that what stops it from breaking? Or is there another change I didn't spot?
Good find! I was sure that I added all consoleUpdates that needed to be there, well looks like missed one haha.

Thank you for letting me know, I’ll add it in a few mins.
 
  • Like
Reactions: hippy dave

xenon

Well-Known Member
Member
Joined
May 19, 2006
Messages
210
Trophies
1
Website
Visit site
XP
262
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? :)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    10 tabs open on chrome and no slow downs suck it low ram plebs lol
  • Veho @ Veho:
    Firefox users be like "look at what they have to do to mimic a fraction of our power."
  • K3Nv2 @ K3Nv2:
    they be like which lite firefox exe pls
  • Veho @ Veho:
    Wut.
  • Maximumbeans @ Maximumbeans:
    GM all
  • K3Nv2 @ K3Nv2:
    butt
  • SylverReZ @ SylverReZ:
    douche
  • Veho @ Veho:
    Touché.
  • SylverReZ @ SylverReZ:
    Push it :creep:
  • Veho @ Veho:
    Talk about propaganda.
  • Veho @ Veho:
    Illinois is working to ban toxic food additives that have been banned for decades in other countries; additives that can be replaced and all those countries still have Skittles and Mountain Dew. Title of the piece: GUBMINT WANTS TO TAKE AWAY YOUR CANDY
  • Veho @ Veho:
    Gee, I wonder if the author is biased?
  • SylverReZ @ SylverReZ:
    @Veho, Sounds and smells like bullshit. They don't give you cancer, and California should know that. I don't get why they stick labels that say "may or may not cause reproductive harm or cancer".
  • Veho @ Veho:
    Arsenic doesn't give you cancer either.
    +1
  • Veho @ Veho:
    California has already banned those additives BTW.
    +1
  • Veho @ Veho:
    Psi has been banned in the state of California.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I am the cancer!!! lol
  • Psionic Roshambo @ Psionic Roshambo:
    Yayyy got arcade games on the Pi working lol
  • Veho @ Veho:
    Cool.
  • Psionic Roshambo @ Psionic Roshambo:
    Now to spend 6 months deleting all the garbage lol
  • Psionic Roshambo @ Psionic Roshambo:
    Mame should be two sets one for preservation of everything and one set for people who just want to play and enjoy the old old ganes
    Psionic Roshambo @ Psionic Roshambo: Mame should be two sets one for preservation of everything and one set for people who just want...