1. natinusala

    OP natinusala Win32 error 31 is not an error
    Member

    Joined:
    Dec 1, 2012
    Messages:
    1,032
    Country:
    France
    THIS GUIDE IS DEPRECATED
    THIS IS BETTER https://github.com/natinusala/painless-linux


    This guide will show you how to boot Linux on your Switch from a Windows PC. If you're on Linux, you can directly use the shofel2_linux repository.

    Credits :
    • @kombos for the pre-built binaries
    • @rajkosto for TegraRcmSmash and Windows imx_usb binaries
    • Fail0verflow for their Linux port
    What you'll need :
    • A Switch
    • A Windows PC
    • Another SD card of at least 8Gb
      • you can use the same SD card that you already have on your Switch but be careful when partitioning !
    • A USB A-to-C or C-to-C cable to plug your Switch into your PC
    Step 1 : installing the driver
    1. Get your Switch in RCM mode and plug it into your PC
      • It should appear as "APX" in Windows
    2. Download and run the Zadig Driver Installer from here : https://zadig.akeo.ie/
    3. In the list, choose the device "APX"
      • If it's not showing up, check "List all devices" in the options
    4. At the right end of the green arrow, choose "libusbK (v3.0.7.0)"
    5. Click on the big "Install driver" button
    Step 2 : creating the root filesystem

    Yes, this is still necessary. Yes, this will always be.

    Open my another guide and follow the "Building the rootfs" section.
    On Windows you'll have to use a IMG file and burn it with Etcher, or find a way to create an ext4 partition by hand (good luck with that).
    I recommend the latest LXDE image which has the correct format for Etcher - it's a zip containing a bin, flash the .bin using Etcher.

    You should be left with a SD card with two partitions on it.

    Step 3 : a whole bunch of downloads
    1. Download and extract this : https://github.com/SoulCipher/shofel2_linux/archive/master.zip
    2. Download this : https://files.sshnuke.net/TegraRcmSmash1101.zip
    3. Extract the executable for your architecture in the shofel2_linux-master folder
    4. Download this : https://github.com/rajkosto/imx_usb_loader/releases/download/08daaa/imx_usb.zip
    5. Extract the executable and DLL in the shofel2_linux-master folder
    6. Download this : http://launchmycraft.fr/boot_linux.bat
    7. Put it in the shofel2_linux-master folder
    This is what you should have in the linux_shofel2-master folder before continuing :
    [​IMG]

    Step 4 : actually booting Linux
    1. Put your Switch in RCM mode and plug it in your PC
    2. Go in the shofel2_linux-master folder and open boot_linux.bat
    3. It wasn't that hard, wasn't it ?
     
    Last edited by natinusala, May 6, 2018
  2. WiiHomebrew+Snes

    WiiHomebrew+Snes GBAtemp Fan
    Member

    Joined:
    May 4, 2016
    Messages:
    451
    Country:
    United States
    Woop!
     
  3. Sonicbrawler

    Sonicbrawler GBAtemp Regular
    Member

    Joined:
    Sep 7, 2015
    Messages:
    205
    Country:
    United States
    Radical
     
    natinusala likes this.
  4. natinusala

    OP natinusala Win32 error 31 is not an error
    Member

    Joined:
    Dec 1, 2012
    Messages:
    1,032
    Country:
    France
    Again, in this guide I don't detail the rootfs process but it can be long / painful on Windows.
     
  5. Sonicbrawler

    Sonicbrawler GBAtemp Regular
    Member

    Joined:
    Sep 7, 2015
    Messages:
    205
    Country:
    United States
    RootFS isn't too bad. gonna use this guide for a tutorial video down the road.
     
  6. TheGreek Boy

    TheGreek Boy GBAtemp Maniac
    Member

    Joined:
    Jan 9, 2016
    Messages:
    1,227
    Country:
    Greece
    can i use usb 2.0 ? my pc only have usb 2.0.
     
  7. natinusala

    OP natinusala Win32 error 31 is not an error
    Member

    Joined:
    Dec 1, 2012
    Messages:
    1,032
    Country:
    France
    I guess so, TegraRcmSmash doesn't specify which ports to use
     
  8. yusuo

    yusuo GBAtemp Psycho!
    Member

    Joined:
    Oct 19, 2006
    Messages:
    3,284
    Country:
    United States
    This seems really painless. Thank you for your work
     
    ShonenJump and natinusala like this.
  9. mariogamer

    mariogamer GBAtemp Maniac
    Member

    Joined:
    Aug 12, 2015
    Messages:
    1,258
    Country:
    Canada
    I always receive error 31 while trying to boot linux with tegrarcmsmash (manually or not) (but not when normally dragging and dropping). Apparently it is a driver issue but I already installed it.
     
    Last edited by mariogamer, May 4, 2018
  10. natinusala

    OP natinusala Win32 error 31 is not an error
    Member

    Joined:
    Dec 1, 2012
    Messages:
    1,032
    Country:
    France
    @mariogamer what is error 31 ? could you give me the full logs please ?
     
  11. mariogamer

    mariogamer GBAtemp Maniac
    Member

    Joined:
    Aug 12, 2015
    Messages:
    1,258
    Country:
    Canada
    Well apparently that was temporary sorry :P
     
    natinusala likes this.
  12. The Frenchman

    The Frenchman GBAtemp Advanced Fan
    Member

    Joined:
    Apr 13, 2008
    Messages:
    651
    Country:
    Canada
    How would one put the Switch in RCM mode? I thought the shorting of pin 7/10 was for that...
     
    Last edited by The Frenchman, May 4, 2018
  13. natinusala

    OP natinusala Win32 error 31 is not an error
    Member

    Joined:
    Dec 1, 2012
    Messages:
    1,032
    Country:
    France
    There are a lot of guides out there, I personally have a jig I bought from @cherryduck but I previously used a wire from the pin 10 to the heatsink.
     
    cherryduck likes this.
  14. The Frenchman

    The Frenchman GBAtemp Advanced Fan
    Member

    Joined:
    Apr 13, 2008
    Messages:
    651
    Country:
    Canada
    So in the title the "Nothing to build" part means buy your jig... I guess that's legit.
     
    nmkd and natinusala like this.
  15. mariogamer

    mariogamer GBAtemp Maniac
    Member

    Joined:
    Aug 12, 2015
    Messages:
    1,258
    Country:
    Canada
    Or just use a paperclip.
     
    SaffronXL likes this.
  16. natinusala

    OP natinusala Win32 error 31 is not an error
    Member

    Joined:
    Dec 1, 2012
    Messages:
    1,032
    Country:
    France
    Nothing to build means nothing to compile, I'll fix this apparently it's not clear

    edit : can't rename my post, great
     
    Last edited by natinusala, May 4, 2018
  17. ScarletDreamz

    ScarletDreamz [Debug Mode]
    Member

    Joined:
    Feb 16, 2015
    Messages:
    3,876
    Country:
    United States
    Nothing to build, obviously means no need to use the "Make" command.

    Common Sense.
     
  18. natinusala

    OP natinusala Win32 error 31 is not an error
    Member

    Joined:
    Dec 1, 2012
    Messages:
    1,032
    Country:
    France
    Not for Windows users, for which this guide is made ;)
     
  19. ScarletDreamz

    ScarletDreamz [Debug Mode]
    Member

    Joined:
    Feb 16, 2015
    Messages:
    3,876
    Country:
    United States
    As a windows user common user, "make" its also used on several areas.
     
  20. kevandkkim

    kevandkkim Advanced Member
    Newcomer

    Joined:
    Nov 22, 2016
    Messages:
    63
    Country:
    United States
    Which KDE has the correct format for Etcher. the rootfs.tar.bz is not a supported format and neither is the extracted tar?
     
    SaffronXL likes this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - downloads, Booting, Windows