L4T Ubuntu - A fully featured linux on your switch

switchroot.png

L4T Ubuntu
Intro
L4T Ubuntu is a version of Linux based on nvidia's linux for tegra project. It uses a different kernel compared to previous releases which allows it to use features not yet in mainline. Such as audio, docking support and vulkan.

Join our discord: https://discord.gg/53mtKYt

We have a wiki !
To facilitate our work we will only update our wiki from now on in order to avoid multiple outdated references, please refer to the following link instead of this page

https://wiki.switchroot.org/en/Linux/Ubuntu-Install-Guide

Credits

Bylaws,
Langerhans,
Ave,
Natinusala,
CTCaer(most of the hard stuff),
Gavin_Darkglider,
DanielOgorchock(Joycon drivers/joycond),
stary2001 (reboot2payload),
NVIDIA,
Azkali
Everyone else in switchroot - more info on that in the future.
 
Last edited by azkali,

Drban789

Well-Known Member
Member
Joined
Jun 28, 2018
Messages
105
Trophies
0
XP
381
Country
United Kingdom
How did you install RA? I was thinking of compiling later and also wanted to try with flatpack or snap. I know flatpack and or snap may not work but figured why not at least try. Think i saw someone say they had success using snap for other packages. I mean, if you have an image you want to share that has no personal info or a vanillia pre-configured image sure, i have plenty of cards laying around. But dont post anything up that has any of your info and thank you for the offer. :D

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
 
  • Like
Reactions: Refriger8tor

MK73DS

Non-commutative algebra
Member
Joined
Feb 23, 2015
Messages
575
Trophies
0
Age
25
Location
France
Website
www.youtube.com
XP
1,536
Country
France

Mouser X

Well-Known Member
Member
Joined
Aug 26, 2009
Messages
101
Trophies
0
XP
546
Country
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....
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
I'm not able to boot into L4T. I'm always stuck on a black screen.
I tried different SD cards ( This one and that one, which is older (and also 16GB but I couldn't find it anymore on Amazon) )

I also tried different ways to write the image : dd from Linux, etcher and Rufus from Windows. I applied each time the latest update.

Is there any SD card which is 100% sure it will work ? Thanks

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.
 

MK73DS

Non-commutative algebra
Member
Joined
Feb 23, 2015
Messages
575
Trophies
0
Age
25
Location
France
Website
www.youtube.com
XP
1,536
Country
France
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.

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
 

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,243
Country
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.
 

jacopastorius

Well-Known Member
Member
Joined
Oct 24, 2018
Messages
164
Trophies
0
Age
44
XP
316
Country
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
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
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.

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.

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
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,

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,243
Country
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.

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,

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
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.

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.
 
D

Deleted User

Guest
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?
 

ZeroFX

why?
Member
Joined
Jun 18, 2018
Messages
1,104
Trophies
1
Location
napaJ
XP
2,985
Country
Japan
There are tons of reasons I can think of that are practical...
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: i only ate normal cotton candy