<stiell> I'm having trouble keeping the system configuration up to date across reboots on my RPi 4. I update /etc/nixos/configuration.nix, then do `sudo nixos-rebuild switch`. Configuration updated. But whenever I reboot (`sudo reboot`), I have to do `sudo nixos-rebuild switch` again to get the latest config. Shouldn't the latest config persist across reboots when using `nixos-rebuild switch`?
<clever> stiell: what does /run/current-system point to before and after the reboot?
<samueldr> clever: FIRMWARE partition with raspberry pi bootloader issue
<samueldr> stiell: did you mount the FIRMWARE partition at /boot?
<samueldr> that information is lacking from the default instructions since it is specific to how that (temporary) image is made
<samueldr> I didn't think we'd be stuck with it for that long though :/
<stiell> I see now, it's updating the files in /boot, but that is on /dev/mmcblk0p2, while the bootloader uses the files on /dev/mmcblk0p1. What's the fix/workaround here?
<clever> stiell: remove /boot from your configuration.nix
<samueldr> clever: huh?
<clever> samueldr: isnt that right? since /boot is part of the / fs?
<samueldr> clever: raspberry pi 4
<samueldr> clever: the 4 doesn't use u-boot for now
<clever> 3 partitions at play then?
<clever> wrong one on /boot?
<samueldr> nah
<samueldr> /boot is simply not at the root of mmcblk0p2
<samueldr> stiell: you may want to empty /boot/ (or move it and mkdir a fresh one), and setup the partition in configuration.nix
<samueldr> you'll also need https://nixos.org/nixos/options.html#boot.loader.raspberry the rasperryPi one enabled, and make sure you don't use extlinux of uboot.enable
<samueldr> (future readers of the logs: verify this is still the case in the year 20XX where you read from!)
<samueldr> (it's likely to change!)
<stiell> samueldr: So, mount /dev/mmcblk0p1 on /boot, right?
<samueldr> clever: the raspberry pi 4 image being built out of nixpkgs right now is basically built like the other one, but with u-boot removed, and the kernel being booted by the raspberry pi bootloader, if that helps
<samueldr> stiell: yes
<stiell> Will try that, thanks.
<clever> ah, so its the reverse of my directions, what i was trying to undo
<samueldr> clever: yeah :)
<samueldr> clever: just so you know, that's the current state for raspberry pi 4 _only_
<samueldr> though I *think* we could review the image to use u-boot, but no mainline kernel still
h0m1 has quit [Ping timeout: 240 seconds]
h0m1 has joined #nixos-aarch64
<stiell> That fixed the problem. Now I can even get X to start supposedly using the GPU. org.gnome.Shell.desktop is segfaulting, though (not that I intend on using Gnome).
h0m1 has quit [Ping timeout: 252 seconds]
h0m1 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
Acou_Bass has quit [Ping timeout: 260 seconds]
Acou_Bass has joined #nixos-aarch64
Acou_Bass has quit [Quit: ZNC 1.7.4 - https://znc.in]
Acou_Bass has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo_ has joined #nixos-aarch64
zupo_ has quit [Quit: Textual IRC Client: www.textualapp.com]
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 272 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wavirc22 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 260 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 255 seconds]
zupo has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 260 seconds]
wavirc22 has quit [Ping timeout: 265 seconds]
ryantrinkle has joined #nixos-aarch64
zupo has quit [Ping timeout: 260 seconds]
v0|d has quit [Remote host closed the connection]
zupo has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 260 seconds]
wavirc22 has joined #nixos-aarch64
orivej has quit [Ping timeout: 240 seconds]
ryantrinkle has joined #nixos-aarch64
wavirc22 has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
wavirc22 has joined #nixos-aarch64
v0|d has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 265 seconds]
ryantrinkle has joined #nixos-aarch64
orivej has quit [Ping timeout: 252 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wavirc22 has quit [Ping timeout: 260 seconds]
<samueldr> >> * [PATCH 00/89] drm/vc4: Support BCM2711 Display Pipeline
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
<DigitalKiwi> samueldr clever did you see i got my console working on nixos i think
<samueldr> I must have missed it
<DigitalKiwi> i had to mkForce the correct console=
<samueldr> oh, are you importing <nixpkgs/somepath> in your config?
<DigitalKiwi> the sd card image :)
<samueldr> yeah, you shouldn'T
<DigitalKiwi> i know i know
<samueldr> just like you shouldn't on an installed system import the installation iso one...
<samueldr> ... THOUGH yes, it's confusing and needs to be documented
<DigitalKiwi> i know i need to go through the one i'm importing and find the actual parts i need
<DigitalKiwi> it currently auto logs into nixos user on the serial console ...
<DigitalKiwi> auto logins?
<DigitalKiwi> :/
<samueldr> yeah, installer image
<DigitalKiwi> it was the only way i could get it to honor my nixos-rebuilds
<DigitalKiwi> otherwise i had the problem that clever thought stiell was having :D
<DigitalKiwi> but with a pi3b+
<DigitalKiwi> clever so maybe i can get more information now about why it won't boot with the rpi3 linux kernel
<DigitalKiwi> samueldr: if i can figure out the right way to do it i might be willing to document it...
<DigitalKiwi> really busy on top sekrit project though so it might be a few days
<clever> DigitalKiwi: if you cant get any uart output with earlycon enabled, then your next option would be jtag
zupo has joined #nixos-aarch64
<DigitalKiwi> how do i jtag
<DigitalKiwi> what do i need to do that
<clever> DigitalKiwi: either a jtag adapter, or another rpi
<DigitalKiwi> can an arduino uno be a jtag adapter
<DigitalKiwi> my only other pi is uh... a bit hemmed up
<clever> DigitalKiwi: probably, though ive not tried it
<clever> DigitalKiwi: an ftdi can also be jtag
<DigitalKiwi> lots of search results about doing it
zupo has quit [Ping timeout: 255 seconds]
<clever> DigitalKiwi: once you have a jtag adapter working in openocd (must build from master, not the release), then i can help with the target side of things
<DigitalKiwi> hopefully the console works because this looks not fun heh
<clever> DigitalKiwi: having jtag allowed me to single-step linux as it booted
<clever> all of the normal stuff gdb can do, but on a bare cpu
zupo has joined #nixos-aarch64
<DigitalKiwi> i write haskell i don't know how to use a debugger
<DigitalKiwi> /s
<DigitalKiwi> nice!
ryantrinkle has quit [Ping timeout: 258 seconds]
ryantrinkle has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryantrinkle has quit [Ping timeout: 258 seconds]