Multiple files are updated via
"/etc/kernel/postinst.d/z50-raspi-firmware"

- Does the file exist?
- Is the file executable?
- You can add "set -x" at the beginning to generate debug output.

root@rpi-ks:~# ls -la /etc/kernel/postinst.d/z50-raspi-firmware
-rwxr-xr-x 1 root root 7483 Jan 5 2025 /etc/kernel/postinst.d/z50-raspi-firmware
root@rpi-ks:~#

root@rpi-ks:~# cat /etc/default/raspi-firmware-custom
gpu_mem=16
root@rpi-ks:~#

This results in the following:

root@rpi-ks:~# tail /boot/firmware/config.txt
enable_uart=1
upstream_kernel=1

kernel=vmlinuz-6.12.117+deb13-arm64
# For details on the initramfs directive, see
# https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=10532
initramfs initrd.img-6.12.117+deb13-arm64

# Inserted by /etc/default/raspi-firmware-custom
gpu_mem=16
root@rpi-ks:~#

as you can see, it generate a line
# Inserted by /etc/default/raspi-firmware-custom

when the file is found and read
Am 18.11.26 um 15:03 schrieb Franco Martelli:
On 17/11/26 at 18:28, basti wrote:
it also works in bookworm.

What did you do?
What did you expect?
What happened?

did you mount /boot/firmware?

~# mount | grep /boot/firmware
/dev/mmcblk0p1 on /boot/firmware type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)

are there any error messages?

post the output of update-initramfs -k all -u

OK I will retry for the *last* time:

1) Edit /etc/default/raspi-firmware-custom:

~# cat <<EOF | tee -a /etc/default/raspi-firmware-custom
 >
# Custom changes
gpu_mem=16
 > EOF

# Custom changes
gpu_mem=16

2) run update-initramfs -u -k all:

~# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-6.1.0-54-arm64

3) check the log:

~# journalctl --since "2026-11-18 14:00:00" -g update-initramfs
-- No entries --
( I checked the output but I didn't see nothing related )

4) verify that changes was applied to /boot/firmware/config.txt:

~# cat /boot/firmware/config.txt
# Switch the CPU from ARMv7 into ARMv8 (aarch64) mode
arm_control=0x200

enable_uart=1
upstream_kernel=1

kernel=vmlinuz-6.1.0-54-arm64
# For details on the initramfs directive, see
# https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=10532
initramfs initrd.img-6.1.0-54-arm64


The expected result was that the three lines in "/etc/default/raspi- firmware-custom" they were added at the bottom of "/boot/firmware/ config.txt" after performed the command "update-initramfs -u -k all".

Kind regards,

Reply via email to