-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
enable NixOS installer for powerpc64le #192672
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghost
mentioned this pull request
Sep 24, 2022
ghost
marked this pull request as draft
September 26, 2022 04:25
ghost
changed the title
nixos/installer: add sd-image-powerpc64le.nix
enable NixOS installer for powerpc64
Sep 26, 2022
ghost
marked this pull request as ready for review
September 26, 2022 06:15
ghost
changed the title
enable NixOS installer for powerpc64
enable NixOS installer for powerpc64le
Sep 26, 2022
This was referenced Sep 26, 2022
ghost
mentioned this pull request
Oct 10, 2022
ghost
marked this pull request as draft
January 5, 2023 09:32
Rebased. |
ghost
marked this pull request as ready for review
January 5, 2023 11:28
ofborg
bot
added
10.rebuild-darwin: 0
10.rebuild-linux: 1-10
and removed
10.rebuild-darwin: 501+
labels
Jan 5, 2023
ofborg
bot
removed
10.rebuild-darwin: 1001-2500
10.rebuild-linux: 501+
10.rebuild-linux: 5001+
labels
Jan 5, 2023
github-actions
bot
added
6.topic: pantheon
The Pantheon desktop environment
and removed
6.topic: pantheon
The Pantheon desktop environment
labels
Jan 5, 2023
Rebased past the recent manual-building glitch, dropped the hacky workaround for that. |
ghost
marked this pull request as draft
January 6, 2023 23:49
All the dependencies of this PR have merged; Still builds and boots; good to go. |
ghost
marked this pull request as ready for review
January 7, 2023 03:21
wegank
approved these changes
Jan 24, 2023
wegank
reviewed
Feb 1, 2023
wegank
reviewed
Feb 1, 2023
This builds on top of nixpkgs mainline 00d8347 with the following two PRs cherry-picked: - #192670 - #192668 using the following command: ``` nix build -f nixos -L \ -I nixos-config=nixos/modules/installer/sd-card/sd-image-powerpc64le.nix \ config.system.build.sdImage ``` I was able to successfully boot the image, although it boots to a login prompt rather than a shell, and won't accept the empty password for `root`. I guess I'll have to figure out why that is. To boot the image: `zstd`-decompress the it, mount it, and use `kexec`: ``` cd boot/nixos kexec -l \ *-vmlinux \ --initrd *-initrd \ --dt-no-old-root \ --command-line="$(grep APPEND ../extlinux/extlinux.conf | sed 's_^ *APPEND *__')" ``` The machine I used for testing has only one storage device which is completely allocated to LVM. It appears that the NixOS ISO loader doesn't look for partition tables within LVM volumes. To work aroundn this, I had to extract the `ext4` image within the partition table within the `sd-card` image and put that in its own LVM volume. This likely won't be an obstacle for users who write the image to a USB stick or similar.
ghost
deleted the
pr/nixos/sd/powerpc64le
branch
February 23, 2023 05:16
ghost
mentioned this pull request
Jul 31, 2023
12 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It boots! And
petitboot
(the bootloader) even recognizes the syslinux table, sonixos-rebuild switch -p
should work.Screenshots are taken from the machine running
minicom
, connected to the serial console; all of my PowerPC machines are headless at the moment.To get the results above, download a statically built
nix
for powerpc64le and do the following:I built from nixpkgs mainline at 3ad7b8a, but it should work at any commit after that.
Things done