Skip to content
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 raspberry-pi 0 and 3 #93

Closed
wants to merge 1 commit into from
Closed

add raspberry-pi 0 and 3 #93

wants to merge 1 commit into from

Conversation

matthewbauer
Copy link
Member

Based off of 2.

Based off of 2.
@Mic92
Copy link
Member

Mic92 commented Jan 9, 2019

Please also add a link to the README: https://github.com/NixOS/nixos-hardware#profiles

# cpufrequtils doesn't build on ARM
powerManagement.enable = lib.mkDefault false;

services.openssh.enable = lib.mkDefault true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move the content to raspberry-pi/default.nix for all versions and only import the default.nix here for better sharing. It is still good to list every generation explicit however because then people don't need to change anything in case we change something for a particular model.

@Mic92
Copy link
Member

Mic92 commented Jan 9, 2019

Have you tested rpi 1 so?

@Mic92
Copy link
Member

Mic92 commented Jan 9, 2019

the wiki recommend the latest kernel for rpi2/rpi3:
https://nixos.wiki/wiki/NixOS_on_ARM

@Mic92
Copy link
Member

Mic92 commented Jan 9, 2019

cc @samueldr

@samueldr
Copy link
Member

As far as the kernel is concerned, when the wiki pages were authored, there was no AArch64 builds of the rpi variant of the kernel.

I do not know what is expected from this repository, but I guess defaulting to the rpi kernel is fine. Though I guess the NixOS ARM wiki will, on the main page, always default to mainline (mainline is a goal to achieve) and on device-specific pages will list other kernels available.

Other than mainline/rpi everything looks fine, but I believe the serial interface (here ttyAMA0) is not the same for mainline (it's ttyS1), so it's something to keep in mind, maybe could be documented?

};
};

nix.buildCores = 4;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the device has 4 cores it has less than a 1GB of memory and will run out of memory like this.


nix.buildCores = 1;

nixpkgs.config.platform = lib.systems.platforms.raspberrypi;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hostPlatform?


nixpkgs.config.platform = lib.systems.platforms.aarch64-multiplatform;

services.openssh.enable = lib.mkDefault true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a hardware profile, so it should not include service configurations, like SSH.

@mweinelt
Copy link
Member

How about enabling zram-swap by default, to compensate for the imbalance between processor cores and available memory?

@Mic92
Copy link
Member

Mic92 commented Jul 28, 2020

Looks like this PR got stalled. If someone wants to take this over, please feel free to make a new pull request.

@Mic92 Mic92 closed this Jul 28, 2020
@edrex
Copy link

edrex commented Feb 6, 2021

I just installed on an RPi3 and the existing wiki documentation about what kernel to use is out of date. Mainline works after fix for NixOS/nixpkgs#97064. Guess I should get out of my comfort zone and make the edits

The line between what should go in nixpkgs vs nixos-hardware seems fuzzy. Are people concerned about community fragmentation weakening the center with moving to flakes?

@edrex
Copy link

edrex commented Feb 6, 2021

OT, I know. I'm posting here because I'm wondering if I should pick up this PR and dust it off. It would basically be the contents of the arm config template on the wiki (which is what currently says to use old kernel on pi3).

@Mic92
Copy link
Member

Mic92 commented Feb 6, 2021

this is relevant in this regard: NixOS/rfcs#70

@Mic92
Copy link
Member

Mic92 commented Feb 6, 2021

OT, I know. I'm posting here because I'm wondering if I should pick up this PR and dust it off. It would basically be the contents of the arm config template on the wiki (which is what currently says to use old kernel on pi3).

I can test it.

@yu-re-ka yu-re-ka deleted the rpi branch September 21, 2022 13:41
@yu-re-ka yu-re-ka restored the rpi branch September 21, 2022 13:41
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/raspberrypi-3b-nixos-24-05/34379/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants