STM32-CRC module build issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 5: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.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 6: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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 6: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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-02 7: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-02 7:21 AM
Never mind. I just checked that it has been loaded as stm32_crc . Looks good now thanks for the support.
