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,

octopus

Custom Title
Member
Joined
Sep 6, 2013
Messages
439
Trophies
1
Location
/
XP
1,933
Country
Somalia
I tried searching the thread but I didn't find anything similar to my issue.
photo_2019-06-06_23-11-54.jpg
After docking I'm observing the following bug: the discolored image is moving, it is distorted and glitchy, looks like a broken videocard. Only happens in docked mode, handheld mode is fine. Tried reinstalling and updating, downgrading—nothing helped. Any suggestions?

Also, is it possible to have both Lakka and Ubuntu on the same SD card? FAT32 partition from Ubuntu image is too small for Lakka, and I was not able to resize it.
Any help would be much appreciated.
 

Refriger8tor

Well-Known Member
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
I tried searching the thread but I didn't find anything similar to my issue.
View attachment 169281
After docking I'm observing the following bug: the discolored image is moving, it is distorted and glitchy, looks like a broken videocard. Only happens in docked mode, handheld mode is fine. Tried reinstalling and updating, downgrading—nothing helped. Any suggestions?

Also, is it possible to have both Lakka and Ubuntu on the same SD card? FAT32 partition from Ubuntu image is too small for Lakka, and I was not able to resize it.
Any help would be much appreciated.
You can expand the Fat32 partition using another Linux computer (or a PC with a Linux live USB)
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
did anyone got kodi 18 working on switch?

