Hacking Help with Tinfoil's USB transfer

godstriker8

Well-Known Member
OP
Member
Joined
Feb 8, 2010
Messages
224
Trophies
1
XP
507
Country
Canada
When I attempt to use the command line with "usb_install_pc.py FOLDERPATH", I just get the message:


"Used for the installation of NSPs over USB.

Usage: usb_install_pc.py <nsp folder>"

What am I doing wrong?
 
Last edited by godstriker8,

TamarindoJuice

Well-Known Member
Member
Joined
Jan 30, 2016
Messages
288
Trophies
0
XP
1,531
Country
Brazil
Try this:
Put a folder called "nsp" on your desktop with the nsp's inside, so open the prompt and type:

cd desktop
and so
usb_install_pc.py nsp

I do it this way here.

(Obviously the usb_install_pc.py should be placed at your desktop too)
 
  • Like
Reactions: EmulateLife

bananapi761

Well-Known Member
Member
Joined
Jan 8, 2016
Messages
422
Trophies
0
Location
Norn Iron
XP
1,954
Country
United Kingdom
I had a similar issue, but I fixed it by holding the shift key in the usb installer python script's path and choosing open powershell, then typing the command.
 

godstriker8

Well-Known Member
OP
Member
Joined
Feb 8, 2010
Messages
224
Trophies
1
XP
507
Country
Canada
Try this:
Put a folder called "nsp" on your desktop with the nsp's inside, so open the prompt and type:

cd desktop
and so
usb_install_pc.py nsp

I do it this way here.

(Obviously the usb_install_pc.py should be placed at your desktop too)

I tried that, now I get this error:

C:\Users\T\Desktop>usb_install_pc.py nsp
Traceback (most recent call last):
File "C:\Users\T\Desktop\usb_install_pc.py", line 121, in <module>
dev = usb.core.find(idVendor=0x057E, idProduct=0x3000)
File "C:\Users\T\AppData\Local\Programs\Python\Python37\lib\site-packages\
usb\core.py", line 1263, in find
raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available

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

Have you tried aluminumfoil?

AluminumFoil is better than using a lousy Python script. You just open it, type the folder directory, and select the NSPs.

https://github.com/nosmokingbandit/AluminumFoil

Works 100% with the 2018-10-20 build of Tinfoil. Newer versions break it.

https://bsnx.lavatech.top/tinfoil/

Yes, but I tried a couple of versions of tinfoil (including the 10/20 version), but it didn't work for me, because when the PC sends the headers, I just get an empty list of NSPs to install: (https://imgur.com/a/UTcKN6y)
 
Last edited by godstriker8,

EmulateLife

Well-Known Member
Member
Joined
May 30, 2016
Messages
3,979
Trophies
0
Age
42
XP
1,889
Country
United States
I got that backend error on one of my laptops asked on gbatemp never was given a fix. Doesn't happen on a different laptop I have. It's some type of driver issue on your computer.
 

TamarindoJuice

Well-Known Member
Member
Joined
Jan 30, 2016
Messages
288
Trophies
0
XP
1,531
Country
Brazil
I tried that, now I get this error:

C:\Users\T\Desktop>usb_install_pc.py nsp
Traceback (most recent call last):
File "C:\Users\T\Desktop\usb_install_pc.py", line 121, in <module>
dev = usb.core.find(idVendor=0x057E, idProduct=0x3000)
File "C:\Users\T\AppData\Local\Programs\Python\Python37\lib\site-packages\
usb\core.py", line 1263, in find
raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available

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





Yes, but I tried a couple of versions of tinfoil (including the 10/20 version), but it didn't work for me, because when the PC sends the headers, I just get this: (Picture incoming in edit)


Are you using Python 3.7?
I'm using 3.6.6.
Do you installed pyusb and libusb modules?
LibusbK driver too?

EDIT - I sent you a PM.
 
Last edited by TamarindoJuice,

EmulateLife

Well-Known Member
Member
Joined
May 30, 2016
Messages
3,979
Trophies
0
Age
42
XP
1,889
Country
United States
Are you using Python 3.7?
I'm using 3.6.6.
Do you installed pyusb and libusb modules?

I use Python 3.7 and it works fine at least on one of my computers. I did the libusb pyusb installs and I get that backend error on one of my computers. I believe it's some type of driver issue that probably very few people on gbatemp know how to resolve.

OP if you have another computer try it on there.
 
Last edited by ,

godstriker8

Well-Known Member
OP
Member
Joined
Feb 8, 2010
Messages
224
Trophies
1
XP
507
Country
Canada
Are you using Python 3.7?
I'm using 3.6.6.
Do you installed pyusb and libusb modules?
LibusbK driver too?
3.7. I'm pretty sure pyusb and lib usb are installed, but just to be sure I tried again:

C:\Users\T\Desktop>pip3 install pyusb libusb
Requirement already satisfied: pyusb in c:\users\t\appdata\local\programs\py
thon\python37\lib\site-packages (1.0.2)
Requirement already satisfied: libusb in c:\users\t\appdata\local\programs\p
ython\python37\lib\site-packages (1.0.22b2)
Requirement already satisfied: setuptools>=39.2.0 in c:\users\t\appdata\loca
l\programs\python\python37\lib\site-packages (from libusb) (40.6.2)
Requirement already satisfied: cffi>=1.11.5 in c:\users\t\appdata\local\prog
rams\python\python37\lib\site-packages (from libusb) (1.11.5)
Requirement already satisfied: pycparser in c:\users\t\appdata\local\program
s\python\python37\lib\site-packages (from cffi>=1.11.5->libusb) (2.19)
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
 

