bc50dd0279
Many devices need proprietary firmware blobs. So far those blobs were packaged and installed from the repository but this approach has many drawbacks: - The rootfs can only be used on a single device model. - If a model has multiple variants that have diferent secire-boot key, each must have it's own firmware blobs. This makes maintaining packaged firmware very hard and outweights the benefits of having a repeatable installation in most cases. Instead we can load blobs dynamically from preexisting firmware partitions that usually have same structure and contain the blobs we are interested in. The proposed scripts place symlinks to the blobs in a special dir that then given to the kernel. Blobs from firmware/postmarketos (or another dir that was set as extra path prior the script execution) will take priority which allows to override some blobs (e.g. for deviecs with no secure-boot)
16 lines
354 B
Text
16 lines
354 B
Text
#!/sbin/openrc-run
|
|
|
|
name="MSM Firmware Loader"
|
|
description="Load firmware that is located on dedicated partitions of qcom devices"
|
|
|
|
depend() {
|
|
need sysfs devfs
|
|
before udev
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting msm-firmware-loader"
|
|
# This script must be executed before udev, block other services until it's done.
|
|
/usr/sbin/msm-firmware-loader.sh
|
|
eend $?
|
|
}
|