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,

gptriple

Member
Newcomer
Joined
Mar 25, 2019
Messages
17
Trophies
0
Age
39
XP
499
Country
Italy
@bylaws also with update 2 my switch don't boot into linux, now stuck on black screen i wait more than 10 minutes for 2 times but nothing.
with update 1 switch return in rcm after select L4T in hekate, now black screen.
sd card samsung 64gb u3
switch serial xaj7001650****
firmaware 7.0.1 update with choidyournx from 5.1

let me know if you need more information
 

pescu

Member
Newcomer
Joined
Apr 22, 2019
Messages
19
Trophies
0
Age
34
XP
81
Country
Romania
That would be my dream come true but I am not sure it is possible. We can only dream, can't we ? For now. :)
I think that Max Keller and the rest of the team are working on androit, but I am not sure, because they have to fix the majority of bugs in L4T Ubuntu

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

@bylaws also with update 2 my switch don't boot into linux, now stuck on black screen i wait more than 10 minutes for 2 times but nothing.
with update 1 switch return in rcm after select L4T in hekate, now black screen.
sd card samsung 64gb u3
switch serial xaj7001650****
firmaware 7.0.1 update with choidyournx from 5.1

let me know if you need more information
it happend to me when I installed update V1.2, i just reinstalled the L4T ubuntu
 
  • Like
Reactions: Centergaming

gptriple

Member
Newcomer
Joined
Mar 25, 2019
Messages
17
Trophies
0
Age
39
XP
499
Country
Italy
I think that Max Keller and the rest of the team are working on androit, but I am not sure, because they have to fix the majority of bugs in L4T Ubuntu

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


it happend to me when I installed update V1.2, i just reinstalled the L4T ubuntu
what do you mean for "reinstalled L4T" did you reborn the image and apply again the update?
 

pescu

Member
Newcomer
Joined
Apr 22, 2019
Messages
19
Trophies
0
Age
34
XP
81
Country
Romania
@bylaws The latest update keeps sending me back into rcm mode... :(
It send me first time, but when I booted again it worked ;)

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

what do you mean for "reinstalled L4T" did you reborn the image and apply again the update?
I reborn the image, booted into linux and configure it, power off, and apply the update again.

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

@bylaws also with update 2 my switch don't boot into linux, now stuck on black screen i wait more than 10 minutes for 2 times but nothing.
with update 1 switch return in rcm after select L4T in hekate, now black screen.
sd card samsung 64gb u3
switch serial xaj7001650****
firmaware 7.0.1 update with choidyournx from 5.1

let me know if you need more information
You can also try rebooting like 4-5 times
 

gptriple

Member
Newcomer
Joined
Mar 25, 2019
Messages
17
Trophies
0
Age
39
XP
499
Country
Italy
It send me first time, but when I booted again it worked ;)

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


I reborn the image, booted into linux and configure it, power off, and apply the update again.

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


You can also try rebooting like 4-5 times
ok, i tried to reburn the image and boot again. i can't enter and configure becouse never booted for me.
now i'll try to do some reboot
 

parkerlreed

Active Member
Newcomer
Joined
Sep 6, 2018
Messages
26
Trophies
0
Age
30
XP
100
Country
United States
So I'm trying to get Arch booting on this (I understand I may not have video, I set it up to auto connect to WiFi)

Took the rootfs from here and extracted to a blank second partition (ext4) https://archlinuxarm.org/platforms/armv8/generic

Copied the Image and initramfs-linux.img to the L4T folder

I try to boot it and just get a black screen. I assume I need to edit the offsets in the boot.scr but I'm not sure to what.

This is the current byte size of my Image and initramfs

Code:
total 32632 
drwxr-xr-x 2 root root     4096 May  6 12:17 . 
drwxr-xr-x 4 root root     4096 Dec 31  1969 .. 
-rwxr-xr-x 1 root root      386 May  6 12:15 boot.scr 
-rwxr-xr-x 1 root root  1048576 May  6 12:13 coreboot.rom 
-rwxr-xr-x 1 root root 24734208 May  6 19:04 Image 
-rwxr-xr-x 1 root root  7335251 May  6 19:04 initramfs 
-rwxr-xr-x 1 root root   280289 May  6 12:11 tegra210-icosa.dtb
 

jug5

Member
Newcomer
Joined
Apr 29, 2019
Messages
8
Trophies
0
Age
113
XP
68
Country
United States
@bylaws Thank you so much for adding the USB ethernet drivers and NFS, one thing that you missed: CONFIG_NFS_V4

Can you please enable in the next kernel build?

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

Also for reference this is the kernel option

CONFIG_USB_NET_AX88179_178A

I don't have mine on me to check if that's in the new config

EDIT: Strange it should be working