EmulateLife

Well-Known Member
Member
Joined
May 30, 2016
Messages
3,979
Trophies
0
Age
42
XP
1,889
Country
United States
maybe bad cable?

Nothing to do with it again I get the backend error that OP is getting on one of my computers but it works on another computer with the same cable.

Only thing you can probably try is go into device manager and uninstall all the drivers then reinstall them. Other than that, try another computer.
 

godstriker8

Well-Known Member
OP
Member
Joined
Feb 8, 2010
Messages
224
Trophies
1
XP
507
Country
Canada
I use Python 3.7 and it works fine at least on one of my computers. I did the libusb pyusb installs and I get that backend error on one of my computers. I believe it's some type of driver issue that probably very few people on gbatemp know how to resolve.

OP if you have another computer try it on there.
Oh my god... I'm trying on another computer, now I'm getting this error in Powershell when using "python usb_install_pc.py /path/to/NSPs/""

>>
File "usb_install_pc.py", line 7
<!DOCTYPE html>
^
SyntaxError: invalid syntax
PS D:\Users\T\Downloads\nsp>
 
Last edited by godstriker8,

EmulateLife

Well-Known Member
Member
Joined
May 30, 2016
Messages
3,979
Trophies
0
Age
42
XP
1,889
Country
United States
Just type usb_install_pc.py nsp. None of that path/to stuff and make sure it's all on your desktop.

This is everything you should be typing verbatim after putting usb_install_pc.py on your desktop and a folder named nsp with the nsps in it.

cd desktop
usb_install_pc.py nsp

that's it.

I use command prompt. I don't know if that's exactly the same as Powershell or not but just use it.
 
Last edited by ,
  • Like
Reactions: Don Jon

godstriker8

Well-Known Member
OP
Member
Joined
Feb 8, 2010
Messages
224
Trophies
1
XP
507
Country
Canada
Just type usb_install_pc.py nsp. None of that path/to stuff and make sure it's all on your desktop.

This is everything you should be typing verbatim after putting usb_install_pc.py on your desktop and a folder named nsp with the nsps in it.

cd desktop
usb_install_pc.py nsp

that's it.
I forgot to mention that I also tried it on my desktop with the same error message about syntax
 

EmulateLife

Well-Known Member
Member
Joined
May 30, 2016
Messages
3,979
Trophies
0
Age
42
XP
1,889
Country
United States
But did you type usb_install_pc.py nsp (nsp also has to be the name of your folder, you're just giving tinfoil your folder name which contains the nsps)

Copy what you're entering from command prompt and paste it here.


I mean, you could change the folder name to folder and then you'd type usb_install_pc.py folder it's just whatever the folder is named. But don't have usb_install_pc.py inside the folder it needs to be outside the folder.

Also just to make sure did you choose the usb install option in tinfoil before you try it?
 
Last edited by ,

godstriker8

Well-Known Member
OP
Member
Joined
Feb 8, 2010
Messages
224
Trophies
1
XP
507
Country
Canada
But did you type usb_install_pc.py nsp (nsp also has to be the name of your folder, you're just giving tinfoil your folder name which contains the nsps)

Copy what you're entering from command prompt and paste it here.


I mean, you could change the folder name to folder and then you'd type usb_install_pc.py folder it's just whatever the folder is named. But don't have usb_install_pc.py inside the folder it needs to be outside the folder.

Also just to make sure did you choose the usb install option in tinfoil before you try it?
I'm literally just typing ".\usb_install_pc.py nsp "

Yeah, my folder is named: nsp, and yeah im in the "USB Install" section of tinfoil.

After copying the nsp folder to the desktop I now have a different issue. The command window just turns off after entering the command, similar to what happens when you double click on usb_install_pc.py
 

EmulateLife

Well-Known Member
Member
Joined
May 30, 2016
Messages
3,979
Trophies
0
Age
42
XP
1,889
Country
United States
"After copying the nsp folder to the desktop" So it wasn't on the desktop? Well that's why it wouldn't work before. I don't know why you're having the issue with it closing. Only thing I can think of try running command prompt as administrator (where it says type here to search type cmd, then right click on it and run as administrator) and retry.

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

If all else fails there's possibly one other reason why you're having problems, python needs to be in your path. Uninstall python and reinstall it and on the bottom where you're starting to install click on "install python to path" and let it reinstall.
 
Last edited by ,

cyndor

Well-Known Member
Member
Joined
Jul 9, 2018
Messages
120
Trophies
0
Age
32
XP
442
Country
United States
try python usb_install_pc.py nsp

It wouldn't run for me without specifying python even though I had my environment path set up correctly.
 

mmo

New Member
Newbie
Joined
Sep 11, 2018
Messages
4
Trophies
0
Age
44
XP
412
Country
United States
try to open your usb_install_pc.py by using textpad or notepad and check the codes, you might download the xml version instead of the plain python script
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: But I bet that would be more for a flashcart than a consumer repro board.