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,

pcwizard7

Well-Known Member
Member
Joined
Aug 2, 2013
Messages
1,409
Trophies
0
XP
1,688
Country
Australia
I just got a switch with trinket m0 in it off of ebay. It was bricked as in OFW would not ever boot up due to the seller's choi downgrade from 7.0.1 to 5.1
I did testing and stuff. I took my sd card from my other switch and guess what... It did booted up ubuntu nicely.....
actually, It is great tool to rule out any hardware issues.

I reflashed the mod chip then setup autoboot to just boot ubuntu :)


could you use hekate to bypass the fuse count check then upgrade the fw to match the fuse count? or rebuild the nand?

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

Hey, heads up... I have an official nintendo 128gb MicroSD and if you try flashing the image it apparently doesn't seem to work. I had to use my old 3DS' 16gb and it worked just fine. If anyone knows why the 128gb doesn't work, please tell me. (The SD is real, not fake)

Nintendo has switch branded sd cards there really re badge scandisk sd card. make sure its fat32 use guiformat32 to format it and try again
 

mattyxarope

Well-Known Member
Member
Joined
Jan 15, 2019
Messages
544
Trophies
0
XP
1,995
Country
United States
Bylaws could you explain how the controllers work once they're both connected - what the device name for them collectively is, for example? I've got this working but can't quite get the controllers to register and I don't have a keyboard to test either.

AV5nQTZ.png
 

Vigg

Member
Newcomer
Joined
Jul 5, 2018
Messages
22
Trophies
0
Age
24
XP
305
Country
Netherlands
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).
Hey I shrinked the ext4 partition and added a fat32 partition, however hekate will still boot from the 500mb fat partition. When I remove this partition hekate will boot from the fat32 partition so I can select Lakka, but Lakka doesnt boot. Also I can't boot ubuntu when I add it to the bootloader. Just like lakka a black screen. But when I recreate the 500mb Fat partition ubuntu works but lakka wont. Does anyone know how to dualboot ubuntu and lakka?? Because your explenation doesn't work for me or I missed something.
 
Last edited by Vigg,

Mouser X

Well-Known Member
Member
Joined
Aug 26, 2009
Messages
101
Trophies
0
XP
546
Country
United States
Hey I shrinked the ext4 partition and added a fat32 partition, however hekate will still boot from the 500mb fat partition. When I remove this partition hekate will boot from the fat32 partition so I can select Lakka, but Lakka doesnt boot. Also I can't boot ubuntu when I add it to the bootloader. Just like lakka a black screen. But when I recreate the 500mb Fat partition ubuntu works but lakka wont. Does anyone know how to dualboot ubuntu and lakka?? Because your explenation doesn't work for me or I missed something.
Added? You don't need to add a partition. It's already there. Move and resize the ext4 partition to the end of the SD card, and then resize the existing fat32 parition (both Lakka and L4T/Ububtu boot from this fat32 partition, so it must be first) to fill whatever is left after the ext4 partition has been resized and moved. Also, you must be running L4T v1.2 or higher, because bylaws updated L4T to be dual-bootable with Lakka in that version.
 

Old-Skool

Well-Known Member
Member
Joined
Aug 8, 2016
Messages
234
Trophies
0
XP
926
Country
United States
So I'm completely new to linux still figuring out the process and for retroarch once it installs how do you open it? Is it a file I'm looking for or something?
 

halcyonknight

Member
Newcomer
Joined
Jun 14, 2018
Messages
14
Trophies
0
Age
28
XP
138
Country
United States
Tried searching to no avail. Got everything running without too much trouble, but for some reason I get some pretty bad screen glitching/flickering while it's in the dock, but switching to 720p fixes it. Any idea why it's happening?
 

Attachments

  • IMG_20190609_213816.jpg
    IMG_20190609_213816.jpg
    1.1 MB · Views: 184
  • IMG_20190609_213837.jpg
    IMG_20190609_213837.jpg
    796.9 KB · Views: 197

ZeroFX

why?
Member
Joined
Jun 18, 2018
Messages
1,107
Trophies
1
Location
napaJ
XP
3,002
Country
Japan
Tried searching to no avail. Got everything running without too much trouble, but for some reason I get some pretty bad screen glitching/flickering while it's in the dock, but switching to 720p fixes it. Any idea why it's happening?
i rarely get this in my monitor, i fix by undocking and re docking, but thats only my case, pretty rare.
 

ZeroFX

why?
Member
Joined
Jun 18, 2018
Messages
1,107
Trophies
1
Location
napaJ
XP
3,002
Country
Japan
Just Successfully booted L4T Gentoo for the first time. A few simple fixes, and making sure audio and dock configs are in place, and you guys can have fun with it. That being said, I have not tested vulkan, or openmax yet, but it seems I have the basic nvidia driver working.
Great, is it another build that you're working or is the one that you released? I've just finished downloading, gonna take a look.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
    TwoSpikedHands @ TwoSpikedHands: @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the...