Thread View: linux.debian.user
12 messages
12 total messages
Started by basti
Thu, 12 Nov 2026 10:30
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Thu, 12 Nov 2026 10:30
Date: Thu, 12 Nov 2026 10:30
19 lines
2571 bytes
2571 bytes
Hello, On 11.11.26 20:23, Franco Martelli wrote: > Hi, > > I have a Raspberry Pi 3 Model B Rev 1.2 with Debian BullsEye on it, I > want to upgrade to Bookworm. Changing the kernel my main concern is that > the device name of the NIC will change from "eth0" to something like > "enp2s0...". If 'raspi-firmware' is installed, it should be safe. Check the file '/boot/firmware/cmdline.txt', it should contain the entry 'net.ifnames=0'. The file '/boot/firmware/cmdline.txt' is automatically generated by '/etc/kernel/postinst.d/z50-raspi-firmware'. Also, take a look at the file '/etc/default/raspi-firmware'.
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Fri, 13 Nov 2026 16:50
Date: Fri, 13 Nov 2026 16:50
60 lines
4633 bytes
4633 bytes
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:720x480@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,
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: CGS
Date: Sat, 14 Nov 2026 16:00
Date: Sat, 14 Nov 2026 16:00
6 lines
2222 bytes
2222 bytes
On 2026-11-14, Franco Martelli <martellif67@gmail.com> wrote: > ~# grep -v "^#\|^;\|^[[:space:]]*$" /etc/default/raspi-firmware > CMA=0M LOL!
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Sun, 15 Nov 2026 03:10
Date: Sun, 15 Nov 2026 03:10
15 lines
3091 bytes
3091 bytes
Am 14.11.26 um 16:24 schrieb Franco Martelli: > On 13/11/26 at 17:43, basti wrote: >> Have a look at the file '/etc/default/raspi-firmware'. > tail -n 7 /etc/default/raspi-firmware # Create a file "/etc/default/raspi-firmware-custom" to add custom parameter # to startup the kernel. Maybe not all options are supported. # (see https://www.raspberrypi.com/documentation/computers/config_txt.html) # # To pass extra arbitrary parameters to the kernel at boot, you can specify # them in "/etc/default/raspi-extra-cmdline". Keep in mind they should be # all in a single line, no comments!
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Mon, 16 Nov 2026 20:00
Date: Mon, 16 Nov 2026 20:00
51 lines
4217 bytes
4217 bytes
Hello, tbf, works for me. root@rpi-ks:~# cat /etc/debian_version 13.7 root@rpi-ks:~# tail -n 3 /boot/firmware/config.txt # Inserted by /etc/default/raspi-firmware-custom gpu_mem=16 Do you a 'update-initramfs -k all -u' after create the file? Am 16.11.26 um 16:39 schrieb Franco Martelli: > On 15/11/26 at 04:02, basti wrote: >> Am 14.11.26 um 16:24 schrieb Franco Martelli: >>> On 13/11/26 at 17:43, basti wrote: >>>> Have a look at the file '/etc/default/raspi-firmware'. >> >> tail -n 7 /etc/default/raspi-firmware >> # Create a file "/etc/default/raspi-firmware-custom" to add custom >> parameter >> # to startup the kernel. Maybe not all options are supported. >> # (see https://www.raspberrypi.com/documentation/computers/ >> config_txt.html) >> # >> # To pass extra arbitrary parameters to the kernel at boot, you can >> specify >> # them in "/etc/default/raspi-extra-cmdline". Keep in mind they should be >> # all in a single line, no comments! >> > > Are you providing solution for Debian 12 oldstable on Raspberry Pi 3? > Are you on Trixie? > > I've already reported as not working "/etc/default/raspi-extra-cmdline" > in my email of 2026/11/14 in this thread. > > while: > ~# LC_ALL=C.UTF-8 ls -l /etc/default/raspi-firmware-custom > -rw-r--r-- 1 root root 67 Nov 13 14:25 /etc/default/raspi-firmware-custom > > doesn't work in all the tests performed from 13 November. Here its > contents: > > ~# cat /etc/default/raspi-firmware-custom > gpu_mem=16 > dtparam=audio=off > dtoverlay=disable-bt > hdmi_blanking=2 > > Kind regards,
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Mon, 16 Nov 2026 20:00
Date: Mon, 16 Nov 2026 20:00
6 lines
2794 bytes
2794 bytes
"/etc/default/raspi-extra-cmdline" add custom parameter to /boot/firmware/cmdline.txt Am 16.11.26 um 16:39 schrieb Franco Martelli: > I've already reported as not working "/etc/default/raspi-extra-cmdline" > in my email of 2026/11/14 in this thread.
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Tue, 17 Nov 2026 17:30
Date: Tue, 17 Nov 2026 17:30
10 lines
2983 bytes
2983 bytes
it also works in bookworm. What did you do? What did you expect? What happened? did you mount /boot/firmware? are there any error messages? post the output of update-initramfs -k all -u
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: Joe
Date: Tue, 17 Nov 2026 18:40
Date: Tue, 17 Nov 2026 18:40
34 lines
3870 bytes
3870 bytes
On Tue, 17 Nov 2026 17:31:33 +0100 Franco Martelli <martellif67@gmail.com> wrote: > > and raspi-firmware package is not available in bookworm-backports. So > I've to stay with this version: > Please note that the standard Raspberry PI OS is *based* on Debian. The Pi uses relatively exotic hardware, packages boot and system code for multiple Pi versions (different numbers of bits) in the OS (look at how many kernels you have installed) and while it uses pretty well untouched Debian application software for the most part, most system software is very specific to the Pi. The Raspberry Pi OS can normally be upgraded to a newer version, but such an upgrade is unsupported and there may be dragons. The recommendation is always to make a new installation. Pure Debian has eternal upgradability as its main selling point, this is not true of the Pi OS. Similarly, the Debian system includes backports, which is not a Pi concept. Most Debian application backports will be OK (where appropriate) but you won't find the Pi system code there. I have two Pis, a 2 and a 4. Both take the 'same' software, but use different kernels as appropriate to the CPU. Watch the screen when an upgrade involves the kernel(s), and you will see a great deal of messing about with overlays, something completely unknown to Debian. With a Pi, you need to look to Debian for help with software common to other types of computer, but also to the Raspberry Pi forums for help with system issues. -- Joe
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Wed, 18 Nov 2026 15:40
Date: Wed, 18 Nov 2026 15:40
97 lines
5641 bytes
5641 bytes
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,
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Thu, 19 Nov 2026 06:50
Date: Thu, 19 Nov 2026 06:50
5 lines
3317 bytes
3317 bytes
yes purge the old raspi3-firmware transitional package Am 18.11.26 um 20:43 schrieb Franco Martelli: > raspi3-firmware 1.20210303+ds-2 arm64 > transitional package
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: didier gaumet
Date: Thu, 19 Nov 2026 10:00
Date: Thu, 19 Nov 2026 10:00
31 lines
4442 bytes
4442 bytes
Le 19/11/2026 à 10:05, Franco Martelli a écrit : [...] > When attempt to purge "raspi3-firmware" the "apt" command marks as > unnecessary "raspi-firmware" and by doing so I will make unbootable the > RPi. How to proceed? Is it OK to purge "raspi3-firmware" and then "apt > install --reinstall" the "raspi-firmware" package to override the "apt" > command unnecessary status? Hello Franco, When you don't want an automatically installed package to be removed when you remove the package that triggered its installation you may simply mark it as installed manually. In your case: # apt mark manual raspi-firmware # apt purge raspi3-firmware (https://manpages.debian.org/trixie/apt/apt-mark.8.en.html) And forgive me for not having read the entire thread but only small parts of it but I noted earlier that you infered you cannot upgrade to Trixie because /etc/default/raspi-firmware-custom is not present in Trixie: correct me if I am wrong but this file is not present in Bookworm either (https://packages.debian.org/bookworm/all/raspi-firmware/filelist), it was manually created for customisation. So if this was your reason not to migrate to Trixie, it is not valid anymore. Again, sorry for the noise, I don't know nothing about Raspberry Pis in particular and arm in general :-)
Re: RaspberryPI and upgrade from Bullseye to Bookworm
Author: basti
Date: Thu, 19 Nov 2026 20:50
Date: Thu, 19 Nov 2026 20:50
4 lines
3405 bytes
3405 bytes
No problem Am 19.11.26 um 20:10 schrieb Franco Martelli: > Thanks Basti for your patience.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads