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,

monokin1114

Well-Known Member
Newcomer
Joined
Apr 21, 2019
Messages
46
Trophies
0
Age
29
XP
544
Country
Canada
Now all we need is a way to reboot back into hekate. We can boot to l4t from Kosmos. So now all we need is the other way around
 

Halobro35

Member
Newcomer
Joined
May 2, 2019
Messages
10
Trophies
0
Age
37
XP
13
Country
United States
Hey everyone!
Just wanted to say thanks to bylaws for this incredible release.
I was able to get it setup and running smooth, and sifted through the thread and was able to get dolphin ishiiiruka, among other apps, installed.

Only question I had was, how are you guys setting up the partitions to dual boot on your sd cards?
I have a 64gb card, and setup the linux partition using gparted in ubuntu to be 16gb. The rest of the card (the FAT32 partition) I wanted to allocate to running horizon/cfw. Trouble is, I can't make the 500mb FAT32 partition any larger. The only thing I was able to do was make a third partition that was about 47gb but that didn't work well. Am I missing something here?
 

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
use ishiiruka instead, getting vulkan to work on it is much simpler
i got ishiiruka running ok. but i'm having similar issues with black screen, except it happens after 10-15 seconds instead of immediately.

EDIT: tested with 3 games, all continue running but stop displaying video after 10 seconds
 
Last edited by enderer,

enzobelmont

Active Member
Newcomer
Joined
Apr 30, 2019
Messages
31
Trophies
0
Age
46
XP
617
Country
Mexico
Hey everyone!
Just wanted to say thanks to bylaws for this incredible release.
I was able to get it setup and running smooth, and sifted through the thread and was able to get dolphin ishiiiruka, among other apps, installed.

Only question I had was, how are you guys setting up the partitions to dual boot on your sd cards?
I have a 64gb card, and setup the linux partition using gparted in ubuntu to be 16gb. The rest of the card (the FAT32 partition) I wanted to allocate to running horizon/cfw. Trouble is, I can't make the 500mb FAT32 partition any larger. The only thing I was able to do was make a third partition that was about 47gb but that didn't work well. Am I missing something here?
Hi, first you must grow your ext4 partition to 16 gb, then move this ext4 partition to the end of microSD. this may take 10 minutes, be patient. next you can resize fat32 partition to all free space.
 

stefan230

Member
Newcomer
Joined
May 1, 2019
Messages
6
Trophies
0
Age
27
XP
61
Country
Germany
Did you fix the issue with this? "link removed from quote because le rules"

Also, most non-trivial programs do not work correctly on Hangover due to unthunked/unimplemented functions.

I didnt really looked into the error. Just saw it happening. This might help me out further. Thanks for that. Or maybe I forgot mingw alltogether? Instructions aren't really clear on that one.

Also I am well aware that the program is mostly uninfinished and may not even work on the switch, but I wanted to try anyway with something simpler maybe small indies and visual novels. Wish me luck I guess.
 

Techjunky90

Well-Known Member
Member
Joined
Apr 7, 2017
Messages
487
Trophies
0
Age
33
XP
882
Country
United States
You need to use a program to mount the downloaded image to your SD card, I use etch.

Once you have done so inserting your SD card into the PC will bring up a folder structure as normal, this is your first parition.
He was talking about the 1.1 update, which does not need to be burned to the sd card. Only needs to be copied and pasted.
 
  • Like
Reactions: wicksand420

orangpelupa

Well-Known Member
Member
Joined
Aug 7, 2009
Messages
388
Trophies
1
XP
1,183
Country
Indonesia
Good call on adding a swapfile. Might be placebo but my Switch seems to be running much smoother after creating one. I went with 2GB.

For anyone interested:
https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/
Note you'll have to install nano to edit the fstab file mentioned in the article (sudo apt install nano).

change nano to gedit and you dont need to install anything :)

anyway, anyone have any idea how to enable ZRAM? i followed a turorial but ZRAM still inactive
 

BlackTSQ

Well-Known Member
Newcomer
Joined
Oct 9, 2018
Messages
97
Trophies
0
Age
28
XP
547
Country
Austria
Don't have my switch at hand and would like to do some testing on a virtual machine. Does anyone know if and how to get the image working in VirtualBox?
Already tried converting the .img File to .vdi with VirtualBox's integrated tools but the VB didn't recognise the drive as bootable.

Edit: nvmd, forgot that VirtualBox only runs x86, will try with qemu
 
Last edited by BlackTSQ,

theory18

Active Member
Newcomer
Joined
Mar 2, 2010
Messages
34
Trophies
1
XP
47
Country
United States
I can't seem to get this to work after a few re-tries, i'll try and mention all the steps i did, hopefully someone will see what i did wrong.

1. Downloaded following files sd.img, hekate_ctcaer_4.10.1.bin, balenaEtcher-Setup-1.5.24-x64.
2. Inserted my SanDisk Ultra 32Gb in to the microsd-usbdrive for formatting.
3. Open balenaEtcher selected the sd.img and my SD card, let it finish, says finished.
4. Flashed hekate_ctcaer_4.10.1 onto my ns-atmosphere injector
5. inserted both into my switch, launched hekate
6. Go to Launch -> configs -> L4T
7. screen stays on and black for about 20sec,then turns off and the switch does nothing for the next 10min...

*When i flash the card the first boot partition seems to be flashed correctly, the 2nd partition does not seemed to be formatted correctly and windows asks me everytime to format the drive(red circle), the two blue circles are partitions on my sd card(note the 2nd one (F) does not have any size defined to it nor formatting. (E is the bootdrive)

tFBJqN3.jpg


**Additionally i replaced the update files(update-1-for-switchroot-l4t-ubuntu-2019-04-28.tar) with the files on the formatted sd card, to see if it helped but still same result.

Hope someone can help me out, would really like to try it out. Thanks in advance


Edit: as some suggested changing SD card worked immediatly.
Although the SD card is perfectly fine, i don't know why, but taking another one did the trick, thanks!
 
Last edited by theory18,

ReikaRin

Well-Known Member
Member
Joined
Mar 21, 2018
Messages
113
Trophies
0
XP
538
Country
Indonesia
@theory18 your second partition is ext4, its normal windows cant read and asked you to format it. Use something like ext2fsd to read the partition

Maybe you can try to reflash img file or use other sd (?)
 
Last edited by ReikaRin,

theory18

Active Member
Newcomer
Joined
Mar 2, 2010
Messages
34
Trophies
1
XP
47
Country
United States
@theory18 your second partition is ext4, its normal windows cant read and asked you to format it. Use something like ext2fsd to read the partition

Maybe you can try to reflash img file or use other sd (?)
Hello, thanks for the advice, i have reflashed 3 times already, and the only other sd card i have is the one with my XCI games on where i run sx os on(which i'd like to keep).
It was a very expensive card though and it was used without issues in my GOPRO camera(high write and read speeds).
So nothing in my steps was wrong? it's either flashing or the sd card?
 
Last edited by theory18,

Sticker

Well-Known Member
Newcomer
Joined
Oct 1, 2018
Messages
89
Trophies
0
Age
34
XP
683
Country
Vietnam
How to make dual boot on same sd card? I dont want to swap sd card? the first partition only 500MB so useless, I want to set it to exFat and extend it size so I can share data between Ubuntu and CustomFWs
 

Snomannen_kalle

Well-Known Member
Member
Joined
Sep 2, 2018
Messages
350
Trophies
0
Age
29
XP
2,347
Country
Norway
Hello, thanks for the advice, i have reflashed 3 times already, and the only other sd card i have is the one with my XCI games on where i run sx os on(which i'd like to keep).
It was a very expensive card though and it was used without issues in my GOPRO camera(high write and read speeds).
So nothing in my steps was wrong? it's either flashing or the sd card?
You can back up the contents of your second SD card (i.e. the one with the .XCIs) before you flash the image, and move the files back after you have resized the FAT32 partition in L4T Ubuntu; that is what I did (I only have one SD card)

Edit:
How to make dual boot on same sd card? I dont want to swap sd card? the first partition only 500MB so useless, I want to set it to exFat and extend it size so I can share data between Ubuntu and CustomFWs
Do what I described above, but before you move your files back on your SD, you should format the FAT32 partition to exFAT in Windows. I don't know if this will break L4T Ubuntu though, but maybe you can try it and report back here
 
Last edited by Snomannen_kalle,

A3660537JPN

Well-Known Member
Member
Joined
Sep 13, 2017
Messages
117
Trophies
0
Age
34
XP
1,209
Country
Japan
How to make dual boot on same sd card? I dont want to swap sd card? the first partition only 500MB so useless, I want to set it to exFat and extend it size so I can share data between Ubuntu and CustomFWs
You can back up the contents of your second SD card (i.e. the one with the .XCIs) before you flash the image, and move the files back after you have resized the FAT32 partition in L4T Ubuntu; that is what I did (I only have one SD card)

Edit:

Do what I described above, but before you move your files back on your SD, you should format the FAT32 partition to exFAT in Windows. I don't know if this will break L4T Ubuntu though, but maybe you can try it and report back here
We cannot boot L4T with hekate if the 1st partition is exFAT.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: I may take a shower to remove all the sunburns in my body