rpi-source will put things back together, like the kernel headers.rpi-update will break things.
https://github.com/RPi-Distro/rpi-source
Unless you know something that I haven't figured out, https://github.com/RPi-Distro/rpi-source doesn't support the Raspberry Pi 5 (BCM2712) and even on a Raspberry Pi 4B (BCM2711), it can't find the source for current 6.6.y Bookworm images (tested on 6.6.20 and 6.6.28).
The fix has been underway since Nov 30, 2023: https://github.com/RPi-Distro/rpi-source/issues/25
Statistics: Posted by RonR — Mon May 20, 2024 1:41 am