Conversation
This was referenced Sep 26, 2022
Author
|
Rebased. |
Author
|
Rebased past the recent manual-building glitch, dropped the hacky workaround for that. |
Author
|
All the dependencies of this PR have merged; Still builds and boots; good to go. |
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.
This file contains hidden or 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
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 -pshould 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
nixfor powerpc64le and do the following:I built from nixpkgs mainline at 3ad7b8a, but it should work at any commit after that.
Things done