Hi @gustavo.tx (cc @deepimpact @dpenning)
I’ve just found the original commit and that my patch was incomplete, sorry for that. This is the complete patch:
https://source.codeaurora.org/external/imx/linux-imx/commit/?id=d5df21ff810453741e23aa62de3e3911957c42b1
However, after applying this new patch I still cannot make it run
Gustavo, can you send a patch with the changes from commit 09dedcf8e8301c81290944fec7f46498a6057fb6
, please? (toradex_5.4-2.3.x-imx)
alvaro@DESKTOP-5BD949L:~/Toradex/iMX8MPlus_RPMSG/linux-toradex$ git diff 09dedcf8e8301c81290944fec7f46498a6057fb6
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index b19f22aab64a..a12e987ced62 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -79,6 +79,14 @@ static void build_deinstantiation_desc(u32 *desc, int handle)
append_jump(desc, JUMP_CLASS_CLASS1 | JUMP_TYPE_HALT);
}
+static const struct of_device_id imx8m_machine_match[] = {
+ { .compatible = "fsl,imx8mm", },
+ { .compatible = "fsl,imx8mn", },
+ { .compatible = "fsl,imx8mp", },
+ { .compatible = "fsl,imx8mq", },
+ { }
+};
+
/*
* run_descriptor_deco0 - runs a descriptor on DECO0, under direct control of
* the software (no JR/QI used).
@@ -850,6 +858,9 @@ static int caam_probe(struct platform_device *pdev)
nprop = pdev->dev.of_node;
imx_soc_match = soc_device_match(caam_imx_soc_table);
+ if (!imx_soc_match && of_match_node(imx8m_machine_match, of_root))
+ return -EPROBE_DEFER;
+
caam_imx = (bool)imx_soc_match;
#ifdef CONFIG_PM_SLEEP
I get the M7 core to output the message you mentioned but I still get the kernel panic. This is how I run it:
setenv m4addr 0x7e0000
setenv fdt_high 0xffffffffffffff
saveenv
fatload mmc 2 0x48000000 rpmsg_demo.bin && cp.b 0x48000000 ${m4addr} 20000 && bootaux ${m4addr}