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,

avoy

New Member
Newbie
Joined
Jun 11, 2019
Messages
3
Trophies
0
Age
32
XP
54
Country
United States
Is CentOS on Switch a possibility?

In theory it can be. I believe I saw a post talking about RHEL/CentOS on Jeston

EDIT: obviously don't quote me on this. I recall something about having to specifically get the packages installed, and in a specific order. This was also for jetson. I don't think older vers of CentOS will have the aarch and arm64 packages required, etc. etc.
 
Last edited by avoy,

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
only happened once so far, but it woke up from sleep mode (i assume) when it automatically logged out, after 10 min i think. i'll change auto logout in settings and see if it happens again.
 

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
so i turned off auto logout, and it still woke up (logged out anyway) after about 10 min. i changed auto logout to an hour, and it still woke up after the same amount of time. i'll keep testing.
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Before I ask my question, I want to preface this with some information. I have applied all patches, and even loaded into L4T twice, did an update and upgrade and installed some other things. I was able to reboot it only once and get into L4T after this.
Question:
Has anyone ran into the problem where they are having issues with booting? I have gotten into L4T, ran updates and upgrade as well as installed zsh, a few other things and moved some py scripting stuff I have been messing with over (doesn't mess with anything system related.) and I cannot seem to get the switch to boot into L4T again. I've tried restarting it 5-10 times (as stated in this thread multiple times, and probably over 20 at this point) and I can get the L4T readme to be recognized on my PC, but the switch remains with a black screen. Any ideas? I am sure I have missed something in the 80+ pages here, so I apologize if I missed something that covers this issue.

Thanks :)

EDIT: To this, I can still SSH in over usb, but it takes around 45 seconds to make a connection, and another 3-4 to recognize a command and spit to stdout.
EDIT2: Demo gods have spared me, and the next reset I tried worked. To anyone else that gets this error, just keep restarting my guy, youll get there eventually lol
The booting issues, isnt an issue with booting, but an issue with xorg crashing. Since fbconsole doesnt work, the screen stays black.

Is CentOS on Switch a possibility?
Yes, assuming there is an arm64 version.
so i turned off auto logout, and it still woke up (logged out anyway) after about 10 min. i changed auto logout to an hour, and it still woke up after the same amount of time. i'll keep testing.
The auto logout issue has nothing to do with auto logout. It has to do with X server crashing on sleep resume. I noticed this while I was using l4t ubuntu to build the base for l4t Gentoo. Yes, I compiled it all on the switch. Ironically, it was faster than cross compiling, or building in an emulator.
I'm using the official dock.
I will check this out, and get back to you.

edit: I plugged the switch into the dock, and the console saw the hub, but didnt see some of the devices. Which makes me think there are certain usb drives that need a special driver, or a firmware file is missing for the driver for your device. I didnt look that close, just tried a few devices, and some of them show up, and others dont. I will look into it when I build my own kernel.
 
Last edited by Gavin_Darkglider,
  • Like
Reactions: Watermelonz

epicmartin7

Well-Known Member
Member
Joined
Aug 5, 2015
Messages
425
Trophies
0
Age
24
XP
991
Country
United States
Hm... quick question. Considering the NES/SNES Classic OS's are basically Linux down to their core, how possible would it be to boot those via L4T?
 
D

Deleted User

Guest
Is it possible to reboot to payload when on Ubuntu?
Not yet

Hm... quick question. Considering the NES/SNES Classic OS's are basically Linux down to their core, how possible would it be to boot those via L4T?
There's no point, lakka uses L4T now, nobody in their right mind would try and do what you ask when there's lakka

Will android need a partition like l4t?
Who knows, lakka keeps everything on 1 partition, although I can't see android playing ball running on fat32, it just doesn't smack of "worth it" to me
 

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Who knows, lakka keeps everything on 1 partition, although I can't see android playing ball running on fat32, it just doesn't smack of "worth it" to me

Actually lakka keeps everything in on compressed initrd image, that is decompressed and loaded into ram by u-boot, and the kernel uses that as root. In that root there are links(Shortcuts) to folders on the actual partition(For roms, and bios files, and settings). this option works for lakka, as it is a minimal linux, just enough to run retroarch. Remember there are only 4gb of ram on the switch, so if you fill it up before the os boots, then you have none for the system to use for applications. In that sense alone, if the android root is smaller than 1 gb, then I would say it is possible.
 
  • Like
Reactions: Deleted User
D

Deleted User

Guest
Actually lakka keeps everything in on compressed initrd image, that is decompressed and loaded into ram by u-boot, and the kernel uses that as root. In that root there are links(Shortcuts) to folders on the actual partition(For roms, and bios files, and settings). this option works for lakka, as it is a minimal linux, just enough to run retroarch. Remember there are only 4gb of ram on the switch, so if you fill it up before the os boots, then you have none for the system to use for applications. In that sense alone, if the android root is smaller than 1 gb, then I would say it is possible.


