This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: cryptodev.ko fails to load

Part Number: PROCESSOR-SDK-AM335X

AM335x TI-SDK v5

The prebuilt cryptodev.ko module provided in the SDK is failing to load. When I try to load it manually it says "Invalid module format"

root@# modprobe cryptodev
modprobe: FATAL: Module cryptodev not found in directory /lib/modules/4.14.227-g4796173fc5

root@# ls /lib/modules/4.14.227-g4796173fc5/extra
cryptodev.ko  

root@# insmod ./extra/cryptodev.ko
[ 1587.538350] cryptodev: disagrees about version of symbol module_layout
insmod: ERROR: could not insert module ./extra/cryptodev.ko: Invalid module format

Other standard modules in kernel/ load as expected. How do I add this to the kernel modules build?

Please advise