[parker@stealth l4t-ubuntu]$ ./extract-ikconfig Image | grep AX88
CONFIG_USB_NET_AX8817X=y
CONFIG_USB_NET_AX88179_178A=y

Epic, did you use the new boot option? You may have booted the old kernel. The actual file layout in the FAT32 partition changed.

I have the same USB ethernet adapter and I can verify that I'm booting the new kernel that has the drivers compiled in but it still doesn't work for some reason.
There is no dmesg output at all when plugging or unplugging the adapter.

Edit: It's a problem with the USB port on the dock, I plugged in a USB drive and nothing in dmesg and no new devices in lsblk shown either.
 
Last edited by jug5,

iotdevnet

Active Member
Newcomer
Joined
Apr 29, 2019
Messages
29
Trophies
0
Age
46
XP
85
Country
Bulgaria
Try with 1.2, its VERY likely its fixed

1.2 is OUT, with 2.0ghz most games run at same pace as shield. Tons of controller drivers have been enabled along with usb ethernet drivers.


- Yep my usb Ethernet works! :toot:
- 2.09Ghz actually is show to me overclock also works !:hrth:

- hw video acceleration work with default video player !

tryed 4k h265 aquaman there is some small lag thinks going worst if i switch to 4k 30hz not sure how is 4k playback on Nvidia shield Tv maybe android video acceleration will work more good cos they will have better driver lib.

P.S How i can boot kernel parameters to the kernel like for example:
i want to disable ipv6 so how i can pass this parameter to the kernel ?

ipv6.disable

i really not like why arm don`t have grub :unsure:

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

@bylaws Thank you so much for adding the USB ethernet drivers and NFS, one thing that you missed: CONFIG_NFS_V4

Can you please enable in the next kernel build?

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



I have the same USB ethernet adapter and I can verify that I'm booting the new kernel that has the drivers compiled in but it still doesn't work for some reason.
There is no dmesg output at all when plugging or unplugging the adapter.

Edit: It's a problem with the USB port on the dock, I plugged in a USB drive and nothing in dmesg and no new devices in lsblk shown either.

If you wonder are you booting the newer kernel when you boot you must hear the fan spinning with full speed.

also you delete old boot folder from your fat32 sd card
 

jug5

Member
Newcomer
Joined
Apr 29, 2019
Messages
8
Trophies
0
Age
113
XP
68
Country
United States
- Yep my usb Ethernet works! :toot:

If you wonder are you booting the newer kernel when you boot you must hear the fan spinning with full speed.

also you delete old boot folder from your fat32 sd card

Yeah I've deleted the old boot folder, I'm not sure I hear the fan but there's no other kernel to boot other than the new one in the new folder.
At what point do you dock your switch during boot? After the login screen?
 

iotdevnet

Active Member
Newcomer
Joined
Apr 29, 2019
Messages
29
Trophies
0
Age
46
XP
85
Country
Bulgaria
Yeah I've deleted the old boot folder, I'm not sure I hear the fan but there's no other kernel to boot other than the new one in the new folder.
At what point do you dock your switch during boot? After the login screen?

my login is automatic i set it to log me in directly
after that i put on the dock
 

coffinbirth

Well-Known Member
Member
Joined
Jun 15, 2009
Messages
238
Trophies
1
XP
1,664
Country
United States
- Yep my usb Ethernet works! :toot:
- 2.09Ghz actually is show to me overclock also works !:hrth:

- hw video acceleration work with default video player !

tryed 4k h265 aquaman there is some small lag thinks going worst if i switch to 4k 30hz not sure how is 4k playback on Nvidia shield Tv maybe android video acceleration will work more good cos they will have better driver lib.

P.S How i can boot kernel parameters to the kernel like for example:
i want to disable ipv6 so how i can pass this parameter to the kernel ?

ipv6.disable

i really not like why arm don`t have grub :unsure:

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



If you wonder are you booting the newer kernel when you boot you must hear the fan spinning with full speed.

also you delete old boot folder from your fat32 sd card
Shield TV is pretty much the best 4k HDR box you can get. Huge(20mbps)4k h265 work for me perfectly.
 
  • Like
Reactions: Taorn

iotdevnet

Active Member
Newcomer
Joined
Apr 29, 2019
Messages
29
Trophies
0
Age
46
XP
85
Country
Bulgaria
Shield TV is pretty much the best 4k HDR box you can get. Huge(20mbps)4k h265 work for me perfectly.

