Hacking Ubuntu 18.04 on a Switch

Fluffball

Well-Known Member
Newcomer
Joined
Mar 7, 2018
Messages
51
Trophies
0
Age
34
XP
99
Country
United Kingdom
Now this has got me excited ,never tried Archlinux and don't ever plan to just give me trusty ole ubuntu please!

Btw is it true that mesa/nouveau on maxwell doesn't yet support video acceleration? Link

The X1 being based off maxwell?
 

roothorick

Well-Known Member
Newcomer
Joined
Jan 30, 2008
Messages
51
Trophies
0
XP
479
Country
United States
Now this has got me excited ,never tried Archlinux and don't ever plan to just give me trusty ole ubuntu please!

Btw is it true that mesa/nouveau on maxwell doesn't yet support video acceleration? Link

The X1 being based off maxwell?

The X1 GPU is Maxwell. Same architecture, same drivers, same firmware, I think it's even on a literal PCIe bus. That's why we got hardware 3D basically day-1 -- the work was already done. (That, and the X1 has appeared in a handful of Android devices, so actually, all the SoC drivers were completed, refined and matured before anyone got started.)

The lack of 2D support is pretty irrelevant today, since everyone uses desktop compositors anyway and even most ostensibly 2D programs (most notably Kodi) are actually using OpenGL under the hood.
 
Last edited by roothorick,

cmsj

Well-Known Member
OP
Newcomer
Joined
Apr 25, 2018
Messages
61
Trophies
0
Age
46
XP
223
Country
United Kingdom
If I understand I need to download an ubuntu image and I need to use the script in nintendo switch ubuntu builder ?
I'm not distributing images yet because not enough stuff is working, but hopefully we're getting close (I think just figuring out the rotation stuff would be enough to get this minimally publishable with a lot of caveats)
 

Pickle_Rick

I'm a pickle Morty!
Member
Joined
Aug 28, 2017
Messages
694
Trophies
0
Age
27
Location
Garage
XP
1,469
Country
United States
This is the bare bones so far. No WiFi (although there seems to be a general problem there anyway) and no HW acceleration. No bluetooth. Volume buttons work out of the box, the ambient light sensor works (annoyingly, it keeps massively over-reacting the screen brightness). It's almost unusuably slow, but I'm going to keep chipping away at it, and I'll post an image somewhere when it's at least vaguely usable.
Maybe use Lubuntu or Xubuntu instead. Gnome isn't known for being the fastest DE. Lol.
 
  • Like
Reactions: Justeego

cmsj

Well-Known Member
OP
Newcomer
Joined
Apr 25, 2018
Messages
61
Trophies
0
Age
46
XP
223
Country
United Kingdom
Anyone tried the Pixel C thing to improve RAM? I'm working on building it into the kernel, so I'll see if it makes much difference in performance.

I didn't compare with/without, but I did include it when building the f0f toolchain I'm using.

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

Maybe use Lubuntu or Xubuntu instead. Gnome isn't known for being the fastest DE. Lol.

I started out with LXDE (so Lubuntu) and it's too bare bones and not as well suited to touch as Gnome IMO. Xubuntu might be worth trying, but really the hardware support is more important to get going I think.
 

Baoulettes

The lonely man
Member
Joined
May 25, 2011
Messages
836
Trophies
1
Age
33
Location
C:\Users\Baoulettes\Desktop\GBATemp
Website
www.baoulettes.fr
XP
2,286
Country
France
just to show that it work :)
wZRWXU6.jpg

it still have few issue but well that still the early days and considering that we can count these days over our hands that amazing the progress !
Just if I may suggest would it be possible to have a ''clean'' build without dolphin etc.
I am sure not all want it as gaming station (I hope to not be the only one...)

Like for example I want it clean so I can install what I wish to for example vlc etc I would use as book reader and video/music player :)
Also is there a tutorial to make wifi working somewhere?
Lastly seem like Nautilus is making the system to ''freeze''
 
Last edited by Baoulettes,

Baoulettes

The lonely man
Member
Joined
May 25, 2011
Messages
836
Trophies
1
Age
33
Location
C:\Users\Baoulettes\Desktop\GBATemp
Website
www.baoulettes.fr
XP
2,286
Country
France
Then how do you all get to the desktop?
You need to change orientation of the system to portrait right (or left if you want upside down so the usb port is at the upper part of the screen)
this way virtual keyboard will be accessible.
Also in normal orientation it should also be accessible if you try to touch the password field.
DjIIRci.jpg

in case you somehow happen to get the keyboard, the password is switch no caps no space just switch
 
Last edited by Baoulettes,

Baoulettes

The lonely man
Member
Joined
May 25, 2011
Messages
836
Trophies
1
Age
33
Location
C:\Users\Baoulettes\Desktop\GBATemp
Website
www.baoulettes.fr
XP
2,286
Country
France
@Pinda

Okay, if that not the case I suggest to download that on you linux based machine or virtual machine (for me it was ubuntu with vmware)
1.
Download that files somewhere you have permissions.
https://signkb.com/download/bionic.tgz

2.
Follow tutorial to launch linux on switch about preparing the SD to have one tiny partition and the second that will hold your linux. (but stop when it tell you to extract your image)

3.
Then you will extract that image to your SD second partition. (bionic.tgz)
Code:
cd /path/to/archive/folder
sudo tar xvf bionic.tgz -C /path/to/sd/mount/point

example :
Code:
cd /ubuntu
sudo tar xvf bionic.tgz -C /osboxes/media/LinuxSDCard
osboxes is my username
LinuxSDCard is the name of the second partition.
It will take some moment (sudo is required there for me !)

4.
once that done you need to copy that image (bionic.tgz) into SD Card root folder (not root of SD Card but the folder named 'root')
Code:
sudo cp bionic.tgz /path/to/sd/mount/point/root

so for me it looked like that :
Code:
sudo cp bionic.tgz /osboxes/media/LinuxSDCard/root

once all that done you can boot it via the command from other thread here it is without explain just check the other thread tutorial how to boot linux :)

Code:
cd shofel2/exploit && sudo ./shofel2.py cbfs.bin ../../coreboot/build/coreboot.rom && cd .. && cd ..
cd shofel2/usb_loader &&  ../../u-boot/tools/mkimage -A arm64 -T script -C none -n "boot.scr" -d switch.scr switch.scr.img && sudo ../../imx_usb_loader/imx_usb -c .

if you have all things setup like I did it should work if not check that thread:
[QUICK TUTO] How to boot Linux on your Switch
 
Last edited by Baoulettes, , Reason: some typos fix

cmsj

Well-Known Member
OP
Newcomer
Joined
Apr 25, 2018
Messages
61
Trophies
0
Age
46
XP
223
Country
United Kingdom
Hey, sorry for the probably pretty stupid question.
I've installed Ubuntu but how do I get past the login bash without input?

If you're seeing a text prompt then for some reason you're not starting X (the graphical display). Did you build with my script?

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

How much work would be required to go for a different DE ? F0F seems to have shown KDE Plasma

You'd install some different packages when the image is being generated and probably that's about it, other than things like getting the rotation right.

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

hands that amazing the progress !
Just if I may suggest would it be possible to have a ''clean'' build without dolphin etc.
I am sure not all want it as gaming station (I hope to not be the only one...)

Yeah this is a good point, I jsut shoved those things in so I could play with them, but we could make it optional.

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

I’ve been poking around with the f0f boot chain and I think it should be possible to move the kernel and device tree images onto the SD card and use them to boot, which raises two possibilities:

  1. We can host kernels in a PPA
  2. The kernel can potentially have modules (where the f0f has everything built in and you can’t load any optional modules)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: good night