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,

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Just compared. L4T boots for me up in 30sec until a usable grapical screen, and in that state 814MB are consumed:
Code:
chris@switch:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:           3483         841        2213          11         429        2372
Swap:             0           0           0
chris@switch:~$
My Fedora30 build with LXDE takes 43sec to load, and after that 512MB are consumed:
Code:
[root@switch ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           3483         512        2270           6         701        2692
Swap:             0           0           0
[root@switch ~]#
My build is not nicely available as image though, one has to follow bootstrap instructions. Also some 3D for example supertuxkart does not start, L4T is probably more compatible. This shows though the potential, is someone is after 300MB, then playing with smaller window managers on L4T might make sense.

If supertuxkart doesnt work, your GL stack is wrong. Lakka did it wrong as well, since they stubbed out mesa and used symbolic links over the mesa files, when in reality, it needs GLVND, and a version of mesa that supports it. Once you get that set up properly, you will have working supertuxkart, at least with gles. GL does work the way lakka set it up, but it is still wrong.
Do you use the addon Inside kodi?
yes.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Work on L4t Gentoo has stalled because of my work schedule, and time constraints. I am looking to start collaborating with @bell07 who is looking to achieve the same goal, and has server space to host a proper repository, which is one of the main reasons why I havnt released what I have, as portage will break things the moment you update the tree right now. I cant fix that without a real repository, which I have no where to host.
 

gbazone

Well-Known Member
Member
Joined
Jun 6, 2014
Messages
212
Trophies
0
XP
713
Country
I just used Etcher to write the image, but on OSX I don't see any partitions I can mount. Just the two Linux ones. Any idea? Shouldn't there be a FAT partition for payload? Am I supposed to be doing this in Linux? I have a laptop with Ubuntu somewhere.
 
Last edited by gbazone,

globalc

Member
Newcomer
Joined
Jun 14, 2019
Messages
21
Trophies
0
Age
49
Website
fluxcoil.net
XP
116
Country
Japan
I just used Etcher to write the image, but on OSX I don't see any partitions I can mount. Just the two Linux ones. Any idea? Shouldn't there be a FAT partition for payload? Am I supposed to be doing this in Linux? I have a laptop with Ubuntu somewhere.
Yes, for installing the updates you should mount the first of the 2 partitions.
If installing the updates causes you much pain, you might want to try to get the system up in the initial state without updates, and later from the running L4T install the updates - it can access both partitions.
Not sure if MacOS is supposed to see and access the partitions, but an Ubuntu should definitely. There might also be usb- or dvd images where you can boot the Mac directly without installation, and then access the partition.
 
  • Like
Reactions: gbazone

Qubarf

Well-Known Member
Member
Joined
Dec 14, 2018
Messages
239
Trophies
0
Age
33
XP
967
Country
Pakistan
Congratulations, it seams Langer Hans from Switch root has managed to successfully lp0! This a major step a working deep sleep for both linux and the up-coming android!!!

Code:
bash-4.3# echo mem > /sys/power/state
INFO:    Entering lp0. Good night...
INFO:    Left lp0. Good morning!
INFO:    Tegra Memory Controller (v1)
INFO:    Configuring TrustZone DRAM Memory Carveout
INFO:    Configuring TrustZone DRAM Memory Carveout
[   19.507660] tegra-i2c 7000d000.i2c: ISR called even though no transfer

/* snip kernel log */

src: https://twitter.com/switchroot_org
 

gbazone

Well-Known Member
Member
Joined
Jun 6, 2014
Messages
212
Trophies
0
XP
713
Country
Yes, for installing the updates you should mount the first of the 2 partitions.
If installing the updates causes you much pain, you might want to try to get the system up in the initial state without updates, and later from the running L4T install the updates - it can access both partitions.
Not sure if MacOS is supposed to see and access the partitions, but an Ubuntu should definitely. There might also be usb- or dvd images where you can boot the Mac directly without installation, and then access the partition.

Thank you. I have another question... So is the Linux launcher in the Hekate payload? Because usually you have to put a .ini in a folder in the root of the SD card for it to read them. Like Kosmos for instance.
 

gbazone

Well-Known Member
Member
Joined
Jun 6, 2014
Messages
212
Trophies
0
XP
713
Country
Feeling quite foolish again. I have my SD card plugged in to my Laptop running Ubuntu, but I cannot drag the updates to it because I don't have permission. Should I do it straight from the Switch instead?
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Feeling quite foolish again. I have my SD card plugged in to my Laptop running Ubuntu, but I cannot drag the updates to it because I don't have permission. Should I do it straight from the Switch instead?
FAT32 doesnt have permissions, but the ext4 partition does. Easiest way would be to open a terminal and type sudo nautilus which will open a file manager as root, which will have the permissions to edit all files on the sdcard.
 

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
586
Trophies
0
Age
33
XP
1,171
Country
United States
Feeling quite foolish again. I have my SD card plugged in to my Laptop running Ubuntu, but I cannot drag the updates to it because I don't have permission. Should I do it straight from the Switch instead?
I always apply the updates straight from L4T Ubuntu on the Switch.
 
  • Like
Reactions: gbazone

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Materia_tofu @ Materia_tofu:
    hey sylv? do you know why gameyob crashes on the EZP?
  • Materia_tofu @ Materia_tofu:
    @SylverReZ forgor to tag lol
  • SylverReZ @ SylverReZ:
    @Materia_tofu, Maybe ask the EZ-Flash team.
  • Materia_tofu @ Materia_tofu:
    maybe tomorrow lol
  • SylverReZ @ SylverReZ:
    You can make a post on the DS forum about your findings, and they'll do their best to respond. They have a GBAtemp account here, you know.
  • Materia_tofu @ Materia_tofu:
    oh ye i made a post i did forget they had an account i prob shouldve tagged them in the post
    tbh
    +1
  • SylverReZ @ SylverReZ:
    @Materia_tofu, Would've been a great idea, because they'll notice.
    +1
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
    The Real Jdbye @ The Real Jdbye: @Veho for those that want to experience being sonic the hedgehog