nix-community / raspberry-pi-nix

NixOS modules to aid in configuring NixOS for raspberry pi products
MIT License
144 stars 34 forks source link

chore: bump libs & fix libcamera, fix upstream nixpkgs #23

Closed adminy closed 2 months ago

adminy commented 2 months ago

things tested and working:

things to try out:

IMG_6753

This should fix #19 Untested but maybe also #16

Serial error

DRAM:  1016 MiB (effective 8 GiB)
RPI 5 Model B (0xd04170)
Core:  22 devices, 11 uclasses, devicetree: board
MMC:   mmc@fff000: 0, mmc@1100000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... 
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
mbox: Header response code invalid
bcm2835: Could not query MAC address
Net:   No ethernet found.

starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
No EFI system partition
No EFI system partition
Failed to persist EFI variables
No EFI system partition
Failed to persist EFI variables
No EFI system partition
Failed to persist EFI variables
** Booting bootflow '<NULL>' with efi_mgr
Loading Boot0000 'mmc 0' failed
EFI boot manager: Cannot load any image
Boot failed (err=-14)
** Booting bootflow 'mmc@fff000.bootdev.part_2' with extlinux
------------------------------------------------------------
1:      NixOS - Default
Enter choice: 1 
1:      NixOS - Default
Retrieving file: /boot/extlinux/../nixos/4ljfp9dpyfv3r0pw1b8nwwxysc2c59fx-linux-rpi-6.6.34-Image
Retrieving file: /boot/extlinux/../nixos/iphdbw2np9dsacx7i37xbazqkczjsiaz-initrd-linux-rpi-6.6.34-initrd
append: init=/nix/store/4cpd34134wcaxqy4hj0dchkq020ccnb3-nixos-system-box_8-24.11/init console=serial0,115200n8 console=tty1 loglevel=7
Moving Image from 0x80000 to 0x200000, end=27a0000
ERROR: RD image overlaps OS image (OS=200000..27a0000)
Boot failed (err=-14)
No working controllers found
No ethernet found.
No ethernet found.
U-Boot> 
SebTM commented 2 months ago

Thanks for the fast update (and providing binary-cache to test) - the changes itself look good to me but I encountered issues compared to building against master. When booting the pi networking is somehow broken - I haven't debugged further - just took that photo when plugging a monitor for now:

photo_2024-06-22_20-32-40

Normally the pi is configured to join by wifi after boot which works when building against master with 24.05 ✌🏻

adminy commented 2 months ago

I noticed some wifi issues also. could be that the latest wifi firmware is unstable. I switched to 5ghz and the issue still persists but I see no warnings. something's not right with the firmware.

SebTM commented 2 months ago

I see, I would suggest (not a maintainer of the project) to maybe split up the PR with the "safe" / "stable" and the wireless update in separate then maybe?

tstat commented 2 months ago

I went to build an image with this branch yesterday, but there were some syntax errors in the kernel derivation. I pushed some fixes and will test an image later today.

adminy commented 2 months ago

So a silly mistake happened. My lock file locked a version of the local copy I had, I thought I was making testable changes but it was just running an older version of the flake :D Thanks for your changes, much appreciated!

adminy commented 2 months ago

I have tested it with 6.6.34 and it works fine, with the exception of the wifi, there seems to be an issue with it being terribly slow/choppy (but no patches required). Compiling the 6.6.31 also went smoothly! No more ignore errors! Also on 6.6.31 the wifi has no issues! So good that its left as default.

adminy commented 2 months ago
Screenshot 2024-06-28 at 07 57 27

Tested again, fixed wifi issues in the latest rc pi linux it seems.

tstat commented 2 months ago

Thanks for the contribution!