I have said this before, but yes, I have had kodi 18 working on the switch since last july. ;) Wait for my linux build, which is being a pain, and now, I am thinking I am going to start over, and build it on the switch, using l4t-ubuntu(Oh, the irony. lol.). That being said, it should build quicker than if I tried to do it in an emulator, and the cross compiler is messing things up...... This build will probably have kodi 18, but netflix and amazon will not work, and hardware video acceleration might be iffy, as they are removing openmax from kodi due to bugs. :(
 

dixeflatline

Active Member
Newcomer
Joined
Dec 16, 2010
Messages
43
Trophies
0
Location
Somewhere near you
XP
279
Country
United States
I tried searching the thread but I didn't find anything similar to my issue.
View attachment 169281
After docking I'm observing the following bug: the discolored image is moving, it is distorted and glitchy, looks like a broken videocard. Only happens in docked mode, handheld mode is fine. Tried reinstalling and updating, downgrading—nothing helped. Any suggestions?

Also, is it possible to have both Lakka and Ubuntu on the same SD card? FAT32 partition from Ubuntu image is too small for Lakka, and I was not able to resize it.
Any help would be much appreciated.

Yeah, I have noticed this bug too. Quick fix, change your resolution a few times till the output looks correct. Doesnt happen often but thats what i do when i see it.

And yes you can put LAKKA, L4T Ubuntu, CFW all on one SDCard. From Windows you can use any partition manager software pretty much to extend the FAT32 but if you need to move EXT4 to make unallocated space for the re-size I would suggest using gParted live or any Linux machine. Windows you can something like eassos partition manager but use with caution, i would never trust anything from Windows to work great 100% the time with other filesystems. If you dont have a linux machine handy, use the live i686-pae or amd64 version. Backing up your SDCard is always a good idea.

Good Luck!
 

Mouser X

Well-Known Member
Member
Joined
Aug 26, 2009
Messages
101
Trophies
0
XP
546
Country
United States
Also, is it possible to have both Lakka and Ubuntu on the same SD card? FAT32 partition from Ubuntu image is too small for Lakka, and I was not able to resize it.
Any help would be much appreciated.
If you have 2 SD cards, and an official Nintendo dock, install L4T to two SD cards. Boot Linux on your Switch, and insert your 2nd SD into a USB SD card reader, and plug that into your dock's USB port. Now install/use gparted on your Switch, to resize/move the ext4 and fat32 partions on your 2nd SD card. This resized SD card will be your full, permanent, L4T + Lakka card (this is how I got Lakka and L4T on the same SD card).
 

octopus

Custom Title
Member
Joined
Sep 6, 2013
Messages
439
Trophies
1
Location
/
XP
1,933
Country
Somalia
eassos partition manager
Thanks for the reply! I tried eassos because I don't have anything linux handy at the moment and it didn't work, kept throwing errors at me. I'll try gparted.

@dixeflatline @Mouser X would lakka be able to use ext4 partition or not? I bought 64 GB mSD for everything linux, just how big do I need fat32 partition to be? I guess something around 1.5 GB would be enough if I can use ext4.
 

Dfroberts86

Well-Known Member
Newcomer
Joined
Jun 27, 2018
Messages
80
Trophies
0
Age
38
XP
402
Country
United States
Thanks for the reply! I tried eassos because I don't have anything linux handy at the moment and it didn't work, kept throwing errors at me. I'll try gparted.

@dixeflatline @Mouser X would lakka be able to use ext4 partition or not? I bought 64 GB mSD for everything linux, just how big do I need fat32 partition to be? I guess something around 1.5 GB would be enough if I can use ext4.

The ext4 partition is for l4t Ubuntu, Fat32 partition would be for lakka. I've read that both can't coexist in the same SD card at this point, though I haven't tried it myself.
 

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,911
Country
Japan
The ext4 partition is for l4t Ubuntu, Fat32 partition would be for lakka. I've read that both can't coexist in the same SD card at this point, though I haven't tried it myself.

I can boot between Lakka, L4T, and Atmosphere/CFW. I used Drivegenius to clone the ext4 partition to a customized set-up.
 

gibsonjareds

New Member
Newbie
Joined
Jun 27, 2018
Messages
3
Trophies
0
Age
33
XP
70
Country
United States
I know this isn't using the mainline kernel, but is it possibly shinyquagsire23's joycon rail patch could be useful here? I don't know much about the L4T kernel so forgive my ignorance.
 

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,911
Country
Japan
Also, is it possible to have both Lakka and Ubuntu on the same SD card? FAT32 partition from Ubuntu image is too small for Lakka, and I was not able to resize it.
Any help would be much appreciated.

I use Windows, and I can kind of describe how I did it. I took my regular SD Card, full FAT32, shrunk the the primary partition using a partition manager to leave about 18 GB free at the end. I think it was DiskGenius, but it may have been EASEUS's or Pargaon's partition manager. I created a new partition at the end. At first it was another FAT32 partition, but when I used DiskGenius to clone the L4T ext4 partition, it reformated the second partition to ext4 but kept the size of the partition the same.

You can use something like OSFMount to mount the image to clone with Diskgenius, or you can just clone an image file with DiskGenius from an etched SD card.

Just make sure that you have the bootfiles necessary to copy to the FAT32 primary partition for when you want to boot L4T.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Do you think we'll see that happening?
Or will you be faster with your gentoo release with fully working Kodi V18? :D
I dont know if I would say fully working. Libwedevine isnt possible on arm64, as there is no arm64 chromebook build. So the DRM stuff isnt going to be there(Netflix, Amazon, etc.) Things like youtube, and local playback will work though. Maybe even OpenMax Acceleration, but that is the best you can ask for from kodi on aarch64, because of google, and the drm library. That being said, it isnt possible to use the same library on chromium, so the best bet on netflix would be anbox, or a 32 bit system, but you will need a mainline kernel for that, and that has a lot less support for hardware. For what it is worth, I am packaging a tarball with my 32bit build, that has kodi 18 installed. I will be posting it later, but it is badly optimized, and has issues, that I am not going to help people with.... I am releasing it as is, and then I am moving on to getting Gentoo for Tegra released.

I know this isn't using the mainline kernel, but is it possibly shinyquagsire23's joycon rail patch could be useful here? I don't know much about the L4T kernel so forgive my ignorance.

It is applied in Lakka. I think it has some issues, and the devs wanted to work through them, and possibly add charging support, before pushing it into the l4t kernel. Lakka patches it in, as the wireless joycons are iffy with retroarch. Have to be connected before retroarch starts, or retroarch doesnt see them. Lakka starts retroarch, before you can configure bluetooth. Hince issue.
 
Last edited by Gavin_Darkglider,
  • Like
Reactions: Liv2MsTrb8T

Mouser X

Well-Known Member
Member
Joined
Aug 26, 2009
Messages
101
Trophies
0
XP
546
Country
United States
would lakka be able to use ext4 partition or not? I bought 64 GB mSD for everything linux, just how big do I need fat32 partition to be? I guess something around 1.5 GB would be enough if I can use ext4.
If there's a file browser in Lakka (outside of the "open a file" functionality), I haven't found it yet. So I'd say no, Lakka can't use the ext4 partition. On my SD card, 20 GB is for ext4 (which I felt was excessive, but I made it larger than 14 GB, just in case it turns out I need it bigger down the road), and fat32 is everything else.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
I have released my kodi 18 gentoo build running on mainline 5.0. There are known issues, that I am not going to fix, but it does allow for playing netflix. :)
Get it here: https://gbatemp.net/threads/32-bit-gentoo-buiild-with-kodi-18-and-netflix-support.540307/