yes but we still limited from 4k 30hz :( so maybe 1080p is enough :D
P.S maybe with hardware modification we can make HDMI port to do 4k/60hz not sure is 60hz require more pins to the hdmi port
 
Last edited by iotdevnet,

ReavoEnd

Member
Newcomer
Joined
Jun 17, 2018
Messages
22
Trophies
0
Age
34
XP
173
Country
United States
Any chance for future support of the PowerA Gamecube-style controller? Currently it can be manually paired via Bluetooth, but is not recognized as a controller unlike the pro controller or Joy-Cons.

Second question: Is there any way to manage which "controller number" your connected controller shows up as to the system? For instance right now what happens is:
  • Joy-Con connect, first time: Controller 1
  • Joy-Con disconnect, connect second time: Controller 2
  • Joy-Con disconnect, connect third time: Controller 3
  • etc.
Seems like a bug, as ideally it would release the controller 1 slot upon each disconnect, then reconnect as controller 1 every time.
 

Refriger8tor

Well-Known Member
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
@bylaws first off thanks for making all this possible, truly awesome stuff
secondly, any chance of USB webcam support (or if anybody else here wants to report if their's work)?

Was messing with some peripherals today, USB printing and scanning worked on my Canon MX880 color printer lol!
 

De4dm4sterBR

Member
Newcomer
Joined
Apr 28, 2019
Messages
21
Trophies
0
Age
25
XP
83
Country
Brazil
switchroot.png

L4T Ubuntu 1.2
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.

Beware, using high clocks in handheld mode will degrade your batteries capacity a lot faster than at stock clocks

If you can't install an application check this thread, and ask all questions there https://gbatemp.net/threads/l4t-ubuntu-applcation-install-guides.537579/

Features
  • Dock support with USB
  • Bluetooth (both controllers and audio)
  • Nvidia GPU drivers - Vulkan and OpenGL
  • Audio - Headphones, speakers and over HDMI when docked.
  • Joycons and pro controllers are supported fully when not attached to the the console
  • Touchscreen
  • Display
  • WiFi
  • CPU frequency scaling - The CPU scales from 200mhz to 1.7ghz (what switch is binned for) depending on the load its under. Fans are adjusted to account for this
  • Full sdcard speed
  • Hardware video acceleration when using the built in videos app (means you can watch videos without battery draining massively)
Prerequisites
  • A dedicated 16GB+ sdcard
Downloads
Updates
  • 1.1:
  • Download:
  • https://download.switchroot.org/updates/update-1.1-for-switchroot-l4t-ubuntu-2019-04-28.tar.gz
  • Installation Instructions:
  • apt update && apt upgrade is NOT enough for this update
  • Extract this to the first partition of your sdcard, making sure to overwrite Image and tegra210-icosa.dtb.
  • Changelog:
  • Enabled USB mass storage and binfmt in kernel.
  • Fixed touch sensitivity and it not reaching bottom edge.
  • Fixed issues with joycon/procon right stick and y axis
  • Potentially fixed issues with sdcards, if someones didnt work before please try again, if still no then pm me.
  • 1.2:
  • Download:
  • https://download.switchroot.org/upd...1-for-switchroot-l4t-ubuntu-2019-04-28.tar.gz
  • Installation Instructions:
  • apt update && apt upgrade is NOT enough for this update
  • MAKE SURE TO DELETE THE boot FOLDER AND boot.scr BEFORE EXTRACTING THIS UPDATE
  • Extract this to the fat32 partition of your sdcard, making sure a l4t-ubuntu folder is created and the L4T ini is overwritten.
  • Changelog:
  • Enabled ntfs, nfs, squashfs (snaps may work now), ethernet drivers in kernel.
  • Added 2.0ghz overclock.
  • Enabled android ashmem drivers, needed for anbox (need arm64 ver of it and may run)
  • Potentially fixed issues with sdcards, if someones didnt work before please try again.
  • No longer conflicts with lakka.
  • Check misc info section on how to activate 2ghz mode.
How to install
  1. Download the image from the downloads section and extract.
  2. Write it to your sdcard using a program such as etcher or dd
  3. Apply any updates from the updates section in the thread, IMPORTANT as images don't EVER come with them
  4. Boot hekate and select L4T from the configs menu.
  5. Wait for around 2-4 minutes while it initially loads
  6. Go through the setup process - make sure not to dock the console in this period.
  7. Once the initial setup is finished and you are on the login screen it is advisable to reboot:
  8. Hold the power button for 10 seconds.
  9. Load hekate again and select L4T as a payload.
  10. Log in and open the "Disks" app
  11. Select the second partition of your sdcard and click the gears icon
  12. Choose resize and change the size to the full amount of available space.
  13. Enjoy, you now have fully featured Ubuntu on your switch!
Bugs
  • Wired joycons do not work (connected to console)
  • Docking while having a ssh session open can cause the display to not turn off correctly
  • No sleep mode
  • USB OTG - works fine in dock though
  • Vulkan is buggy in dolphin
  • Touch randomly freezes sometimes
  • The real time clock gets messed up in horizon
Misc Info
  • Pair (joy/pro)cons by opening the bluetooth menu in settings and pressing the + button in the bottom left corner. Then press the sync button on the controller and select its name in the pairing window. Once both joycons are paired press each of their shoulder buttons to use as one controller
  • To update the system run "sudo apt update", "sudo apt upgrade". This will apply all switch and ubuntu updates aside from kernel updates, they will be posted here if ever needed.
  • To limit cpu freq, run cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies. Find the one you want, then run: echo <freq you want> | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
  • To force max freq run echo performance | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
  • A gui to configure overclocks and fan profiles is coming soon
  • NEW: To activate 2 ghz mode run
    Code:
    echo 1 | sudo tee /sys/kernel/tegra_cpufreq/overclock
    echo 2091000  | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
    then run the command to force max freq if you want to use anything intensive.
  • To always use 2.0ghz mode copy
    Code:
    #!/bin/bash
    echo 1 > /sys/kernel/tegra_cpufreq/overclock
    echo  2091000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
    exit 0
    to /etc/rc.local (you'll need root to create)

Sources
They can all be found at https://gitlab.com/switchroot with the other kernel repos on http://nv-tegra.nvidia.com

Credits
Langerhans,
Ave,
Natinusala,
CTCaer,
NVIDIA,
Everyone else in switchroot - more info on that in the future.

Well, even after 1.2, my SD card still not able to boot L4T.
 

DerekGeneric831

DerekGeneric831
Member
Joined
Feb 5, 2016
Messages
435
Trophies
0
Age
30
Location
Australia
XP
1,015
Country
Australia
i've managed to boot into Linux on the switch and set the Disk Partition, however theres a few problems..
I can't seem to understand how to update L4T Ubuntu with the latest update,
the keyboard aswell as touchscreen capability is awful and when i go into the Gnome-Terminal and it requires my password whenever i use the caps lock for the first letter of my password it accepts that as the entry for my whole password and asks me to type my password in again meaning im stuck in a loop and can't enter any of the entries i need to put in.. I can't get the Joy Cons recognised through the bluetooth settings whatsoever even when pressing the sync buttons.. and setting up Dolphin Gamecube Emulation w/ Vulkan is pretty much the end goal and the reason i want to use L4T Ubuntu however when i plug my Micro SD into my PC to drop some games on it.. it says that the Micro SD only has less than 100MB on it?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    ubisoft should #stopkillinggames ngl
  • Badcatalex @ Badcatalex:
    sony should #stopkillinggames
  • Badcatalex @ Badcatalex:
    they killed LittleBigPlanet online, which was the main core of every LBP game
  • BakerMan @ BakerMan:
    for real
  • BakerMan @ BakerMan:
    at least with them, it was because of the DDOS attacks, ubisoft was just scummy
  • BakerMan @ BakerMan:
    fuck ubisoft, and fuck activision
    +1
  • realtimesave @ realtimesave:
    Nintendo needs to release a new console, switch is getting such shitty little games lately lol it's pathetic
  • Purple_Heart @ Purple_Heart:
    Lmao a new flashcart... The Unlock Switch... I knew it's not fake xD
    +1
  • NinStar @ NinStar:
    A new consoles won't solve that problem
  • NinStar @ NinStar:
    It will actually make it worse
  • The Real Jdbye @ The Real Jdbye:
    well actually
    a new console won't do anything right now, because the games are still in development, that's why there are few games being released
  • The Real Jdbye @ The Real Jdbye:
    it won't make the games finish any faster
  • Veho @ Veho:
    2/3rds of launch titles for the Switch 2 will just be lazy ports of Switch games anyway.
  • The Real Jdbye @ The Real Jdbye:
    probably
  • The Real Jdbye @ The Real Jdbye:
    maybe mario kart 9 will be a launch title
  • The Real Jdbye @ The Real Jdbye:
    i really want a new mario kart
  • Veho @ Veho:
    What, you mean the endless stream of DLCs doesn't count?
  • Veho @ Veho:
    Why develop a new game when you can just sell season passes forever?
  • Veho @ Veho:
    I'm still on MKDS so I'm not bothered :tpi:
  • The Real Jdbye @ The Real Jdbye:
    i like the dlc tbh, i'd like a new game more
  • ZeroT21 @ ZeroT21:
    but the current version is still selling fine at full price
  • SylverReZ @ SylverReZ:
    Hello
  • ZeroT21 @ ZeroT21:
    sup
    +1
  • SylverReZ @ SylverReZ:
    @realtimesave, You seen the Unlock Switch flashcart yet?
  • K3Nv2 @ K3Nv2:
    I'll see the 19.0 update that blocks use ability to it
    K3Nv2 @ K3Nv2: I'll see the 19.0 update that blocks use ability to it