From 425889c267fa79ed371b83bcb1ebb94463c7e9d7 Mon Sep 17 00:00:00 2001 From: Sami Nurmenniemi Date: Mon, 18 Sep 2017 13:36:27 +0300 Subject: Fix /dev/hwrng on Warp7 devices Task-number: QTBUG-63188 Change-Id: Ib22ec4894deaf0db955a8446037f4a3057b5c218 Reviewed-by: Samuli Piippo --- ...dev-hwrng-by-enabling-warp7-crypto-device.patch | 25 ++++++++++++++++++++++ .../recipes/linux/linux-warp7_4.1.bbappend | 5 +++++ 2 files changed, 30 insertions(+) create mode 100644 meta-fsl-extras/recipes/linux/linux-warp7/0001-Fix-dev-hwrng-by-enabling-warp7-crypto-device.patch diff --git a/meta-fsl-extras/recipes/linux/linux-warp7/0001-Fix-dev-hwrng-by-enabling-warp7-crypto-device.patch b/meta-fsl-extras/recipes/linux/linux-warp7/0001-Fix-dev-hwrng-by-enabling-warp7-crypto-device.patch new file mode 100644 index 0000000..dbb7995 --- /dev/null +++ b/meta-fsl-extras/recipes/linux/linux-warp7/0001-Fix-dev-hwrng-by-enabling-warp7-crypto-device.patch @@ -0,0 +1,25 @@ +From 9ffa222dbaa3b11c3b1399192e0abd478fc3b564 Mon Sep 17 00:00:00 2001 +From: Sami Nurmenniemi +Date: Mon, 18 Sep 2017 12:45:54 +0300 +Subject: [PATCH 1/1] Fix /dev/hwrng by enabling warp7 crypto-device + +--- + arch/arm/boot/dts/imx7d-warp.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/imx7d-warp.dts b/arch/arm/boot/dts/imx7d-warp.dts +index ee72690..19aee0e 100755 +--- a/arch/arm/boot/dts/imx7d-warp.dts ++++ b/arch/arm/boot/dts/imx7d-warp.dts +@@ -181,7 +181,7 @@ + }; + + &crypto { +- status = "disabled"; ++ status = "okay"; + }; + + &clks { +-- +2.7.4 + diff --git a/meta-fsl-extras/recipes/linux/linux-warp7_4.1.bbappend b/meta-fsl-extras/recipes/linux/linux-warp7_4.1.bbappend index 534af39..72db716 100644 --- a/meta-fsl-extras/recipes/linux/linux-warp7_4.1.bbappend +++ b/meta-fsl-extras/recipes/linux/linux-warp7_4.1.bbappend @@ -31,6 +31,11 @@ SRCBRANCH = "linux_4.1.29" SRCREV = "881845d84e3c2e58a00b9c36616203d748b7df0e" LOCALVERSION = "-warp7" +FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" +SRC_URI += " \ + file://0001-Fix-dev-hwrng-by-enabling-warp7-crypto-device.patch \ + " + do_configure_prepend() { echo "CONFIG_NAMESPACES=y" >> ${B}/.config echo "CONFIG_FHANDLE=y" >> ${B}/.config -- cgit v1.2.3-54-g00ecf