If there's a file browser in Lakka (outside of the "open a file" functionality), I haven't found it yet. So I'd say no, Lakka can't use the ext4 partition. On my SD card, 20 GB is for ext4 (which I felt was excessive, but I made it larger than 14 GB, just in case it turns out I need it bigger down the road), and fat32 is everything else.

I dont know where you get your information, but it is wrong. If you connect to the console using ssh, you can mount an ext4 partition. This is linux afterall, and ext4 is the standard for most distro's at this time, so building a kernel without support for it would be strange. Even if it doesnt support it, you can add support, by compiling your own kernel. If you want to automount an ext4 partition with lakka, you would need to extract the initrd and modify the /etc/fstab file, and add your partition and rules there.
 

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,210
Country
United States
I have released my kodi 18 gentoo build running on mainline 5.0. There are known issues, that I am not going to fix, but it does allow for playing netflix. :)
Get it here: https://gbatemp.net/threads/32-bit-gentoo-buiild-with-kodi-18-and-netflix-support.540307/



I dont know where you get your information, but it is wrong. If you connect to the console using ssh, you can mount an ext4 partition. This is linux afterall, and ext4 is the standard for most distro's at this time, so building a kernel without support for it would be strange. Even if it doesnt support it, you can add support, by compiling your own kernel. If you want to automount an ext4 partition with lakka, you would need to extract the initrd and modify the /etc/fstab file, and add your partition and rules there.

What know issues, please ?
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
why is touch so broken in the l4t build compared to this
It is worse in the failoverfl0w build. Most people just didnt notice it, because broken linux wasnt useful to most people. l4t changes this, and makes it a viable platform.
Off the top of your head, what would need to change to make this happen properly?
There needs to be a controller refresh option. Even kodi has some issues with this, but there joysticks are handled by an unloadable plugin, so it is as simple to fix as unloading the plugin, then reloading it. To fix it in lakka, you could set up and connect the joycons via ssh, then kill and restart retroarch, then they will work, until they turn off at least. I think lakka removes the wireless joycon driver though. :(
 
Last edited by Gavin_Darkglider,

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
586
Trophies
0
Age
33
XP
1,171
Country
United States
Just finished Wind Waker. 90% of the game is fullspeed with 1.7ghz CPU overclock and emulated clock rate at 60%. A few minor slowdowns here and there throughout the game that aren't too bothersome. Unfortunately the final battle with Ganondorf is a consistent 15fps (even with 2ghz OC). Still had a great time playing though, it was my first playthrough since it released on the GameCube when I was like 11 years old. Bylaws is a legend for making it possible to play it on my Switch (and the Dolphin devs).

Any have any settings for Twilight Princess?
 
Last edited by stick267,
  • Like
Reactions: mattyxarope

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Bunjolio @ Bunjolio: c