The Raspberry Pi SD installer remains in nixpkgs, but its
sd-image-raspberrypi.nix configuration still selects
linuxKernel.packages.linux_rpi1. Commit b1c58b82b98f ("linux-rpi*: remove")
removed that kernel from nixpkgs, leaving the installer unable to
evaluate. Move the Pi 1 image configuration to nixos-hardware alongside
the vendor kernel.
The shared vendor kernel builder accepts rpiVersion = 1, but there is no
corresponding board profile. Add an ARMv6 profile with 32-bit U-Boot and
the shared firmware installer. Use the legacy boot and initrd settings
without the graphics defaults for newer boards. Provide SD-image and
installer modules adapted from the nixpkgs image, and exclude the
profile from checks without ARMv6 coverage.
The image has been cross-compiled but has not been tested on a board, as
no Pi 1 hardware was available.
Link: https://github.com/NixOS/nixpkgs/blob/b1c58b82b98ff287751c78ee2b96dc5c4384e3b3/nixos/modules/installer/sd-card/sd-image-raspberrypi.nix#L20
Link: https://github.com/NixOS/nixpkgs/commit/b1c58b82b98ff287751c78ee2b96dc5c4384e3b3
Signed-off-by: Cryolitia PukNgae <cryolitia@mercallure.com>
Nixpkgs enables optional kernel modules by default, including the RP1 PWM
and camera drivers and the DesignWare I2C driver. The ARM32 build fails in
modpost when these drivers reference __aeabi_uldivmod and __aeabi_ldivmod,
which are unavailable to kernel modules.
Disable the affected drivers when rpiVersion is 1. The Pi 1 uses BCM2835
peripherals and has no RP1 or DesignWare I2C controller, so these drivers
are not needed. The BCM2835 PWM and camera drivers remain enabled.
OpenWrt excludes the DesignWare I2C core on its older 32-bit Raspberry Pi
targets for the same reason.
Link: https://github.com/openwrt/openwrt/commit/11de7145c95259899d8880f4d53f933c591fbd00
Link: https://github.com/NixOS/nixpkgs/issues/464515
Signed-off-by: Cryolitia PukNgae <cryolitia@mercallure.com>
The X1 Yoga Gen 8 ships with either a USB camera or a MIPI sensor behind
Intel's IPU6. The MIPI camera only exposes raw Bayer nodes, so
applications that speak plain V4L2, such as Zoom, find no camera. The
new ipu6 profile enables hardware.ipu6 for the Raptor Lake platform, and
a README explains how to tell the two cameras apart. The base profile
stays as it is, because enabling IPU6 there would pull Intel's
proprietary camera stack onto machines with the USB camera.
disconnect kernel versions from nixpkgs, which should avoid breaking users'
config when nixpkgs has a new version and some patches are incompatible,
and when a PR updating the patches are still waiting to be merged, like
in #2027.
Signed-off-by: Sophie Cheung <git@soopy.moe>