2022-04-29 05:34 AM
Hi all,
I have been trying to build a custom machine based on STM32MP157C MPU. Right now I am facing a weird issue.
Defconfig file is attached. However upon giving build , i cannot see the stm32-crc module , built added and loaded. Is there something which i am missing?
TIA
Solved! Go to Solution.
2022-04-29 06:48 AM
Hello @NPal.2 ,
The configuration that interest you is "CONFIG_CRYPTO_DEV_STM32_CRC".
We can see in your defconfig_file that this configuration is enabled, but as a built-in and not a module:
CONFIG_CRYPTO_DEV_STM32_CRC=y
CONFIG_CRYPTO_DEV_STM32_HASH=y
CONFIG_CRYPTO_DEV_STM32_CRYP=y
You have "Y" instead of "m".
For instance, if you look at the defconfig file from the developer package v3.1, you will see:
CONFIG_CRYPTO_DEV_STM32_CRC=m
CONFIG_CRYPTO_DEV_STM32_HASH=m
CONFIG_CRYPTO_DEV_STM32_CRYP=m
To modify that, you have to use the "make menuconfig" search the 3 configs "CONFIG_CRYPTO_DEV_STM32"
Location:
│ -> Cryptographic API (CRYPTO [=y])
│ -> Hardware crypto devices (CRYPTO_HW [=y])
And press the space key several times until you have switched all of them into modules:
Hope it helps,
Regards,
Kevin
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
2022-04-29 06:48 AM
Hello @NPal.2 ,
The configuration that interest you is "CONFIG_CRYPTO_DEV_STM32_CRC".
We can see in your defconfig_file that this configuration is enabled, but as a built-in and not a module:
CONFIG_CRYPTO_DEV_STM32_CRC=y
CONFIG_CRYPTO_DEV_STM32_HASH=y
CONFIG_CRYPTO_DEV_STM32_CRYP=y
You have "Y" instead of "m".
For instance, if you look at the defconfig file from the developer package v3.1, you will see:
CONFIG_CRYPTO_DEV_STM32_CRC=m
CONFIG_CRYPTO_DEV_STM32_HASH=m
CONFIG_CRYPTO_DEV_STM32_CRYP=m
To modify that, you have to use the "make menuconfig" search the 3 configs "CONFIG_CRYPTO_DEV_STM32"
Location:
│ -> Cryptographic API (CRYPTO [=y])
│ -> Hardware crypto devices (CRYPTO_HW [=y])
And press the space key several times until you have switched all of them into modules:
Hope it helps,
Regards,
Kevin
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
2022-05-02 07:18 AM
@Kevin HUBER Thank you for the quick response. I tried what you suggested. The module does get built and i can it inside the /lib/modules/kernel/drivers/crypto directory. But when i try to perform a modprobe it fails. Any clues why?
2022-05-02 07:21 AM
Never mind. I just checked that it has been loaded as stm32_crc . Looks good now thanks for the support.