Have a look at the file '/etc/default/raspi-firmware'. /boot/firmware/cmdline.txt is auto-generated, so create a custom file with your values. Am 13.11.26 um 15:50 schrieb Franco Martelli:
> On 12/11/26 at 17:04, Franco Martelli wrote:
>>> If 'raspi-firmware' is installed, it should be safe. >>> >>> Check the file '/boot/firmware/cmdline.txt', it should contain the entry 'net.ifnames=0'.
>> >> I performed the upgrade and it was flawless. 🙂
> > Now I want to customize "/boot/firmware/cmdline.txt" and "/boot/ firmware/config.txt" it happens that after a kernel upgrade or after a "update-initramfs -u -k all" command I have those files rewritten with default values: > > ~# 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 > .................................................. > > ~# 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 > .................................................. > > In "/boot/firmware/config.txt" I want to add: > ... > gpu_mem=16 > dtparam=audio=off > dtoverlay=disable-bt > hdmi_blanking=2 > enable_uart=1 > ... > > while in "/boot/firmware/cmdline.txt" I want to remove "elevator=deadline" because deprecated (see below), set "cma=0" and add "ipv6.disable=1". > > ~# dmesg|grep "elevator=" > [    0.000000] Kernel command line: video=Composite-1:720x…@60i,margin_left=32,margin_right=32,margin_top=32,margin_bottom=32 dma.dmachans=0x7ff5 bcm2709.boardrev=0xa02082 bcm2709.serial=0x12345678 bcm2709.uart_clock=48000000 smsc95xx.macaddr=12:34:56:78:90:ab vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=tty0 console=ttyS1,115200 root=/dev/mmcblk0p2 rw elevator=deadline fsck.repair=yes net.ifnames=0 cma=64M rootwait > [    0.000000] Kernel parameter elevator= does not have any effect anymore > > I'm not able to make permanent the changes. Does anybody have experiences about customizing those two files? How to proceed? > > Thanks in advance, kind regards,