-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Steam Deck Support #34
Conversation
https://lists.freedesktop.org/archives/systemd-devel/2022-October/048426.html
|
It's in a good enough state I'd install it on my own device now, in fact I will tomorrow. :) |
... Github Actions isn't building the right checkout? What? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it and it seemed to work. Rebooted and it still worked, too! Some doc comments went missing, so I added suggestions for them below.
One thing that could be improved overall is that we never tell the user they may need to reload their environment (by opening a new terminal or exec $SHELL
or something). If you run it without -v
, it just silently exits (which is fine, though I would like some indication that it completed successfully by default...), and if you try to nix-shell
right after that, it won't work and the user is left guessing if it actually completed, or if something went wrong. I'll make a ticket about this.
Failed CI because there's no buildkite stuff setup in this branch. I think that's fine. |
Thank you for the fixes! :) |
The Steam Deck has a read-only root, so it demands some special attention. This is also a good way to test plan flexibility.
Testing instructions are in
src/planner/linux/steam_deck.rs
and copied here:One time step:
Grab the SteamOS: Steam Deck Image from https://store.steampowered.com/steamos/download/?ver=steamdeck&snr=
Extract it (this can take a bit)
Create a disk image
Start a VM to run the install onto the created disk
Note:
Pick "Reimage Steam Deck". Important: when it is done do not reboot the steam deck, hit "Cancel"
Run
sudo steamos-chroot --disk /dev/nvme0n1 --partset A
and inside run thisRun
sudo steamos-chroot --disk /dev/nvme0n1 --partset B
and inside run the same above commandsSafely turn off the VM!
Repeated step:
nix build "nixpkgs#legacyPackages.x86_64-linux.OVMF.fd" --out-link ovmf qemu-system-x86_64 -enable-kvm -smp cores=4 -m 8G \ -device usb-ehci -device usb-tablet \ -device intel-hda -device hda-duplex \ -device VGA,xres=1280,yres=800 \ -drive if=pflash,format=raw,readonly=on,file=ovmf-fd/FV/OVMF_CODE.fd \ -drive if=pflash,format=raw,readonly=on,file=ovmf-fd/FV/OVMF_VARS.fd \ -drive if=virtio,file=steamos-hack.qcow2 \ -device virtio-net-pci,netdev=net0 \ -netdev user,id=net0,hostfwd=tcp::2222-:22
ssh deck@localhost -p 2222
in and usersync -e 'ssh -p 2222' result/bin/harmonic deck@localhost:harmonic
to send a harmonic build.steamos-hack.qcow2