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,

Deathscreton

Well-Known Member
Member
Joined
Oct 1, 2009
Messages
826
Trophies
0
XP
1,092
Country
United States
@bylaws Is there anyway you could release an update that enables bridge configuration? This build does not allow bridging connections and it's missing the module file. Means I can't use the BBA for Dolphin otherwise.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
You can build the kernel yourself, I made a nice script, that will download, and assemble all of the required repositories needed, and basic instructions on how to use the script, and make the make the kernel in the issue posted about how they couldnt build the kernel, on switchroots gitlab. it is a basic script, but it gets the job done. You will also need a linux computer, and a ARM64 crosscompiler. Linaro's prebuilt one will work nicely.
 
  • Like
Reactions: ZachyCatGames

Deathscreton

Well-Known Member
Member
Joined
Oct 1, 2009
Messages
826
Trophies
0
XP
1,092
Country
United States
You can build the kernel yourself, I made a nice script, that will download, and assemble all of the required repositories needed, and basic instructions on how to use the script, and make the make the kernel in the issue posted about how they couldnt build the kernel, on switchroots gitlab. it is a basic script, but it gets the job done. You will also need a linux computer, and a ARM64 crosscompiler. Linaro's prebuilt one will work nicely.
I've got a VM, all I need is the crosscompiler. I would love that script! It would be much appreciated.
do you also know how to fix this bridging issue/how long the rebuild would take?
 

Refriger8tor

Well-Known Member
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
Did anyone manage to get any sound output in docked mode via hdmi at all?
Tbh I didn't try the original dock yet but with 3rd party usb c hubs I cannot get hdmi sound output.
It's hooked up to my Onkyo av receiver. Strange thing is in sound settings choosing hdmi 5.1 output and trying to play test signals, I get the "klicking sound" from my avr and it also shows that the switch wants to put out 5.1 sound but no sound comes :(

Btw, I tested another usb c hub, StarPlayer 6 in 1 type c hub (black hub with LREGO print on it) which also works perfectly. This will be my new hub since it has 3x USB 3.0 ports (on one side, with enough space between them to also plug in broader dongles) + the usual type c port for power, hdmi port and gigabit ethernet port, all works under ubuntu and ofw.
Sound over hdmi works on the official dock.
 

Liv2MsTrb8T

Well-Known Member
Newcomer
Joined
Aug 18, 2009
Messages
68
Trophies
0
Location
Columbus Ohio
Website
grevsev.artstation.com
XP
344
Country
United States
Now that I'm back from work, I have to ask what Swap is exactly, as I've never heard of it (I get the idea, I just never knew of it being necessary).


Its Storage dedicated for ram like tasks. It should be where processes go to free up actual ram until they're called upon again.

Feels like You can't go without it on the Switch its the only thing standing between you and stability.
 

zarkon

Member
Newcomer
Joined
Dec 16, 2018
Messages
14
Trophies
0
Age
38
XP
338
Country
Italy
hi

I installed 1.0, without booting I overwrite 1.1 and deleted boot loader folder and booster to install 1.2, updated and upgraded from terminal, rebooted and everything works except squashfs, I can't install retroarch from the store, what can I do?

thanks.

Inviato dal mio SM-N9600 utilizzando Tapatalk
 

Silent_Gunner

Crazy Cool Cyclops
Banned
Joined
Feb 16, 2017
Messages
2,696
Trophies
0
Age
29
XP
4,727
Country
United States

Its Storage dedicated for ram like tasks. It should be where processes go to free up actual ram until they're called upon again.

Feels like You can't go without it on the Switch its the only thing standing between you and stability.

I'll look into it. Still, I did update RA with the latest revision, and there's still no cores listed for some reason, and I doubt that I can just paste the .dll files from my Windows RA installation and have it work that way. Regardless of what I do, no RA means nothing's happening on me trying out this new homebrew solution for the Switch the way it was meant to be. I know standalones exist for Ubuntu, but I can only imagine the many hoops I'd have to jump through doing that considering how each individual emulator is set up.
 
Last edited by Silent_Gunner,

_sveiki

New Member
Newbie
Joined
Jul 30, 2018
Messages
3
Trophies
0
XP
70
Country
United Kingdom
Is there any way to reduce the touch screen's sensitivity?

Typing commands on the terminal is currently a challenge because of this
 
  • Like
Reactions: zarkon

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,282
Country
United Kingdom
Is there any way to reduce the touch screen's sensitivity?

Typing commands on the terminal is currently a challenge because of this

Just in case you were otherwise unfamiliar then pressing tab autocompletes a lot of things for linux command prompt, and it is actually worth a damn unlike windows a lot of the time. Wildcards are also quite useful. Up and down cycle through command line history. That can sort a lot of things terminal wise.

As for turning down "is touch detected" then no idea what goes for this setup. Does dragging along the screen and lifting back up make things easier for this one?
 

