<samueldr> oh no
<samueldr> the key left of Z _is_ a 105th key, meaning that the actual key lost to the right of the keyboard _is_ hidden under a Fn combination
orivej has quit [Ping timeout: 258 seconds]
ryantrinkle has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 246 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Read error: Connection reset by peer]
jackdk_ has joined #nixos-aarch64
vcunat has joined #nixos-aarch64
jackdk_ has quit [Ping timeout: 244 seconds]
zupo has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 244 seconds]
zupo_ has quit [Quit: Textual IRC Client: www.textualapp.com]
zupo has joined #nixos-aarch64
jackdk_ has joined #nixos-aarch64
orivej has joined #nixos-aarch64
jackdk_ has quit [Ping timeout: 246 seconds]
st4ll1 has quit [Ping timeout: 252 seconds]
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 258 seconds]
ryantrinkle has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo_ has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 245 seconds]
st4ll1 has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackdk_ has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 255 seconds]
orivej has joined #nixos-aarch64
jackdk_ has quit [Remote host closed the connection]
vcunat has quit [Quit: Leaving.]
ryantrinkle has joined #nixos-aarch64
pbb has joined #nixos-aarch64
<pbb> does anyone know how to load a device tree overlay with NixOS on the Raspberry Pi 3B+?
<pbb> I'm trying to use the hifiberry amp+. I added dtoverlay=hifiberry-amp to firmwareConfig, but I can not see any additional messages in dmesg
<pbb> (and the driver isn't loaded, the device doesn't show up in aplay -l and even when I load the driver, nothing happens)
<pbb> I tested if it's a problem with aarch64 by running ArchLinuxARM on it with the aarch64 rpi kernel, and there it worked
<samueldr> are you using the raspberry pi kernel or the mainline kernel on NixOS (since you said the rpi kernel for alarm)
<samueldr> and then, if your rpi is still botting using u-boot, I do not know what will happen with regards to dtoverlay set in config.txt
<samueldr> u-boot as configured within nixos will load device trees
<samueldr> (I'm sorry, I don't know much more, still is an unresolved question to me, been busy with other things)
<pbb> samueldr: I am using the raspberry pi kernel on purpose, because I think the mainline kernel is missing the necessary overlays
<samueldr> most likely yes, just sanity checking :)
<samueldr> might be interested in this PR https://github.com/NixOS/nixpkgs/pull/60422
<{^_^}> #60422 (by kwohlfahrt, 2 weeks ago, open): nixos/hardware.deviceTree: new module
<pbb> It really seems like anything in config.txt is ignored
<samueldr> highly likely it's not, but being overridden/clobbered by u-boot
<samueldr> might also be interested in this kernel module https://github.com/ikwzm/dtbocfg
<samueldr> with my initial testing, it seemed to work
<samueldr> (though in my case I was purposefully using the mainline kernel)
<pbb> interesting
<pbb> in addition to FDTDIR it sets FDT in the extlinux conf
<pbb> I'll try that
<pbb> with the rpi kernel the overlays are there and so on, just they don't get loaded. maybe that's the catch
<samueldr> yes, with the generic distro thing in u-boot, when FDTDIR it _will_ load the FDT (dtb) from disk, and even fail booting if it can't find the one it expects
<samueldr> I'm pretty sure that FDTDIR will not allow adding overlays, but haven't verified
<pbb> "U-Boot only supports a DTB file, the kernel boots up fine, but the audio chip driver does not work."
<{^_^}> raspberrypi/linux#942 (by wbx-github, 4 years ago, closed): u-boot and devicetree overlays
<samueldr> 4 years ago... IIRC u-boot has changed _loads_ since :)
<pbb> yeah
<samueldr> like, 4 years ago there wasn't FDTDIR, and neither did it have uefi boot
<pbb> this is interesting
<pbb> "Fortunately for us, device tree overlay support has been merged into U-Boot"
<pbb> did I get this right: u-boot doesn't support .dtbo files, so in #60422 an overlay is applied to a device tree?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/60422 (by kwohlfahrt, 2 weeks ago, open): nixos/hardware.deviceTree: new module
<samueldr> not sure
<samueldr> but likely that the generic distro concept (through extlinux.conf) cannot, not u-boot itself
<pbb> ok
<pbb> samueldr: it's working! \o/
<pbb> I just manually applied the overlay for the hifiberry amp to the dtb files in /boot/nixos/*-dtbs/broadcom/
<pbb> so the module is indeed what I want
<pbb> it would be interesting to see if the overlay works with the mainline kernel
<samueldr> when I was testing with the previously linked dtbocfg
<samueldr> I found out that it might require fixes
<samueldr> labels being different
<samueldr> or something like that
<samueldr> though not positive and once I have confirmation from someone else that "no, it just works" I'd take it on face value :)
<pbb> doesn't seem like it
<pbb> for the hifiberry-amp overlay fdtoverlay says "Failed to apply hifiberry-amp.dtbo (-1)"
<pbb> when applying it to dtb files for mainline kernel
<pbb> I guess using the full device tree from the raspberry pi kernel with the mainline kernel is less likely to work
<samueldr> that's something I'd like to know, in theory device trees should... describe the device
<samueldr> but in reality it seems to have been hijacked to also describe some runtime things :/
<samueldr> like "which kernel driver to use"
<samueldr> but not sure I'm right here in saying that
<pbb> not so sure
<pbb> the content of the dtbo file doesn't contain the name for the kernel module
<samueldr> yeah, was going on a general tangent
<pbb> the dtbo files are somehow compiled from dts files
<pbb> wondering if that is specific to the kernel
<samueldr> shouldn't be
<samueldr> device trees are pretty universal, but I think they did originate from the kernel, not sure
<samueldr> >> The device tree was derived from SPARC-based workstations and servers via the Open Firmware project. The current Devicetree specification[1] is targeted at smaller systems, but is still used with some server-class systems (for instance, those described by the Power Architecture Platform Reference).
<samueldr> interesting
<pbb> I noticed that the dtb files for the mainline kernel start with bcm2837- while the ones for the rpi kernel start with bcm2708-
<pbb> for the same hardware
<samueldr> likely to come from the fact that the raspberry pi foundation only supports 32 bit
<pbb> hmm, sure?
<samueldr> so I guess their DT are built from the earlier 32 bit models
<pbb> it works fine on aarch64
<samueldr> yes, sure, they only release things for 32 bit
<pbb> ok
<samueldr> not that it doesn't work, but support
<pbb> yeah
<samueldr> raspbian and everything they release is only 32 bit :(
<pbb> I was actually surprised that NixOS distributes a 64-bit raspberry pi kernel
<pbb> I think I can live with this solution, just have to package it properly
<pbb> 4.14 is not the nicest thing. I saw there was already a 5.1 support with commits for the audio support. might want to try that
<pbb> * 5.1 branch
orivej has quit [Ping timeout: 258 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 246 seconds]
zupo_ has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
orivej has joined #nixos-aarch64
Moredread[m] has left #nixos-aarch64 ["Kicked by @appservice-irc:matrix.org : Idle kick: User has been idle for 30 days."]
Thra11 has quit [Ping timeout: 258 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
samrose_ has joined #nixos-aarch64
samrose has quit [Ping timeout: 255 seconds]
petersjt014 has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryantrinkle1 has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 245 seconds]
jackdk has joined #nixos-aarch64
ryantrinkle1 has quit [Ping timeout: 255 seconds]