RELEASE NS-USBloader - another one Tinfoil and GoldLead USB installer

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by developer_su, Mar 11, 2019.

  1. pohaxsf

    pohaxsf GBAtemp Regular

    Member
    3
    Jan 7, 2019
    Greece
    I prefer yours
     
    developer_su likes this.
  2. developer_su
    OP

    developer_su Developer

    pip Developer
    4
    Feb 18, 2019
    Russia
    Looking on v0.3/v0.3.1 now..
    "Don't serve requests" option is broken because of stupid mistake, NET-install is slow as hell and it could be faster for sure.

    If you use it, I'm sorry for quality.

    Will fix (or try to fix) it once have time.
     
    Dragonx41 and hippy dave like this.
  3. developer_su
    OP

    developer_su Developer

    pip Developer
    4
    Feb 18, 2019
    Russia
    Fixed @ v0.3.2 release :toot:
     
    Dragonx41, xbx_ua and hippy dave like this.
  4. developer_su
    OP

    developer_su Developer

    pip Developer
    4
    Feb 18, 2019
    Russia
    GoldLeaf v0.5 support added in NS-USBloader-v0.4.

    EDIT: Re-uploaded to releases on GitHub: including fix for incorrectly working 'Auto-check for updates' function.
     
    Last edited by developer_su, Mar 28, 2019
  5. MUDD_BR

    MUDD_BR GBAtemp Advanced Fan

    Member
    6
    Nov 17, 2008
    Brazil
    Trying for hours to install NSPs using another other tools and methods... and this worked 1st time like a charm!!! Thank you very much!!!!
     
    almmiron, puked, hippy dave and 2 others like this.
  6. NoIdeaofAnything

    NoIdeaofAnything Member

    Newcomer
    2
    Nov 13, 2018
    Austria
    Thank´s for this!
    Really works great. Especially compared to other Uploaders.
     
    developer_su likes this.
  7. Jiro2

    Jiro2 GBAtemp Advanced Fan

    Member
    4
    Mar 28, 2011
    United States
    I am having trouble getting it to work (on Linux, over USB, with Goldleaf). Version is 0.4, using Goldleaf 0.5 on the Switch.

    The log is as follows:

    Code:
    Files to upload:
      /home/------/iso/switch/Syberia.1.and.2.RF.XCI.[switchiso.org]/Syberia 1 and 2 [01004bb00421e800][30000][UPD].nsp
    [ INFO ]    Start chain
    [ PASS ] libusb initialization
    [ PASS ] Get device list
    [ PASS ] Read file descriptors for USB devices
    [ PASS ] NS in connected USB devices found
    [ PASS ] Open NS USB device
    [ INFO ] Free device list
    [ WARN ] libusb doesn't support function 'CAP_SUPPORTS_DETACH_KERNEL_DRIVER'. It's normal. Proceeding.
    [ PASS ] Set active configuration to device.
    [ PASS ] Claim interface
    [ INFO ] ===========================================================================
    [ INFO ] PFS Start NSP file analyze for [Syberia 1 and 2 [01004bb00421e800][30000][UPD].nsp]
    [ PASS ] PFS Read file starting bytes.
    [ PASS ] PFS Read 'PFS0'.
    [ PASS ] PFS Read files count [6]
    [ PASS ] PFS Read header [381]
    [ PASS ] PFS Read NCA inside NSP: 0
    [ PASS ]   Padding check
    [ PASS ]   NCA offset check: 0
    [ PASS ]   NCA size check: 248806912
    [ PASS ]   NCA name offset check: 153
    [ PASS ] PFS Read NCA inside NSP: 1
    [ PASS ]   Padding check
    [ PASS ]   NCA offset check: 248806912
    [ PASS ]   NCA size check: 794112
    [ PASS ]   NCA name offset check: 190
    [ PASS ] PFS Read NCA inside NSP: 2
    [ PASS ]   Padding check
    [ PASS ]   NCA offset check: 249601024
    [ PASS ]   NCA size check: 111104
    [ PASS ]   NCA name offset check: 227
    [ PASS ] PFS Read NCA inside NSP: 3
    [ PASS ]   Padding check
    [ PASS ]   NCA offset check: 249712128
    [ PASS ]   NCA size check: 5120
    [ PASS ]   NCA name offset check: 264
    [ PASS ] PFS Read NCA inside NSP: 4
    [ PASS ]   Padding check
    [ PASS ]   NCA offset check: 249717248
    [ PASS ]   NCA size check: 704
    [ PASS ]   NCA name offset check: 306
    [ PASS ] PFS Read NCA inside NSP: 5
    [ PASS ]   Padding check
    [ PASS ]   NCA offset check: 249717952
    [ PASS ]   NCA size check: 1792
    [ PASS ]   NCA name offset check: 343
    [ PASS ] PFS Final padding check
    [ INFO ] PFS Collecting file names
    [ PASS ] PFS Finish NSP file analyze for [Syberia 1 and 2 [01004bb00421e800][30000][UPD].nsp]
    [ PASS ] GL File structure validated and it will be uploaded
    [ PASS ] GL Initiating GoldLeaf connection: 1/2
    [ PASS ] GL Initiating GoldLeaf connection: 2/2
    [ INFO ] GL 'ConnectionResponse' command:
    [ PASS ]   [1/4]
    [ PASS ]   [2/4]
    [ PASS ]   [3/4]
    [ PASS ]   [4/4]
    [ INFO ] GL Handle 'Start' command:
    [ PASS ]   [Send command prepare]
    [ PASS ]   [Send command]
    [ PASS ]   [Send length]
    [ INFO ]   [Send information for 6 files]
    [ PASS ]     [1/4] File #0
    [ PASS ]     [2/4] File #0
    [ PASS ]     [3/4] File #0
    [ PASS ]     [4/4] File #0
    [ PASS ]     [1/4] File #1
    [ PASS ]     [2/4] File #1
    [ PASS ]     [3/4] File #1
    [ PASS ]     [4/4] File #1
    [ PASS ]     [1/4] File #2
    [ PASS ]     [2/4] File #2
    [ PASS ]     [3/4] File #2
    [ PASS ]     [4/4] File #2
    [ PASS ]     [1/4] File #3
    [ PASS ]     [2/4] File #3
    [ PASS ]     [3/4] File #3
    [ PASS ]     [4/4] File #3
    [ PASS ]     [1/4] File #4
    [ PASS ]     [2/4] File #4
    [ PASS ]     [3/4] File #4
    [ PASS ]     [4/4] File #4
    [ PASS ]     [1/4] File #5
    [ PASS ]     [2/4] File #5
    [ PASS ]     [3/4] File #5
    [ PASS ]     [4/4] File #5
    [ INFO ] GL Handle 'Content' command
    [ PASS ]   [Read requested ID = 3 ]
    System logs in Linux show me this:
    Code:
    Apr 20 03:04:18 linux.local kernel: usb 1-5: new high-speed USB device number 5 using ehci-pci
    Apr 20 03:04:20 linux.local kernel: usb 4-2: new full-speed USB device number 3 using ohci-pci
    Apr 20 03:04:21 linux.local kernel: usb 4-2: New USB device found, idVendor=057e, idProduct=3000
    Apr 20 03:04:21 linux.local kernel: usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    Apr 20 03:04:21 linux.local kernel: usb 4-2: Product: NintendoSdkDebugger
    Apr 20 03:04:21 linux.local kernel: usb 4-2: Manufacturer: Nintendo
    Apr 20 03:04:21 linux.local kernel: usb 4-2: SerialNumber: Serial Number
    
    and it hangs with a moving red, white, and blue line on the ns-usbloader window but no actual progress bar.

    On the Switch, Goldleaf just tells me "Processing application records..."

    At some point it stops with this in the log (right after the Read requested):
    Code:
    [ FAIL ] Data transfer (write) issue
      Returned: ERROR_NO_DEVICE
    [ FAIL ] Execution stopped
    [ WARN ] Release interface
      Returned: -4 (sometimes it's not an issue)
    [ INFO ] Requested handler close
    [ INFO ] Requested context close
    [ INFO ]    End chain
    

    The filename does not contain special characters (I renamed it to remove a &, no difference).
     
    Last edited by Jiro2, Apr 20, 2019
  8. developer_su
    OP

    developer_su Developer

    pip Developer
    4
    Feb 18, 2019
    Russia
    What about another NSP files?
    I mean, did you tried to upload different NSPs? Was it successful or not?
     
  9. Jiro2

    Jiro2 GBAtemp Advanced Fan

    Member
    4
    Mar 28, 2011
    United States
    I tried two different nsp files (the main one and the update one for this game). Neither worked.

    When I copied them over to the Switch an directly installed them (they are small enough to fit in fat32), they installed and ran successfully.
     
  10. xFlesk

    xFlesk Member

    Newcomer
    4
    Jun 11, 2018
    Netherlands
    great app, works like a charm with goldleaf 0.5. but i have no idea how to use it with tinfoil 1.55. does it even supports lates tinfoil or its made for old one ?
    cheers
     
    developer_su likes this.
  11. hippy dave

    hippy dave BBMB

    Member
    15
    Apr 30, 2012
    United Kingdom
    Old one.
     
    developer_su likes this.
  12. developer_su
    OP

    developer_su Developer

    pip Developer
    4
    Feb 18, 2019
    Russia
    No idea how to help you. It looks like in one moment switch goes to sleep mode or GoldLeaf stops listening for connections. In dmesg you'll see it as switch connected twice (disconnected/connected again).
    IMHO it's something wrong with NSP or GL or USB cable (or even firmware if it has been ever updated to 7.0.1).
     
  13. linuxares

    linuxares I'm not a generous god!

    Moderator
    17
    Aug 5, 2007
    Sweden
    Just wish to add that it always show a "Upgrade" is available even tho there isn't one.
     
  14. Jiro2

    Jiro2 GBAtemp Advanced Fan

    Member
    4
    Mar 28, 2011
    United States
    It did seem to be going into sleep mode when I finally got the FAIL, but it never showed any signs that it was transferring anything before that happened. It just stayed on "[Read requested ID = 3 ]" and "Processing application records..."

    The cable works fine for other purposes. The system was on at 4.1 at that point and had never been upgraded.
     
  15. developer_su
    OP

    developer_su Developer

    pip Developer
    4
    Feb 18, 2019
    Russia
    Please download v0.4 again (?). It's fixed in there.

    — Posts automatically merged - Please don't double post! —

    Ok. To be honest I don't have enough time to investigate this and I don't know when I'll have it. And I'm almost sure that I can't do anything with this issue.
    If you want, you can bring up, for example Win 7 in VirtualBox, forward usb device inside VM, install Goldtree and check if it works (using same NSP files). I think you'll see the same issue on the same step.
    Thanks!
     
  16. bcoleman

    bcoleman Member

    Newcomer
    1
    Apr 12, 2019
    United States
    I'm running Reinx 2.1, Goldleaf 0.5 and firmware 7.1. This tool works great, only problem I had was trying to install a split NSP. When I load the NSP, it shows up as a few KB. Basically it's only the folder. Since then I've recombined the NSPs and they install fine but maybe add support for split NSP?

    Other than that, my NSPs install fine as long as the Switch doesn't go to sleep. The one time it did, the game showed up on my home screen and it said "this software cannot be started". So maybe have it pause when the switch sleeps (and pick back up when you wake it up). Thanks for the app!
     
    developer_su likes this.
  17. developer_su
    OP

    developer_su Developer

    pip Developer
    4
    Feb 18, 2019
    Russia
    What is it? :) Never heard about it.
    Can't do it on my side (and not sure that someone could fix it). Actually the installation process is next:
    1. My app transfers files (files inside NSP-file-container) requested by GL or TF
    2. TF or GL extract receiving data immediately to the location where they should be stored. That's why for example we could use FAT32. Interrupting this process is a bad idea, in other hand tracking data consistency in case it's interrupted (because of sleep mode) is also not trivial (and could not cover every type of failure).

    If your software couldn't be started you have to remove and re-install it. If it won't helps, then something wrong with NSP (most likely).
    (But I guess you know that already.)
    Thanks!
     
    bcoleman likes this.
  18. bcoleman

    bcoleman Member

    Newcomer
    1
    Apr 12, 2019
    United States
    Yes, I deleted the game, reinstalled it and it worked fine.

    When I use to install NSPs through the SD card method in tinfoil, if the switch went to sleep the download would pause, but it picked back up as soon as I woke it up. Don’t know if it’s possible with USB though.

    A split NSP is an NSP over 4.29gb. When I used the SD card method on Fat32, I had to use a tool called “NSP Divider” so that I could drag the game to the SD card. The NSP divider splits the games into 4gb segments named “00”, “01”, “02” etc. and these files are placed in a folder that ends with “.nsp”. With this method, tinfoil and goldleaf allows you to drag the .nsp folder containing the pieces and install the folder as if it’s a complete NSP.

    It’s not too important to add compatibility for it because people using USB Installation have no need to split those NSPs but coming from the SD method mine were already split. Just something to think about. I think the “fluffy” usb installer is adding compatibility for it from what I hear.
     
  19. developer_su
    OP

    developer_su Developer

    pip Developer
    4
    Feb 18, 2019
    Russia
    I'll think about it. No guarantees, but thanks for the note.
     
    almmiron and TerpToke like this.
  20. TerpToke

    TerpToke GBAtemp Regular

    Member
    4
    Sep 17, 2018
    United States
    Ohigho
    Quoted as "just another usb installer". Yet my friend this has been the only one to work for me. Thank you so much! Even games that would previously give me corrupted errors are working flawlessly using this. Also perfect solution for fat32. Great work!

    Edit:Had to come back to express how this has made all complications I've had with installing NSPs completely disappear. Couldn't imagine not having this now. Again thanks so much.
     
    Last edited by TerpToke, Apr 28, 2019
    developer_su and hippy dave like this.
Quick Reply
Draft saved Draft deleted
Loading...