2Siralv

Well-Known Member
Member
Joined
May 12, 2018
Messages
103
Trophies
0
Age
28
XP
531
Country
Canada
I had alot of problems i got it to boot woth the stock img then added v1 n then loaded it up n did a apt get and then i added the 1.2 n it worked but then when i got into it and make a swapfile i still have the 500mb partition with the l4t and another partion thats not formated but only can be 7gb its a 128gb sd how do i utilize the full capacoty
 

RiceAlex

Member
Newcomer
Joined
May 6, 2019
Messages
17
Trophies
0
Age
26
XP
90
Country
China
Can you post how you got it to run?
Since English is not my native language, I firstly wrote down the Tutorial in Chinese,on Zhihu 知乎.
If I have time I will translated it to English ,this weekend Perhaps, also I'm inspired by A tutorial which written in English by
roger allen named Minecraft On Jetson Tk1,you can Google it. My gbatemp level is too low I can't post link here directly.
If you wanna read my Chinese version Totrial,search this on Zhihu,
How to play Minecraft Java Edition on Nintendo Switch

the first article should be mine.

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

Can you post how you got it to run?
And new progress I ve made is that after putting libjinput.so in Java library,the JoyPad Mod works,but it can not access /dev/input and read my controllers.
If I edit the properties of /dev/input ,it will cause very serious problem ---- I will not be able to access Unity Desktop anymore,after reboot I input password and login,the Unity Crashes and backs to
login interface.
 

nicoboss

Well-Known Member
Member
Joined
Feb 1, 2019
Messages
132
Trophies
0
Age
26
XP
1,194
Country
Switzerland
You can build the kernel yourself, I made a nice script, that will download, and assemble all of the required repositories needed, and basic instructions on how to use the script, and make the make the kernel in the issue posted about how they couldnt build the kernel, on switchroots gitlab. it is a basic script, but it gets the job done. You will also need a linux computer, and a ARM64 crosscompiler. Linaro's prebuilt one will work nicely.
I'm also extremely interested in having your script because it will finally allow me to compile the kernel with proper SquashFS support required by Anbox to mount the Android RomFS. I'm currently trying to build the kernel with the script used by Lakka-LibreELEC but without much success so far.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
https://gitlab.com/switchroot/switc...31b56145d48f7f354b75fb6a4/l4t_kernel_prep.txt

You can get my script for putting the required files to build at that link.
1. Rename the l4t_kernel_prep.txt l4t_kernel_prep.sh
2. type: into terminal: chmod +x l4t_kernel_prep.sh
3. type: ./l4t_kernel_prep.sh <Compiler String> eg. aarch64-linux-gnu-
4. type: cd kernel/kernel-4.9
5. To configure type: ARCH=arm64 CROSS_COMPILE=<Compiler String, same as above> make menuconfig
6. To build type: ARCH=arm64 CROSS_COMPILE=<Compiler String, same as above> make -j<number of cpu cores +1> tegra-dtstree="../hardware/nvidia/"

From there, the kernel, device tree, and modules will be built, but you still need to replace the kernel Image and dts file that comes with L4T Ubuntu with the one you just built, and patch the new modules into initramfs, and possibly install them in the root image as well. I havnt had much success getting my build to boot past the backlight, but I havnt had much time to mess with it.
 

Refriger8tor

Well-Known Member
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
other game native from linux?

The Switch has a type of CPU called ARM64 more similar to the one in your phone than in a desktop or laptop. Because of that many programs aren't designed with it in mind or the ability to run. I believe that there is a way to run such programs regardless but with a big hit to performance, speed, etc.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
@bylaws Is there anyway you could release an update that enables bridge configuration? This build does not allow bridging connections and it's missing the module file. Means I can't use the BBA for Dolphin otherwise.

The Switch has a type of CPU called ARM64 more similar to the one in your phone than in a desktop or laptop. Because of that many programs aren't designed with it in mind or the ability to run. I believe that there is a way to run such programs regardless but with a big hit to performance, speed, etc.

Steam is pre compiled, so unless there is an arm64 version of steam, chances are it wont work. I do know that Return to Castle Wolfenstein, Quake, Quake 2, Quake 3 Arena/Team Arena, and Doom3 all work, as well as the older id games, but their engines have been ported to everything at some point. None of them support joysticks natively though, so you need an actual keyboard and mouse to play them. I am sure that there are many more games in the linux game library that would also work. It would be cool to get Unreal Tournament to work, but that was never open source, so it only works on old versions of linux now. :(
 

zarkon

Member
Newcomer
Joined
Dec 16, 2018
Messages
14
Trophies
0
Age
38
XP
338
Country
Italy
the is a way to fully enable squashfs, or what is the way to install retroarch other than software store ?

Inviato dal mio SM-N9600 utilizzando Tapatalk
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: Good night