Ah yeah, forgot about that
Just seems like an unnecessary thing to do, as inconvenient as having to wipe an sd to get l4t ubuntu can be for people (who only have 1 SD with nintendo stuff taking up space, they'd have to backup and put back once fat32 partition is resized), it's probably the better option to have something you'd treat as a proper OS run on something like ext4, at least to get away from that 4GB filesize issue

Reason I'm saying this is that I don't think android would be or needs to be treated in the same way lakka is right now, it's cool the way it works but android is getting into full-fat OS territory
 
  • Like
Reactions: Gavin_Darkglider

epicmartin7

Well-Known Member
Member
Joined
Aug 5, 2015
Messages
425
Trophies
0
Age
24
XP
991
Country
United States
There's no point, lakka uses L4T now, nobody in their right mind would try and do what you ask when there's lakka
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.
 
  • Like
Reactions: ZeroFX

Gavin_Darkglider

Well-Known Member
Member
Joined
May 20, 2019
Messages
232
Trophies
0
Age
34
XP
581
Country
United States
Quick update on my Gentoo build: Working Vulkan, and OpenGL, Sound is being a pain, and still doesnt work, even though alsa, and pulse audio see the card, though alsamixer has some strange things I have never seen there before for this card, none of them for volume. lol. GLES/GLESv2 are still not working either, and neither is cuda, as I cant seem to find the cuda-toolkit for the jetson nano. I think it is in the jetpack release, but I havnt checked yet. For now, I am going to work on audio, then I think I will release th base build.

also for those of you who are having issues with l4t sometimes booting, sometimes not booting, I found that if you boot horizon, then power off and boot back into l4t it works 100% of the time, so something is off somewhere in the boot code.
 
Last edited by Gavin_Darkglider,

Musc

New Member
Newbie
Joined
Jun 12, 2019
Messages
1
Trophies
0
Age
43
XP
54
Country
Germany
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 =)
 

Attachments

  • overclockedto2ghz.png
    overclockedto2ghz.png
    40.4 KB · Views: 139
  • stockClocks.png
    stockClocks.png
    41.2 KB · Views: 132

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • ZeroT21 @ ZeroT21:
    it wasn't a question, it was fact
  • BigOnYa @ BigOnYa:
    He said he had 3 different doctors apt this week, so he prob there. Something about gerbal extraction, I don't know.
    +1
  • ZeroT21 @ ZeroT21:
    bored, guess i'll spread more democracy
  • LeoTCK @ LeoTCK:
    @K3Nv2 one more time you say such bs to @BakerMan and I'll smack you across the whole planet
  • K3Nv2 @ K3Nv2:
    Make sure you smack my booty daddy
    +1
  • LeoTCK @ LeoTCK:
    telling him that my partner is luke...does he look like someone with such big ne
    eds?
  • LeoTCK @ LeoTCK:
    do you really think I could stand living with someone like luke?
  • LeoTCK @ LeoTCK:
    I suppose luke has "special needs" but he's not my partner, did you just say that to piss me off again?
  • LeoTCK @ LeoTCK:
    besides I had bigger worries today
  • LeoTCK @ LeoTCK:
    but what do you know about that, you won't believe me anyways
  • K3Nv2 @ K3Nv2:
    @BigOnYa can answer that
  • BigOnYa @ BigOnYa:
    BigOnYa already left the chat
  • K3Nv2 @ K3Nv2:
    Biginya
  • BigOnYa @ BigOnYa:
    Auto correct got me, I'm on my tablet, i need to turn that shit off
  • K3Nv2 @ K3Nv2:
    With other tabs open you perv
  • BigOnYa @ BigOnYa:
    I'm actually in my shed, bout to cut 2-3 acres of grass, my back yard.
  • K3Nv2 @ K3Nv2:
    I use to have a guy for that thanks richard
  • BigOnYa @ BigOnYa:
    I use my tablet to stream to a bluetooth speaker when in shed. iHeartRadio, FlyNation
  • K3Nv2 @ K3Nv2:
    While the victims are being buried
  • K3Nv2 @ K3Nv2:
    Grave shovel
  • BigOnYa @ BigOnYa:
    Nuh those goto the edge of the property (maybe just on the other side of)
  • K3Nv2 @ K3Nv2:
    On the neighbors side
    +1
  • BigOnYa @ BigOnYa:
    Yup, by the weird smelly green bushy looking plants.
    K3Nv2 @ K3Nv2: https://www.the-sun.com/news/10907833/self-checkout-complaints-new-target-dollar-general-policies...