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,

parkerlreed

Active Member
Newcomer
Joined
Sep 6, 2018
Messages
26
Trophies
0
Age
30
XP
100
Country
United States
What is the l4tbr0 for?

Code:
9: l4tbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether be:32:f0:a9:ec:19 brd ff:ff:ff:ff:ff:ff
    inet 192.168.55.1/24 brd 192.168.55.255 scope global l4tbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::1/128 scope link
       valid_lft forever preferred_lft forever
    inet6 fe80::708f:ffff:fe4a:1bd2/64 scope link
       valid_lft forever preferred_lft forever
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
What is the l4tbr0 for?

Code:
9: l4tbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether be:32:f0:a9:ec:19 brd ff:ff:ff:ff:ff:ff
    inet 192.168.55.1/24 brd 192.168.55.255 scope global l4tbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::1/128 scope link
       valid_lft forever preferred_lft forever
    inet6 fe80::708f:ffff:fe4a:1bd2/64 scope link
       valid_lft forever preferred_lft forever

There is an xbox emulator someone was testing and it wanted a bridge device to connect to, so the module was included in the kernel to bridge the emulator to the wifi. It was added as a request in this thread.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Has anybody figured out exFAT mounting yet?
exfat is handled in userspace using fuse driver. There is a kernel driver as well, but you will need to add that patch yourself, and then compile a kernel that includes the driver. If you do this, then you dont need the userspace fuse driver. either way it will work to mount the exfat partition.
 

BryBread

Member
Newcomer
Joined
Aug 15, 2014
Messages
9
Trophies
0
Age
28
XP
49
Country
United States
Dunno if anyone has mentioned this yet, but using ulatencyd seems to have improved responsiveness pretty dramatically on my install of L4T.

Ulatencyd is (somewhat recently) abandoned and it does throw a "system error has been detected" dialog box on startup, but it seems to work fine and doesn't need anything special to configure it.

With ulatencyd installed, I was able to build a large project with make -j4 in the background while continuing to use the browser in the foreground. The browser loaded stuff slower obviously, but it remained responsive to my input. Although, I did end up running out of memory and my chrome extensions crashed :D

Sorry that I don't have any firm numbers but I highly recommend you all give ulatencyd a try.
 
  • Like
Reactions: Liv2MsTrb8T

bitteorca

Member
Newcomer
Joined
Jul 12, 2018
Messages
21
Trophies
0
Age
28
XP
100
Country
United States
Can I resize the initial 500mb partition to something higher? It always makes the SD card unreadable to my Switch when I resize it.

I keep all my CFW files on the first partition so I need it to be at least 1.5gb. I try to take it away from the 2nd partition (the 8gb Linux partition) while adding the space back at the end of the SD card but it always says the the card is corrupt and must be formatted when I put it back in the switch. I need some assistance, is this possible? I want an SD card with enough space for retroarch games, maybe OpenMW or OpenRTC2, L4T Ubuntu, and a 29.1gb emunand. I should be good on all of this if I could just resize the first partition without it breaking.
 
Last edited by bitteorca,

Kirby567fan

Well-Known Member
Member
Joined
Jan 6, 2018
Messages
402
Trophies
0
Age
23
XP
2,612
Country
Morocco
In other news, got Citra building & running on L4T. Performance is predictably terrible but not as bad as I thought it would be; runs at about half speed (on the OoT intro anyway) using the performance profile (not 2ghz mode).

1lkLSAx.jpg
Nice. Can you try a 2D game please while also enabling 2ghz?
 

Mouser X

Well-Known Member
Member
Joined
Aug 26, 2009
Messages
101
Trophies
0
XP
546
Country
United States
Can I resize the initial 500mb partition to something higher? It always makes the SD card unreadable to my Switch when I resize it.

I keep all my CFW files on the first partition so I need it to be at least 1.5gb. I try to take it away from the 2nd partition (the 8gb Linux partition) while adding the space back at the end of the SD card but it always says the the card is corrupt and must be formatted when I put it back in the switch. I need some assistance, is this possible? I want an SD card with enough space for retroarch games, maybe OpenMW or OpenRTC2, L4T Ubuntu, and a 29.1gb emunand. I should be good on all of this if I could just resize the first partition without it breaking.
The Linux partition has to be resized by a partition manager that can understand Linux partitions. There is one for Windows (search this thread), but I used gparted in Linux to repartition my SD card. Or you can download a "gparted boot disk" to boot your PC into a Linux distro specifically made for repartitioning systems.

