On 13/11/26 at 17:43, basti wrote:
Have a look at the file '/etc/default/raspi-firmware'.

I've already tried to customize '/etc/default/raspi-firmware' but changes doesn't have any effect:

~# grep -v "^#\|^;\|^[[:space:]]*$" /etc/default/raspi-firmware
CMA=0M

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

~# apt install --reinstall linux-image-6.1.0-54-arm64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 59,7 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://security.debian.org/debian-security bookworm-security/main arm64 linux-image-6.1.0-54-arm64 arm64 6.1.190-1 [59,7 MB] Fetched 59,7 MB in 20s (2.980 kB/s)
(Reading database ... 40900 files and directories currently installed.)
Preparing to unpack .../linux-image-6.1.0-54-arm64_6.1.190-1_arm64.deb ...
Unpacking linux-image-6.1.0-54-arm64 (6.1.190-1) over (6.1.190-1) ...
Setting up linux-image-6.1.0-54-arm64 (6.1.190-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-54-arm64

~# cat /boot/firmware/cmdline.txt
console=tty0 console=ttyS1,115200 root=/dev/mmcblk0p2 rw
elevator=deadline fsck.repair=yes net.ifnames=0 cma=64M rootwait
                                                ^^^^^^^


/boot/firmware/cmdline.txt is auto-generated, so create a custom file with your values.


Do you mean that after a kernel upgrade or after a "update-initramfs -u" command I must have a script that reapply changes to /b/f/cmdline.txt and /b/f/config.txt? I also tried to look for documentation but "raspi-firmware" package comes without any manual pages :(

Also editing "/etc/default/raspi-extra-cmdline" as explained here ¹ doesn't work:

~# cat /etc/default/raspi-extra-cmdline
ipv6.disable=1 cma=0

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

~# cat /boot/firmware/cmdline.txt
console=tty0 console=ttyS1,115200 root=/dev/mmcblk0p2 rw elevator=deadline fsck.repair=yes net.ifnames=0 cma=64M rootwait

¹ https://wiki.debian.org/RaspberryPi4?highlight=%28cmdline.txt%29#changing_command_line

Kind regards,
--
Franco Martelli

Reply via email to