RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.57k stars 1.61k forks source link

How to install older version of kernel and lock for future builds? #690

Closed mateuszbetlej closed 1 year ago

mateuszbetlej commented 1 year ago

Hello,

I have to install raspberrypi-kernel=5.15.32-v8+ but I keep getting:

E: Version '5.15.32-v8+' for 'raspberrypi-kernel' was not found

anyway to configure pi-gen to lock to kernel 5.15.32-v8+?

XECDesign commented 1 year ago

You can download the appropriate .deb from the archive, install it in a substage and then tell apt to hold the package.

That would be a bad idea, since you're locking in all the potential security vulnerabilities. It's possible, but it's a bit beyond what pi-gen is intended for.

mateuszbetlej commented 1 year ago

I will attempt this solution and I understand that it might cause security issues but the kernel update from February caused color inversion on the display and there seems to be a compatibility issue with u-boot, and I need a working image urgently.

Thank you for the help.

AlexShmelev commented 1 year ago

You can download the appropriate .deb from the archive, install it in a substage and then tell apt to hold the package.

That would be a bad idea, since you're locking in all the potential security vulnerabilities. It's possible, but it's a bit beyond what pi-gen is intended for.

Is it possible to somehow add https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/ to the apt sources list, so i can apt install older kernel.

I'm building my own version of RPI using pi-gen.