Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/linux-daily-monza.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ jobs:
# updated hexagon-dsp-binaries with Monza support is integrated; see
# https://github.com/qualcomm-linux/qcom-deb-images/issues/298 and
# https://github.com/linux-msm/hexagon-dsp-binaries/pull/59
debos_extra_args: '-t overlays:qsc-deb-releases,workaround-hexagon-dsp-binaries-monza'
# workaround-initramfs-firmware-monaco adds firmware to initramfs; see
# https://github.com/qualcomm-linux/qcom-deb-images/issues/258
debos_extra_args: '-t overlays:qsc-deb-releases,workaround-hexagon-dsp-binaries-monza,workaround-initramfs-firmware-monaco'
secrets: inherit
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh
# SPDX-License-Identifier: MIT
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.

# Workaround for https://github.com/qualcomm-linux/qcom-deb-images/issues/258
# Add monaco-specific firmware files to initramfs so they are available before
# the root filesystem is mounted. This is required for proper hardware
# initialization during early boot.

PREREQ=""
prereqs()
{
echo "$PREREQ"
}

case $1 in
prereqs)
prereqs
exit 0
;;
esac

# shellcheck source=/dev/null
. /usr/share/initramfs-tools/hook-functions
# Begin real processing below this line

# Add monaco-specific firmware files
# These files are required for DSP and other hardware initialization
for fw in \
/lib/firmware/qcom/qcs8300/adsp.mbn \
/lib/firmware/qcom/qcs8300/cdsp0.mbn \
/lib/firmware/qcom/qcs8300/gpdsp0.mbn \
/lib/firmware/qcom/qcs8300/qupv3fw.elf
do
if [ ! -f "$fw" ]; then
echo "ERROR: Required firmware file not found: $fw" >&2
exit 1
fi
copy_file firmware "$fw"
done
Loading