On my main station, I have this
boot.kernelPackages = pkgs.linuxPackages_testing;
, which gives me 6.8.0-rc5
, but if I run this line on the Pi, I get only
$ uname -a
Linux pi 6.6.6 #1-NixOS SMP Mon Dec 11 09:40:17 UTC 2023 aarch64 GNU/Linux
Can I get a new kernel on the Pi?![:wink: :wink:](https://discourse.nixos.org/images/emoji/twitter/wink.png?v=12)
have you tried running nix-channel --update
as root and then running nixos-rebuild on the pi.
See NixOS Manual for more information.
Also your main station is also out of date
ok, I have updated my build station, so it reads
$ uname -a
Linux quasar 6.8.6 #1-NixOS SMP PREEMPT_DYNAMIC Sat Apr 13 11:10:12 UTC 2024 x86_64 GNU/Linux
, but I still get this on Pi
$ uname -a
Linux pi 6.6.6 #1-NixOS SMP Mon Dec 11 09:40:17 UTC 2023 aarch64 GNU/Linux
using
kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
I see that’s downloaded on the Pi, so that’s weird
$ ls -ld /boot/nixos/*linux-*
-r--r--r-- 1 root root 72176128 Apr 16 17:26 /boot/nixos/fb64si3rrvgr17sgnlqd9vnxsgnggswd-linux-6.8.5-Image
-r--r--r-- 1 root root 9661702 Apr 16 17:26 /boot/nixos/h544vcnhpcwl335l10pydmw5p1rvz7lr-initrd-linux-6.8.5-initrd
-r--r--r-- 1 root root 64090624 Jan 1 1970 /boot/nixos/jhvv7gvcaz955ghq053i6xjymc7zdgj8-linux-6.6.6-Image
-r--r--r-- 1 root root 72176128 Apr 19 01:56 /boot/nixos/lbrb150kr81fn4mgxkal4v2kc7j6x1kl-linux-6.8.6-Imager--r-- 1 root root 9707890 Apr 19 08:45 /boot/nixos/q4zw3gwzxi551xzf5kp9mlgywgdj5qvb-initrd-linux-6.9-rc3-initrd
-r--r--r-- 1 root root 72976896 Apr 19 08:45 /boot/nixos/wyggf5jjznwrcx0j9wnckz5ljx3mv59a-linux-6.9-rc3-Image
-r--r--r-- 1 root root 9798483 Feb 4 01:02 /boot/nixos/xp6wjp4xdk7jj789b3as3rfnyk113rax-initrd-linux-6.6.6-initrd
-r--r--r-- 1 root root 9662578 Apr 19 01:56 /boot/nixos/y80cizvv8ixv88bk50swpq6y320k3xil-initrd-linux-6.8.6-initrd
I also see this:
# Generated file, all changes will be lost on nixos-rebuild!
# Change this to e.g. nixos-42 to temporarily boot to an older configuration.
DEFAULT nixos-default
MENU TITLE ------------------------------------------------------------
TIMEOUT 50
LABEL nixos-default
MENU LABEL NixOS - Default
LINUX ../nixos/wyggf5jjznwrcx0j9wnckz5ljx3mv59a-linux-6.9-rc3-Image
INITRD ../nixos/q4zw3gwzxi551xzf5kp9mlgywgdj5qvb-initrd-linux-6.9-rc3-initrd
APPEND init=/nix/store/xb6lr5zr4wvf4nkp8vxsqljlralpz5bb-nixos-system-pi-24.05.20240416.5672bc9/init loglevel=4
FDTDIR ../nixos/1ii3mpjygc5ycs5rccb1178c71zxkvfy-device-tree-overlays
LABEL nixos-32-default
MENU LABEL NixOS - Configuration 32-default (2024-04-19 10:43 - 24.05.20240416.5672bc9)
LINUX ../nixos/wyggf5jjznwrcx0j9wnckz5ljx3mv59a-linux-6.9-rc3-Image
INITRD ../nixos/q4zw3gwzxi551xzf5kp9mlgywgdj5qvb-initrd-linux-6.9-rc3-initrd
APPEND init=/nix/store/xb6lr5zr4wvf4nkp8vxsqljlralpz5bb-nixos-system-pi-24.05.20240416.5672bc9/init loglevel=4
FDTDIR ../nixos/1ii3mpjygc5ycs5rccb1178c71zxkvfy-device-tree-overlays
ok, it does not boot any of those images, neither 6.9-rc3 nor 6.8.6.
It seems to say:
ERROR: RD Image overlaps OS Image