If you have 2 SD cards, you can do what I did. Install L4T to both SD cards. For the card you WANT L4T on, set it aside, and boot your Switch with the other L4T card. Install gparted, and insert your Switch into the Dock. Use a SD card reader attached to the dock to read/mount the card you set aside. Use gparted to resize the 2nd SD card (the one in the reader). It's worked great the 4 or so times I've done this.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Or the easier option would be to create the partitions yourself, and then extract partition2 img from the full img, so everything after 500mb or so. You can use fdisk on the image file, once it is extracted, and get the correct information, then write that partition image to the p2 partition. as for p1, that isnt needed, as everything you need is in the latest kernel update package.
 
  • Like
Reactions: globalc

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
Hi all. I can't get L4T to boot, I don't know what I'm doing wrong, but when I select L4T on Hekate it freezes on a black screen (backlight is on).

Here is everything I did :
  • Download the img file from OP
  • Use dd to write it to my microSD
  • Copy hekate bootloader folder on the microSD (while keeping L4T.ini)
  • Safely remove my microSD
  • Launch Hekate
  • Select "more configs" and click on "L4T"
My microSD is a 16GB Sandisk Extreme Plus. I also tried with a 128GB Sandisk Ultra with no success. And I also tried to apply the updates (removing boot and boot.scr and copying the update files on the microSD).

Thank you for your help
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Well, if the backlight is coming on, it is booting, but there might be an issue with the sd card reader driver and your sd card. It could also be an issue with memory training. I have had some success if I rebooted to horizon before booting into linux, but that was with an sd card I know works.
 

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
Well, if the backlight is coming on, it is booting, but there might be an issue with the sd card reader driver and your sd card. It could also be an issue with memory training. I have had some success if I rebooted to horizon before booting into linux, but that was with an sd card I know works.

Thanks for your help.
I tried booting to Horizon and then boot into L4T but I'm still stuck on a black screen. The microSD card works fine with Horizon though, I was using it before changing to a 128GB one.
Do you know what microSD card is known to work with L4T ?
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Thanks for your help.
I tried booting to Horizon and then boot into L4T but I'm still stuck on a black screen. The microSD card works fine with Horizon though, I was using it before changing to a 128GB one.
Do you know what microSD card is known to work with L4T ?

I have been using a 128gb samsung evo card, but a cheap 16gb sandisk card worked for me as well. I am not sure what the issue is here, as I dont have a way to debug it.
 

bitteorca

Member
Newcomer
Joined
Jul 12, 2018
Messages
21
Trophies
0
Age
28
XP
100
Country
United States
Another question. I'm trying to install i386 packages from apt-get update as I enabled 32bit architecture. none of it will download. I'm doing so because I'm going to use qemu x86 linux chroot with wine to launch x86 applications. the issue is that all the packages apt-get update tries to get spits back Ign: (which I assume stands for ignore) and a bunch of links to i386 packages from http://turul.canonical.com

I need them though for qemu-static-i386, what do?

my sources file in /etc/apt/sources.list.d/99-switchroot.list only lists
"deb http://repo.switchroot.org unstable/"
what do I have to add to get these i386 packages for QEMU+Wine?
 

zarkon

Member
Newcomer
Joined
Dec 16, 2018
Messages
14
Trophies
0
Age
38
XP
338
Country
Italy
Another question. I'm trying to install i386 packages from apt-get update as I enabled 32bit architecture. none of it will download. I'm doing so because I'm going to use qemu x86 linux chroot with wine to launch x86 applications. the issue is that all the packages apt-get update tries to get spits back Ign: (which I assume stands for ignore) and a bunch of links to i386 packages from http://turul.canonical.com

I need them though for qemu-static-i386, what do?

my sources file in /etc/apt/sources.list.d/99-switchroot.list only lists
"deb http://repo.switchroot.org unstable/"
what do I have to add to get these i386 packages for QEMU+Wine?
maybe it's incompatible because switch is a arm device?

Inviato dal mio SM-N9600 utilizzando Tapatalk
 

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
@bylaws. Sorry if these are useless now. I've made bandaid tier macros to deal with the annoyances and forgot to upload.

One bug I can't avoid is the sleepy gpu (I think) After a few hours uptime only the display will die.

Also thank you! I've learned a lot from this.
 

Attachments

  • Syslogs.zip
    4.5 MB · Views: 135

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Sorry for accidentally bending over