Skip to content

Feature Suggestion: "config.txt"-based control for inc/exclusion of /boot/firmware files #29

@britkig

Description

@britkig

Can I suggest a feature for achieving even-smaller resultant images, by allowing a user to supply a "config.txt" file, which could be read to manipulate the inclusion/exclusion of files that normally end up in /boot/firmware? For example, lets say a user has this in their config.txt file...
...against this text string (for example, destined for a headless Compute Module 4 with on-board storage, but no WiFi/Bluetooth module)...

#arch=v8+
#model=bcm2711-rpi-cm4
disable_overscan=1
disable_splash=1
dtoverlay=disable-bt
dtoverlay=disable-wifi
dtoverlay=i2c-fan,emc2301,i2c_csi_dsi
dtparam=watchdog=on
gpu_mem=16

This could instruct to add the bcm2711-rpi-cm4.dtb device tree base, the latest Pi arm64 v8+ kernel8.img, and, through via a match-all regex expression with the multi-line flag...

^dtoverlay=(.+?)[,\n$]

...to include the disable-bt, disable-wifi and i2c-fan device tree overlays. Another possibility is, by searching for gpu_mem=16, to determine whether or not to use the smaller fixup4cd.dat and start4cd.elf firmware files over the full size fixup4.dat and start.elf ones (subject to if the intended Pi board/CPU model uses them).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions