Skip to content

build-rootfs: add initramfs hook to omit qcom_q6v5_pas driver - #222

Open
guanquan (GuanquanTian) wants to merge 1 commit into
qualcomm-linux:mainfrom
GuanquanTian:initramfs-omit-q6v5-pas
Open

build-rootfs: add initramfs hook to omit qcom_q6v5_pas driver#222
guanquan (GuanquanTian) wants to merge 1 commit into
qualcomm-linux:mainfrom
GuanquanTian:initramfs-omit-q6v5-pas

Conversation

@GuanquanTian

Copy link
Copy Markdown
Contributor

Inject an initramfs-tools hook at /etc/initramfs-tools/hooks/omit into the rootfs before the kernel .deb is installed in chroot. Since that dpkg step triggers update-initramfs, the hook must exist beforehand so the baked initramfs excludes
qcom_q6v5_pas.ko*. The hook also persists into the final image so future kernel upgrades keep omitting the driver.

Inject an initramfs-tools hook at /etc/initramfs-tools/hooks/omit
into the rootfs before the kernel .deb is installed in chroot.
Since that dpkg step triggers update-initramfs, the hook must
exist beforehand so the baked initramfs excludes
qcom_q6v5_pas.ko*. The hook also persists into the final image so
future kernel upgrades keep omitting the driver.

Signed-off-by: Guanquan Tian <guanquan@qti.qualcomm.com>
@xinlon-z

Copy link
Copy Markdown
Contributor

GPU, IPA, Venus, and several other drivers have similar issues. Perhaps it's better to solve all of them in one go rather than addressing them individually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants