L4T Ubuntu - A fully featured linux on your switch

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by bylaws, Apr 28, 2019.

  1. Refriger8tor

    Refriger8tor GBAtemp Regular

    Member
    3
    Sep 2, 2013
    United States
    A kitchen near you.
    EDIT 2
    Snap didn't work, just threw libGL errors and then segfaulted.
     
  2. Drban789

    Drban789 GBAtemp Regular

    Member
    3
    Jun 28, 2018
    United Kingdom
    o no im actually flashing it right now lol 18gb downloaded.
    Btw what i do put in the fat 32 partition if you have already installed 1.3
     
  3. Refriger8tor

    Refriger8tor GBAtemp Regular

    Member
    3
    Sep 2, 2013
    United States
    A kitchen near you.
    If it's my image, nothing, I already have 1.3.1 included
     
  4. Drban789

    Drban789 GBAtemp Regular

    Member
    3
    Jun 28, 2018
    United Kingdom
    snap will not work. but you have a shot at flatpack. nice ive got refriger8ter's handheld porn collection hence why the img file he uploaded is 18gb. thats 10gbs of pure joy and pleasure
     
    Refriger8tor likes this.
  5. Drban789

    Drban789 GBAtemp Regular

    Member
    3
    Jun 28, 2018
    United Kingdom
    Last edited by Drban789, Jun 1, 2019
  6. MK73DS

    MK73DS Non-commutative algebra

    Member
    6
    Feb 23, 2015
    France
    France
  7. Mouser X

    Mouser X Advanced Member

    Newcomer
    5
    Aug 26, 2009
    United States
    I know this has been said in this thread before, but for those people who are trying to figure out how to resize the fat32 partition, you have to do it from outside of L4T. You can do it from another Linux machine, or from Windows using a partitioning tool that can handle Linux partitions. Or, if you don't have either of those options available, get another SD, and install L4T to that SD card. Now that you have two SD cards with L4T on them, boot with one of those SD cards (NOT the one you'll be using as your primary L4T installation, as this card is only temporary), set up your joy-cons as a mouse, and dock your Switch. Now, using a USB SD card reader, put the other SD card into the reader, and use gparted to resize the fat32 partition, and move (and resize) the ext4 partition. Now that you've resized the partitions, you can use this resized card as your primary L4T installation.

    While this method might have been obvious to some people, I figured I'd point it out for those people who want to resize their SD card, but either don't have a way to run a secondary Linux, or are unable to (for whatever reason). For me, I didn't have the bandwidth necessary to download another Linux installation (I had to download L4T elsewhere, and bring it to my home PC on an SD card), so my options were limited to running L4T, to modify L4T....

    Hopefully this is helpful to others. Now to boot off my (newly resized) SD card, and install everything....
     
  8. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    Try using the kernel from Lakka, they applied the patch that slows down the SDcard reader, that fixed the issue with SD cards on linux mainline. When I release my build, which I realized I screwed up on when I found this: https://github.com/madisongh/meta-tegra because in order to use all of the drivers, the system needs to be linked against gcc 7.x, and I was using default gentoo compiler 9.x. :( It is cool, I have the system rebuilding now, to fix this issue, but it is going to push back what I have been working on for a bit. I plan on releasing mine with a couple of different kernel builds, one of which will be patched for this, with argon-nx for choosing the kernel build you need.
     
  9. Chiveta

    Chiveta Member

    Newcomer
    2
    Mar 23, 2017
    @bylaws I have a problem I put the files in the FAT Partition, by giving it the power button it does not enter sleep mode.
     
  10. MK73DS

    MK73DS Non-commutative algebra

    Member
    6
    Feb 23, 2015
    France
    France
    I think I don't have luck or I'm dumb, but I Lakka does not boot neither for me (same black screen), and I tried two more micro SD cards. They are all Sandisk except one Lexar though, so maybe this is an incompatibility with Sandisk ?
    Do you know any brand or model which is known to work ? Thanks
     
  11. Worldblender

    Worldblender Advanced Member

    Newcomer
    2
    May 27, 2019
    United States
    I'm waiting to find out on what I should do now, based on my situation that I lack a dock. Without one, I cannot use any USB devices, and I don't want to spend much more money on an already-sinking ship (my partially broken Switch unit). I might also ask here, will 3rd-party docks work, or will only the official one work? Otherwise, I will be unable to get internet access directly on my Switch unit.
    However, I might be able to save myself if I can determine the correct kernel config options so that I can compile a kernel that will support USB OTG and not have to buy a dock. Unfortunately, because there are so many config options I can choose from, it's easy for me to get lost on which options I should choose. If I could, I want to make my kernel close to generic ones (support the full range of devices like the desktop kernels do).
    I also would like to know, how can I disable the NVIDIA splash screen from appearing so that it doesn't cause my screen to orient to portrait mode? It's become annoying to work with screens in portrait mode, and I don't know how I can put the screen back to landscape mode.
     
  12. jacopastorius

    jacopastorius GBAtemp Regular

    Member
    3
    Oct 24, 2018
    Italy
    Amazing, the modding scene has reached a very high point! But i was wondering what could actually be the practical use of ubuntu on switch
     
  13. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    L4T Ubuntu pre sets up the usb otg as a serial, rndis_ethernet, ecm ethernet and something else by default, and binds it all to the usb, so you should be able to set up internet connection sharing to the device from your pc, and get internet that way on the switch. just do not plug in the power cord before pluging it in to the computer.... Causes issues with mode switching.

    There are tons of reasons I can think of that are practical. USB device mode makes it a hacker paradise for social engineering, or even IT tasks. I have also used mine as a wifi forwarder, when it connects to networks my laptop wont connect to. it is a cheap portable computer, that is durable, and fits in your pocket. As an IT person(currently out of work), I can say that having a linux computer that fits in your pocket is an awesome feat, especially one you design for your tasks. Personally I hate android, but love linux. Sure android would be easier, but that is half the problem. That and half of the IT tools they have for android dont work, or only half work. this solves that problem, and when I am not working, I can play games on it. I also use it as a music player with kodi, where I can use the joycon as a volume knob, so it can be in my pocket, and I still have music, with a volume knob that is readily accessable(hanging from wrist.) lol. just a few, but for most people, lakka will do the trick.
     
    Last edited by Gavin_Darkglider, Jun 1, 2019
    ZeroFX and achoissoumsaco like this.
  14. jacopastorius

    jacopastorius GBAtemp Regular

    Member
    3
    Oct 24, 2018
    Italy
    Thank you for your opinion Gavin. Are there repositories for downloading and installing softwares, just as the desktop distro?
     
  15. Worldblender

    Worldblender Advanced Member

    Newcomer
    2
    May 27, 2019
    United States
    Thank you for telling me that, but I have left the USB-C cable in my desktop computer and tried connecting the other end to my Switch unit again. This time, I did get a charging indicator, but no USB device appeared on my desktop computer's side. I also found out that I can charge my Switch unit through a multiport USB hub, but the USB hub part still does not work. :(

    I'm trying to compile a kernel of my own, on version 4.9.109 (same version as from original image), with all the USB gadget drivers compiled as modules. I don't know if that will enable me to use the existing USB-C hubs I have around... I'm so new to compiling Linux kernels as I lack other people who can guide me on what to do in the real world. :sad:

    Oh dear, while compiling, I'm stuck on this error message, which I have set to ignore using the -i option:
    Code:
    make[1]: *** No rule to make target '/lib/firmware/tegra21x_xusb_firmware', needed by 'firmware/tegra21x_xusb_firmware.gen.o'.  Stop.
    Makefile:1025: recipe for target 'firmware' failed
    make: [firmware] Error 2 (ignored)
    
     
    Last edited by Worldblender, Jun 1, 2019
  16. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    Watermelonz and Worldblender like this.
  17. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23
    Nov 21, 2005
    United Kingdom
    Is it at a suitable level of stability these days that it could make a convincing replacement for a netbook or similar full fat tablet in a "if I don't have to jump on a machine then I will stick with this" type role? I have not been paying the most attention these last few dozen pages but it was still a bit rough and ready such that I would have a hard time plumping for it for that sort of thing, even if I assumed java, activex and flash web portals were nothing ever seen in the wild any more.
     
  18. crow132

    crow132 GBAtemp Regular

    Member
    5
    Jan 19, 2016
    Saint Helena
    hey @bylaws i have the mentioned issue, my switch turns on and logs off

    should i upload and share the logs here? is that what you mean in your post?
     
  19. seanp2500

    seanp2500 GBAtemp Advanced Fan

    Member
    6
    Jun 2, 2010
    United States
    Wait so is usb otg a thing now? Last time i tried hooking up an adapter in portable mode i had no luck. This is my main need can this be done now?
     
  20. ZeroFX

    ZeroFX Eh. What?

    Member
    4
    Jun 18, 2018
    Japan
    Some place in
    YOU are THE MVP, i usually dont have the patience to explain to people why having linux on switch is like the apex of "console freedom". Its different than PS4's linux distros, although it is very cool either.

    Im stalking this thread for some time now and you seem to like helping a lot, thats great :D.
     
Quick Reply
Draft saved Draft deleted
Loading...