When I try to build a Linux distribution using the bitbake imx-image-multimedia command, the builder encounters an error in one part. The relevant parts in the error log are as follows:
NOTE: Applying patch '0001-Fix-module-loading-with-Linux-v5.0-rc5.patch' (../sources/poky/meta/recipes-kernel/cryptodev/files/0001-Fix-module-loading-with-Linux-v5.0-rc5.patch)
ERROR: Command Error: 'quilt --quiltrc /home/admin/Linux/Yocto/fsl-release-yocto/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/cryptodev-linux/1.10-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0001-Fix-module-loading-with-Linux-v5.0-rc5.patch
can't find file to patch at input line 33
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Upstream-Status: Backport [https://github.com/cryptodev-linux/cryptodev-linux/commit/f971e0c]
|
|Backport patch from upstream to fix module cryptodev loading error.
|
|Signed-off-by: Kai Kang <[email protected]>
|
|From f971e0cd4a0ebe59fb2e8e17240399bf6901b09b Mon Sep 17 00:00:00 2001
|From: "Derald D. Woods" <[email protected]>
|Date: Sun, 10 Feb 2019 13:22:19 -0600
|Subject: [PATCH] Fix module loading with Linux v5.0-rc5
|
|This commit fixes this module load error:
|[...]
|[ 29.112091] cryptodev: loading out-of-tree module taints kernel.
|[ 29.128906] cryptodev: Unknown symbol crypto_givcipher_type (err -2)
|[ 29.188842] cryptodev: Unknown symbol crypto_givcipher_type (err -2)
|modprobe: can't load module cryptodev (extra/cryptodev.ko): unknown symbol in module, or unknown parameter
|[...]
|
|Upstream Linux support for unused GIVCIPHER, and others, was dropped here:
|
|c79b411eaa72 (crypto: skcipher - remove remnants of internal IV generators)
|
|Signed-off-by: Derald D. Woods <[email protected]>
|---
| cryptlib.c | 9 +++++++--
| 1 file changed, 7 insertions(+), 2 deletions(-)
|
|diff --git a/cryptlib.c b/cryptlib.c
|index 6e66698..4a87037 100644
|--- a/cryptlib.c
|+++ b/cryptlib.c
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
Patch 0001-Fix-module-loading-with-Linux-v5.0-rc5.patch does not apply (enforce with -f)
DEBUG: Python function patch_do_patch finished
DEBUG: Python function do_patch finished
A link is mentioned above: f971e0c
But I can't understand the changes.
The contents of relevant source files used by bitbake are as follows:
HOMEPAGE = "http://cryptodev-linux.org/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI = "https://github.com/cryptodev-linux/cryptodev-linux.git \
file://0001-Fix-module-loading-with-Linux-v5.0-rc5.patch \
"
BB_STRICT_CHECKSUM = "0"
SRCREV = "fd8b15ef1c8398a69a37932ee48c74ab40329a29"
S = "${WORKDIR}/git"
CLEANBROKEN = "1"
I am not very familiar with relevant knowledge, so what should I do? Thanks.
When I try to build a Linux distribution using the
bitbake imx-image-multimediacommand, the builder encounters an error in one part. The relevant parts in the error log are as follows:A link is mentioned above: f971e0c
But I can't understand the changes.
The contents of relevant source files used by bitbake are as follows:
I am not very familiar with relevant knowledge, so what should I do? Thanks.