Talk:NixOS on ARM/Raspberry Pi 4: Difference between revisions

imported>Jakimfett
Riot (talk | contribs)
Enabling the SPI: new section
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:


First follow the generic installation steps to get the installer image and install using the installation and configuration steps.
First follow the generic installation steps to get the installer image and install using the installation and configuration steps.
(Link to https://nixos.wiki/wiki/NixOS_on_ARM#Installation which itself links to
(Link to https://wiki.nixos.org/wiki/NixOS_on_ARM#Installation which itself links to
'''https://hydra.nixos.org/job/nixos/release-20.03/nixos.sd_image.aarch64-linux''')
'''https://hydra.nixos.org/job/nixos/release-20.03/nixos.sd_image.aarch64-linux''')
Until the generic image works, a temporary device-specific image is build on Hydra. Note that this image is not using u-boot, but rather the Raspberry Pi specific bootloader configuration.
Until the generic image works, a temporary device-specific image is build on Hydra. Note that this image is not using u-boot, but rather the Raspberry Pi specific bootloader configuration.
Line 32: Line 32:


I know my path led past here, which is why I'm posting, but I know it involved a lot of negotiating with Hydra's willingness to purge long-running queries and finding a way to list successful sd_image_new_kernel.aarch64-linux builds (maybe via [https://hydra.nixos.org/search?query=nixos-sd-image-21.11pre this query?]. Following that logic has been somewhat of a mixed bag, eg today I've unsuccessfully attempted to get both [https://hydra.nixos.org/build/154444353 build #154444353] and [https://hydra.nixos.org/build/154444322 build #154444322] to run.
I know my path led past here, which is why I'm posting, but I know it involved a lot of negotiating with Hydra's willingness to purge long-running queries and finding a way to list successful sd_image_new_kernel.aarch64-linux builds (maybe via [https://hydra.nixos.org/search?query=nixos-sd-image-21.11pre this query?]. Following that logic has been somewhat of a mixed bag, eg today I've unsuccessfully attempted to get both [https://hydra.nixos.org/build/154444353 build #154444353] and [https://hydra.nixos.org/build/154444322 build #154444322] to run.
== Enabling the SPI ==
This section is confusing, mostly because it has factual errors and i can't get it to work.
For starters, it talks about <code>dtsoFile = ./spi0-0cd.dtso;</code>, which should probably be <code>dtboFile = ./spi0-0cs.dtbo;</code> (note the ''dtbo'' and ''cs'' part, the page mentions ''dtso'' and ''cd'') - at least that is my idea, if i look at the link's (below) target, which is <code>https://github.com/raspberrypi/firmware/blob/master/boot/overlays/spi0-0cs.dtbo</code>
Also, it is unclear on how one should ''change the <code>compatible</code> field'' in a dtbo-file - editing is only possible on their corresponding source files - while the text actually mentions ''dtbo'' here ;)
I've adapted my configuration to this but don't get any spi devices (nor does <code>spi</code> appear in dmesg). I'm also wondering wether using <code>boot.kernelPackages = pkgs.linuxPackages_rpi4;</code> is still relevant (it is mentioned in [https://github.com/NixOS/nixos-hardware/issues/565 nixos-hardware-issues/565]) while some other user claims that "using nixos-hardware wasn't necessary anymore" ([https://github.com/NixOS/nixos-hardware/issues/631#issuecomment-1584100732 nixos-hardware/issues/631] - maybe unrelated)
It would probably help, if someone knowledgeable can verify these instructions and in general clarify the confusions i mentioned.
Thanks in advance, [[User:Riot|Riot]] ([[User talk:Riot|talk]]) 21:44, 3 April 2024 (UTC)
Return to "NixOS on ARM/Raspberry Pi 4" page.