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,

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Well... that's the point of hacking, modding, whatever you want to call it. There is really no motivations for most of these devs besides "because we can." Sure, there's some small motivations in modding a console like running emulators and such... but most devs just do it for the thrill of running code a console isn't supposed to. To them, it's the challenge that makes it fun.

So yeah. These devs, if they so choose to try and run the NES/SNES Linux OS's on Switch, are very much in their right mind because there's no standard to the Homebrew community at large. It's mainly an open field of awesome demos and experiments.

Now... from my perspective as a user? I mainly threw out that suggestion not because I want that, but because I thought it would be an interesting idea. Something no one, at least publicly, has at least attempted before. I'm merely trying to kickstart someone's curiosity just for the fun of it. Something that'd be interesting to witness.

I get that, in fact I find myself telling people this quite a lot I just don't see it happening, so I apologise. I'll remember in future that it can always happen "just because".

While, we could probably port those mini distro's to the switch, using l4t(really it wouldnt be that hard, as nes/snes dont use any real video card acceleration, you dont have to mess with that, but you would have to compile the whole thing, so you would need the og build enviornment, if you wanted a 1:1 os for the switch. That being said, as a proof of concept, I say go big, or go home. Bring a first to the table. Bylaws got (L4T, power delivery, touchscreen fixes, etc), I got first on netflix support.... which if you look at the time stamps, I had for like a year., I could keep going, but the idea is to do expand on what is there already in new and interesting directions..... Not go backwards. I even have ideas for getting netflix, and amazon working on L4T. This wouldnt include kodi though. (I liked kodi as a front end, because I could remap the volume buttons for brightness, and use the joystick to adjust volume. Made a great media player on the go.)
 

ZeroFX

why?
Member
Joined
Jun 18, 2018
Messages
1,098
Trophies
1
Location
napaJ
XP
2,976
Country
Japan
can somebody please make a stresstest on a switch with original thermal paste and no mods on it. i tested mine with new thermal paste and some thermal pads placed.

i installed stress-ng and run following command: stress-ng --matrix 0 --matrix-size 64 --tz -t 10m
it was docked but in a custom dock where it sucks fresh air and not the heated air from the original dock.
below are the temperatures i got. one with stock clocks and one overclocked to 2 ghz.

would be very nice if somebody took those 10 minutes :)

thx in advance =)
stress.png

There you have it, stressed, waited 5min, stressed again.

Edit: Oh, fully stock paste (never opened), official dock.
 
Last edited by ZeroFX,
  • Like
Reactions: Eduba

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
@bylaws does this kernel has kvm virtualization enabled? I tried to use with qemu but nope, or maybe switch cant handle/doesnt support it so its a no go?
The module is in the kernel, so it should work. I do know there are issues with some versions of qemu. One of the many issues I ran in to trying to cross compile gentoo for the switch.
Did you already give Kodi a spin?
As developers we focus on one piece at a time. Kodi uses all of the pieces, but mainly video card support, so if that is supported, then kodi will work.
 
  • Like
Reactions: Bst22322

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Quick Update on Gentoo4Tegra. I currently have openGL,Vulkan, and audio support. I am still having issues with GLES/GLES2, and havnt even gotten started on openmax support. That being said, I think the base build is far enough along, that I would be expecting a release soon. I still have to test dock support, and I wrote an eselect module for easy dock profile changing(Meaning that if you didnt like the default dock handler script, you put yours in a folder, and now you can switch between them with one command, and dont need to worry about messing with the system.) I plan on writing a udc handler as well, but that wont happen until I build my boot chain/kernel(Currently using same bootchain as l4t, as I am not sure about the sc7fw file, and where to get that. Once my discord invite is not expired(Not sure why that is, I will ask about that, also curious about the tlk branch of coreboot, but that is more dev stuff. lol)

This build will come with a lot of specific instructions, and is considered proof of concept, and not finished. I just want to get it out there so other people can build upon it as well. And who knows, when I get bored, I might try porting other distros that support arm64. those might be easier, since I probably dont have to compile them all from the ground up. lol.
 

Goffrier

Well-Known Member
Member
Joined
Dec 19, 2018
Messages
181
Trophies
0
Age
44
XP
428
Country
United States
so im using this to host a private mc server for my friend the problem is that i can only allocate 1gb of ram in java for the server higher results in:
mc@mc-laptop:~/minecraft$ java -Xmx2024M -Xms2024M -jar minecraft_server.jar nogui
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000081800000, 2122317824, 0) failed; error='Not enough space' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2122317824 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/mc/minecraft/hs_err_pid14546.log
 

BruhBoy

Well-Known Member
Newcomer
Joined
May 3, 2019
Messages
46
Trophies
0
Age
54
XP
103
Country
United States
So does this ban your switch if you go online to the Nintendo firmware without 90 dns.? Meaning can I boot Ubuntu then (if I wanted to) restart the switch into hekate and boot original firmware without getting banned?
 

Refriger8tor

Well-Known Member
Member
Joined
Sep 2, 2013
Messages
135
Trophies
0
Location
A kitchen near you.
XP
458
Country
United States
So does this ban your switch if you go online to the Nintendo firmware without 90 dns.? Meaning can I boot Ubuntu then (if I wanted to) restart the switch into hekate and boot original firmware without getting banned?
You won't get banned. It never connects to Nintendo's servers
 
  • Like
Reactions: Gavin_Darkglider

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
So does this ban your switch if you go online to the Nintendo firmware without 90 dns.? Meaning can I boot Ubuntu then (if I wanted to) restart the switch into hekate and boot original firmware without getting banned?

Personally, I think if you are worried about getting banned, hekate probably isnt the best way to boot stock. Any thing past 7.x(I think) requires sept, and exosphere to generate keys. I am not sure if after this it jumps to the stock trustzone or not. I didnt look, but I think the safest way to boot stock is to coldboot with out autorcm. As far as linux goes, I dont even think it l4t even sees the on board mmc that the stock system uses, so no data is ever stored to your switch.
 

globalc

Member
Newcomer
Joined
Jun 14, 2019
Messages
21
Trophies
0
Age
49
Website
fluxcoil.net
XP
116
Country
Japan
Is CentOS on Switch a possibility?
Yes. I am running Fedora30 userland with the L4T kernel, and LXDE as window manager.
Also the EL8 userland works, but there is not yet CentOS8. Fedora27 and later work, so CentOS7 userland should also do.

I looked into compiling the L4T kernel sources on Fedora30. It comes with GCC9, but the tegra patches in the L4T kernel sources do not play well with that GCC. My notes on Fedora30/switch are public on the internet, I can not post the link here because of the newbie status.
 
  • Like
Reactions: Gavin_Darkglider

RiceAlex

Member
Newcomer
Joined
May 6, 2019
Messages
17
Trophies
0
Age
26
XP
90
Country
China
so im using this to host a private mc server for my friend the problem is that i can only allocate 1gb of ram in java for the server higher results in:
mc@mc-laptop:~/minecraft$ java -Xmx2024M -Xms2024M -jar minecraft_server.jar nogui
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000081800000, 2122317824, 0) failed; error='Not enough space' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2122317824 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/mc/minecraft/hs_err_pid14546.log
Turn on swap
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: damn wifi