Package: raspi3-firmware Version: 1.20190215-1 Severity: wishlist Dear Maintainer,
please add an option to add custom parameter to config.txt -- System Information: Debian Release: 10.0 APT prefers stable APT policy: (500, 'stable') Architecture: arm64 (aarch64) Kernel: Linux 4.19.0-5-arm64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_CRAP Locale: LANG=de_DE.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages raspi3-firmware depends on: ii dosfstools 4.1-2 raspi3-firmware recommends no packages. raspi3-firmware suggests no packages. -- debconf information excluded diff --git a/debian/default/raspi-firmware b/debian/default/raspi-firmware index ce65dee..53625e0 100644 --- a/debian/default/raspi-firmware +++ b/debian/default/raspi-firmware @@ -48,3 +48,7 @@ # screen and on the uart: # CONSOLES="tty0 ttyS1,115200" #CONSOLES="auto" + +# 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.org/documentation/configuration/config-txt/) diff --git a/debian/kernel/postinst.d/z50-raspi-firmware b/debian/kernel/postinst.d/z50-raspi-firmware index b2d0a85..b50fb07 100755 --- a/debian/kernel/postinst.d/z50-raspi-firmware +++ b/debian/kernel/postinst.d/z50-raspi-firmware @@ -125,9 +125,17 @@ if [ "$INITRAMFS" != "no" ]; then # For details on the initramfs directive, see # https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=10532 initramfs ${latest_initrd_basename} + EOF fi +firmware_custom="/etc/default/raspi-firmware-custom" +if [ -f "$firmware_custom" ]; then + cat >>/boot/firmware/config.txt <<EOF +# Inserted by ${firmware_custom} +`cat ${firmware_custom}` +EOF +fi # Our cmdline.txt is the default (see http://elinux.org/RPi_cmdline.txt), but # without parameters for drivers we do not have (e.g. dwc_otg.lpm_enable) or