!RjBlCIbsLDzHBIzmaA:nixos.org

NixOS on ARM

519 Members
NixOS on ARM: now with more ARM! — Support: AArch64 is supported and cached; armv6 and armv7 are best effort, without any official cache. — Documentation: https://nixos.wiki/wiki/NixOS_on_ARM — Community build box: https://github.com/nix-community/aarch64-build-box → build box status: https://status.nixos.org/grafana/d/5LANB9pZk/per-instance-metrics?orgId=1&refresh=30s&var-instance=147.75.77.190 —163 Servers

Load older messages


SenderMessageTime
18 Aug 2022
@k900:0upti.meK900 (rk3588 when)I'm not sure how to identify them18:03:08
@k900:0upti.meK900 (rk3588 when) * I'm not sure how to identify them18:03:12
@k900:0upti.meK900 (rk3588 when) And then you can add an overlay that has that node as a target and status = "okay"; 18:03:30
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how

Usually it goes in config.txt as

# Enable the audio output, I2C and SPI interfaces on the GPIO header
dtparam=audio=on
dtparam=i2c_arm=on
dtparam=spi=on
18:03:53
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how *

Usually it goes in config.txt as

# Enable the audio output, I2C and SPI interfaces on the GPIO header
dtparam=audio=on
dtparam=i2c_arm=on
dtparam=spi=on
18:03:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howBut that requires using their firmware right?18:04:01
@k900:0upti.meK900 (rk3588 when)Those just add some more device tree overlays18:04:16
@k900:0upti.meK900 (rk3588 when)You can try and yoink those18:04:21
@samueldr:matrix.orgsamueldr (it's way fewer chars to remember to dtc --sort /proc/device-tree) 18:04:27
@samueldr:matrix.orgsamueldr
In reply to@k900:0upti.me
You can dtc /sys/firmware/devicetree/base -s to dump the entire device tree
* (it's way fewer chars to remember to dtc --sort /proc/device-tree)
18:04:36
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how Yeah I'm definitely in a bit of a pickle, as I need to quickly make a Pi that can use flashrom to extract data from an SPI flash chip, might have to resort to raspbian 😢 18:04:55
@k900:0upti.meK900 (rk3588 when)https://github.com/raspberrypi/linux/tree/rpi-5.15.y/arch/arm/boot/dts/overlays18:04:56
@k900:0upti.meK900 (rk3588 when)From here18:04:58
@k900:0upti.meK900 (rk3588 when)There's a chance they'll apply to mainline18:05:25
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howDo the names have to match?18:06:09
@k900:0upti.meK900 (rk3588 when)Yes18:06:38
@k900:0upti.meK900 (rk3588 when)The names of the nodes that is18:06:43
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howhttps://github.com/georgewhewell/nixos-host/blob/master/machines/armv7l/bananapi-m3/configuration.nix#L1018:06:49
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howHere's an example of someone doing it for a banana pi 18:06:56
@k900:0upti.meK900 (rk3588 when)Oh yeah don't even try that18:07:07
@k900:0upti.meK900 (rk3588 when)DTs are completely hardware specific18:07:19
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howyeah I mean the nix code, not the actual dtb18:07:29
@k900:0upti.meK900 (rk3588 when)The nix part you can just yoink from https://github.com/NixOS/nixos-hardware/blob/master/raspberry-pi/4/modesetting.nix#L3718:07:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how Once we figure this out, should we just add it to nixos-hardware as hardware.raspberry-pi."4".spi.enable or something? 18:09:22
@k900:0upti.meK900 (rk3588 when)Would be nice18:09:46
@k900:0upti.meK900 (rk3588 when)Assuming it actually works on mainline18:09:49
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howIt's like the only thing that's missing, by the looks of it 18:10:05
@k900:0upti.meK900 (rk3588 when)Also we should probably drop the fkms stuff once 6.0 is out18:10:13
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howi2c, dwc, even the GPU now seems to work 18:10:13
@k900:0upti.meK900 (rk3588 when)Just to make it clear we don't want people running this on vendor18:10:46

There are no newer messages yet.


Back to Room ListRoom Version: 6