View previous topic :: View next topic |
Author |
Message |
bell Guru
Joined: 27 Nov 2007 Posts: 514
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3888 Location: Rasi, Finland
|
Posted: Fri Jun 14, 2019 7:20 pm Post subject: |
|
|
Awesome! (Only posted to get notified.) _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
bell Guru
Joined: 27 Nov 2007 Posts: 514
|
Posted: Tue Jun 18, 2019 7:21 am Post subject: |
|
|
Missed the manpages in chroot today. Should I keep or remove the Code: | FEATURES="noman noinfo nodoc" # Usual embedded setup | for binhost packages?
EDIT 2019-06-20:
Updated binhost packages and the stage. (Renamed to stage3 now).
The stage contains buildtime-dependencies because some of them are essential (most notable is perl).
Binhost contains the distcc package for shared compiling between qemu-chroot (slow) and crossdev toolchain (faster).
The scripts updated also to reflect the changes.
EDIT 2019-06-21:
Removed the FEATURES="noman noinfo nodoc". The additional documentation requires small storage overhead but does not affect the runtime performance.
I considered to replace the -Os to -O2, but smaller binaries are faster on devices with slow storage (SD-cards are slow).
Recompiled all packages and also the stage file.
Added an switch overlay (currently empty) for the next target: switch-sources, with capability to provide binary kernel. |
|
Back to top |
|
|
gavin_darkglider1 n00b
Joined: 04 Nov 2017 Posts: 10
|
Posted: Wed Jun 26, 2019 1:48 pm Post subject: |
|
|
I left you a bunch of notes a copy of my make.conf, and an ebuild for the drivers in a PM on gbatemp. Let me know if you get that repo up, as to build there are some profile changes and use mask changes that need to be applied, and that would be much cleaner with a non local repo to push changes to others. |
|
Back to top |
|
|
bell Guru
Joined: 27 Nov 2007 Posts: 514
|
Posted: Thu Jun 27, 2019 6:30 pm Post subject: |
|
|
Next snippet done. Thanks to @gavin_darkglider1 for provided informations and examples!
New Ebuilds in Overlay:
sys-kernel/l4t-kernel
The ebuild downloads and compiles all reqired stuff to get working kernel image and /lib/modules
Note: not just unpack the sources, but use the default config, compile and install all
There is also the pre-compiled package in my binhost for the ebuild.
sys-firmware/jetson-tx1-firmware
Required to build the kernel above. Ebuild and Binhost package provided by gavin_darkglider1. The source package is not unpackeable by gentoo's bzip2 version, so the ebuild is not useable out of the box.
The boot chain is still incomplete. If done, I plan to try some gentoo specific optimizations and updates on kernel...
EDIT: 2019-07-08: First "release"-Package available. This "release" is just minimal booteable gentoo. Without any console, still heavy experimental. You cannto see anything on display or TV. How to test is described in https://github.com/bell07/bashscripts-switch_gentoo#first-boot. In short: you can edit wpa_supplicant.conf, then the gentoo on switch connects to wifi and you can access them trough ssh.
As said, the release is really useless, if you expect more, wait for @gavin_darkglider1 does release anything. He is along me. We work together, but with some different goals. I have to run in some issues he already solved at the first, to understand them. The boot chain is still incomplete. The generated tegra210-icosa.dtb does not boot, therefore in "release" package a working tegra210-nintendo-switch.dtb is used, "precompiled" from other distro.
EDIT: 2019-08-06: Recompiled all with gcc-7 for fully binary compatibility to nvidia blobs.
Next step: Move to gavin_darkglider1 overlay and handle in my the binhost related profile only. And of course further Kernel ebuild and config optimizations.. |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1334 Location: sweden
|
Posted: Sat Jan 07, 2023 8:43 am Post subject: |
|
|
hi .
grate to see a work with gentoo on nintendo switch . would you mind give me some more info how to get started :
1. if there is an ebuild for tegrarcm-gui?
2. the status of booting in to gentoo?
3.if possibe links to needed stuff in first topic would be nice
i have been working with fusee gelee with tegra3 quite a lot but dont think it is the same as on the switch.
regards hedmo |
|
Back to top |
|
|
bell Guru
Joined: 27 Nov 2007 Posts: 514
|
Posted: Tue Aug 08, 2023 6:48 am Post subject: |
|
|
Sorry for late answer, I do not get notifications currently.
1. There is no ebuild for Tegrarcm
I just use https://github.com/Qyriad/fusee-launcher (last master)
+ Launcher Script:
Code: | #!/bin/sh
logger "Run fusee-primary.bin"
/scripts/switch_launcher/fusee-launcher/fusee-launcher.py /scripts/switch_launcher/payloads/hekate_ctcaer.bin |
+ Udev Rule in /etc/udev/rules.d/20_nsw_payload_launcher.rules
Code: | ATTRS{idVendor}=="0955", ATTRS{idProduct}=="7321", RUN+="/scripts/switch_launcher/start_switch_payload.sh" |
Then hekate launches automatically if I connect my switch to my computer and enter RCM.
2. I am able to boot into XFCE and play Supertux using connected joycons. There are still some issues, but such a project thrives on participation.
Current caveat is https://bugs.gentoo.org/911375, the workaround is just keep the version of sys-process/procps from stage3.
3. I update the links in first post now |
|
Back to top |
|
|
bell Guru
Joined: 27 Nov 2007 Posts: 514
|
Posted: Fri Sep 15, 2023 10:42 am Post subject: |
|
|
Updated links in first message, since I updated the documentation, stage3 and created an Live Linux for "Classic" installation.
The Caveeat mentioned above is solved by glibc and gcc downgrade |
|
Back to top |
|
|
|